*{
    margin:0;
    padding:0;
}

body{
    margin: 0 5vh 0 5vh;
    background-color: #0F172A;
}
header{
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    width:100% ;
    height: 5vh;
    border-bottom: solid 2px rgb(255, 255, 255);
}
.container{
    margin-top: 5vh;
    color: white;
    height: 90vh;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.wrap-left{
    display: flex;
    justify-content: center;
    flex-direction: column;
    height: 100%;
    width:30%;
}


.wrap-upload{
    border-radius: 20px;
    background-color: #1E293B;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 100%;
    height: 20%;
}

.wrap-upload h2{
    height: 20%;
    width: 90%;
    align-content: center;
    text-align: center;
    border-bottom: 2px solid white;
}

.wrap-upload form{
    gap: 10px;
    height: 90%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.wrap-upload input {
    width: 90%;
    padding: 8px;
    box-sizing: border-box;
    color: white;
}

#upload-status {
    margin: 5px 0 10px;
    font-size: 13px;
    color: #cbd5e1;
}

form input{
    width: 90%;
}

form label{
    font-weight: bold;
    font-size: large;
}

form button {
    padding: 3px 50px;
    border: none;
    border-radius: 8px;
    background: #2563eb;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

.wrap-graph {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border-radius: 20px;
    background-color:#334155;
    margin-top: 20px;
    margin-bottom: 10px;
    width: 100%;
    height: 80%;
    overflow: hidden;
}

.graph-header {
    width: 90%;
    height: 10%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid white;
}



#stats-group {
    padding: 7px 12px;
    border: 1px solid #475569;
    border-radius: 8px;
    background-color: #0F172A;
    color: rgb(107, 106, 106);
    outline: none;
    cursor: pointer;
}

.style-graph {
    display: flex;
    justify-content: center;
    width: 100%;
    height: 80%;
    padding: 20px 0;
    box-sizing: border-box;
    position: relative;
}

#stats-chart {
    width: 90% !important;
    height: 100% !important;
}

.wrap-graph h2{
    margin: 0;
    align-content: center;
    text-align: center;
}



.wrap-article{
    background-color: #1E40AF;
    margin-bottom: 10px;
    border-radius: 20px;
    margin-left: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 70%;
    overflow: hidden;
}

.article-list {
    width: 95%;
    height: 87%;
    display: grid;
    justify-content: center;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    overflow-y: auto;
    padding: 10px;
}

.article-card {
    width: 100%;
    height: 200px;
    background-color: #334155;
    border-radius: 14px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 180px;
    box-sizing: border-box;
    transition:
        transform 0.2s ease,
        background-color 0.2s ease;
}

.article-card:hover {
    transform: translateY(-3px);
    background-color: #475569;
}

.article-card h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.4;
}

.article-source {
    font-size: 13px;
    color: #93c5fd;
    font-weight: 600;
}

.article-content {
    font-size: 14px;
    line-height: 1.5;
    color: #cbd5e1;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.article-info {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #94a3b8;
}

.article-link {
    color: #60a5fa;
    text-decoration: none;
    font-size: 13px;
}

.article-link:hover {
    text-decoration: underline;
}

.article-search {
    width: 94%;
    height: 6%;
    margin: 15px 0;

    display: flex;
    gap: 10px;

    box-sizing: border-box;
}

.article-search input {
    flex: 1;
    height: 42px;
    padding: 0 10px;
    box-sizing: border-box;
    border: 1px solid #475569;
    border-radius: 10px;
    outline: none;
    background-color: #0F172A;
    color: white;
    font-size: 14px;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.article-search input::placeholder {
    color: #94A3B8;
}

.article-search input:focus {
    border-color: #60A5FA;

    box-shadow:
        0 0 0 2px rgba(96, 165, 250, 0.15);
}

.article-search button {
    height: 42px;
    padding: 0 22px;
    border: none;
    border-radius: 10px;
    background-color: #2563EB;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.article-search button:hover {
    background-color: #3B82F6;
    transform: translateY(-1px);
}

.article-search button:active {
    transform: translateY(0);
}

.article-controls {
    width: 94%;
    margin: 15px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.article-filter {
    display: flex;

    gap: 10px;
}

.article-filter select {
    height: 38px;
    padding: 0 12px;
    border: 1px solid #475569;
    border-radius: 8px;
    background-color: #0F172A;
    color: white;
    outline: none;
    cursor: pointer;
}

.article-filter select:focus {
    border-color: #60A5FA;
}

.date-filter {
    display: flex;
    align-items: center;
    gap: 8px;
}

.date-filter label {
    font-size: 13px;
    font-weight: 600;
}

.date-filter input {
    height: 38px;

    padding: 0 10px;

    border: 1px solid #475569;
    border-radius: 8px;

    background-color: #0F172A;
    color: white;

    outline: none;

    cursor: pointer;
}

.date-filter input:focus {
    border-color: #60A5FA;
}

.wrap-article-filter {
    width: 92%;
    height: 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wrap-article-list{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: 100%;
}
.pagination {
    height: 8%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

#page-numbers {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pagination button {
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid #475569;
    border-radius: 8px;
    background-color: #1E293B;
    color: white;
    cursor: pointer;
    transition: 0.2s;
}

.pagination button:hover:not(:disabled) {
    background-color: #2563EB;
    border-color: #2563EB;
}

.pagination .page-button.active {
    background-color: #2563EB;
    border-color: #2563EB;
    font-weight: bold;
}

.pagination button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

