/* Container Styling */
.container {
    max-width: 1200px;
    margin: 0px auto;
    padding: 0px;
    text-align: left;
    
}

.text-center { text-align: center; margin-bottom: 25px;}

/* Search Bar */
#searchBar {
    width: 100%;
    max-width: 500px;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 20px;
    margin-left: 290px;
}
#datasetContainer {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Two cards per row */
    gap: 20px;
    text-align: center;
    justify-content: center;
}
.dataset-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}


/* Dataset Grid */
.dataset-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    justify-content: center;
}

/* Dataset Card */
.dataset-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 20px 0 0 0 ;
    box-shadow: 2px 2px 10px rgb(118 114 114 / 63%);
    text-align: left;
    transition: transform 0.2s ease-in-out;
}

.dataset-card:hover {
    transform: scale(1.02);
}

.dataset-title {
    color: #3e3e3e;
    text-decoration: none;
    font-size: 17px;
    font-weight: 600;
}

.dataset-title:hover {
    text-decoration: underline;
}

.dataset-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    margin: 20px 0;
}

.dataset-btn {
    background: #4b6c8b;
    color: white;
    padding: 8px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
}

.dataset-btn:hover {
    background: #122a5e;
}

.dataset-meta p {
    margin: 0;
    font-size: 14px;
    color: #333;
}

/* Dataset Title */
.dataset-card h3 {
    font-size: 18px;
    color: #020202;
    margin: 0px 20px;

}

/* Metadata */
.dataset-card p {
    font-size: 14px;
    color: #666;
    margin: 5px 0;
}

/* View Details Button */
.dataset-card button {
    float: right;
    background-color: #39a4dc;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 91px;
    font-size: 14px;
}

.dataset-card button:hover {
    background-color: #091E3E;
}

/* Pagination */
.pagination {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.pagination button {
    padding: 8px 12px;
    font-size: 14px;
    background-color: #ffffff;
    color: rgb(0, 0, 0);
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
    margin: 5px;
    
}

.pagination button:hover {
    background-color: #39a4dc;
}

.pagination button.active {
    background-color: #39a4dc;
    color: white;
    font-weight: bold;
}
.pagination button:disabled {
    background-color: #ddd;
    cursor: not-allowed;
}

.pagination span {
    font-size: 16px;
    font-weight: bold;
}

.dataset-footer {
    display: flex;
    justify-content: space-between;
    align-items: left;
    margin-top: 22px;
    padding: 5px 10px;
    border-top: 1px solid #ddd;
    font-size: 14px;
    color: #fff;
    background-color: #367b93;
}
.footer-item {
    padding: 0 10px; /* Space around items */
}

.vertical-line {
    width: 1px;
    height: 20px;
    background-color: #ccc;
}

/* for different UI*/
/* New Card UI Style */
.dataset-card-v2 {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0px 4px 10px rgb(112 106 106 / 54%);
    overflow: hidden;
    transition: transform 0.2s ease-in-out;
    border: 1px solid #e0e0e0;
    min-height: 20px; /* still useful as a baseline */
}

.dataset-card-v2:hover {
    transform: scale(1.02);
}

/* Top Colored Bar */
.card-header {
    background-color: #e3f2fd;
    padding: 14px 18px;
    border-bottom: 1px solid #ccc;
    height: 60px;
    font-weight: bold;
}

.dataset-card-v2 h3 {
    font-size: 16px;
    margin: 0;
}

.dataset-title {
    text-decoration: none;
    color: #154980;
    font-weight: 600;
}

.dataset-title:hover {
    text-decoration: underline;
}

/* Body Section */
/* .dataset-body {
    padding: 16px 18px;
} */

.dataset-body p {
    font-size: 14px;
    color: #333;
    margin-top: 12px;
}

/* Rounded API Button */
.dataset-btn {
    background-color: #154980;
    color: white;
    padding: 8px 14px;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.dataset-btn:hover {
    background-color: #0f3a6c;
}

/* Footer Section */
.dataset-footer-v2 {
    display: flex;
    justify-content: space-around;
    align-items: left;
    background-color: #f1f8ff;
    padding: 12px 10px;
    border-top: 1px solid #ccc;
    font-size: 13px;
    color: #333;
}

.footer-item {
    padding: 0 10px;
}

.footer-separator {
    width: 1px;
    height: 20px;
    background-color: #ccc;
}
.loader {
    border: 10px solid #f3f3f3;         /* Light grey */
    border-top: 10px solid #3498db;     /* Blue */
    border-radius: 50%;
    width: 60px;                        /* Larger size */
    height: 60px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin: auto;
}
    
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 600px) {
    .dataset-card-v2 {
        text-align: center;
    }
    .dataset-footer-v2 {
        flex-direction: column;
        gap: 6px;
    }
    .footer-separator {
        display: none;
    }
}


@media (max-width:420px) {
   #datasetContainer {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
    text-align: center;
    justify-content: center;
} 

#searchBar { margin-left: 0px;}

}

