/* Search Box */
.search-box {
    text-align: center;
    margin: 20px auto;
}

.search-box input[type="text"] {
    width: 50%;
    padding: 12px;
    border-radius: 10px;
    border: 2px solid #6a11cb;
    font-size: 16px;
    outline: none;
}

.search-box button {
    padding: 12px 20px;
    margin-left: 10px;
    background: linear-gradient(to right, #f7971e, #ffd200);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    color: #2c3e50;
    font-weight: bold;
    transition: 0.3s;
}

.search-box button:hover {
    background: linear-gradient(to right, #ff512f, #dd2476);
    color: white;
}

.reset-btn {
    margin-left: 10px;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 10px;
    background: #3498db;
    color: white;
    font-weight: bold;
    transition: 0.3s;
}

.reset-btn:hover {
    background: #1abc9c;
}

/* Pagination */
.pagination {
    text-align: center;
    margin: 20px 0;
}

.pagination a {
    display: inline-block;
    padding: 10px 15px;
    margin: 5px;
    border-radius: 8px;
    background: linear-gradient(to right, #6a11cb, #2575fc);
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.pagination a:hover {
    background: linear-gradient(to right, #ff512f, #dd2476);
}

.pagination a.active {
    background: linear-gradient(to right, #f7971e, #ffd200);
    color: #2c3e50;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 25px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0px 5px 15px rgba(0,0,0,0.2);
}

/* Table Header */
table th {
    background: linear-gradient(to right, #ff6a00, #ee0979);
    color: white;
    padding: 14px 18px;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
}

/* Table Rows */
table td {
    padding: 12px 15px;
    font-size: 15px;
    border-bottom: 1px solid #ddd;
    color: #2c3e50;
}

/* Alternating Row Colors */
table tr:nth-child(even) {
    background: #f0f9ff; /* light blue */
}

table tr:nth-child(odd) {
    background: #fff7f0; /* light orange */
}

/* Hover Effect */
table tr:hover {
    background: #ffeaa7 !important;
    transition: 0.3s ease;
}

/* Make first column stand out */
table td:first-child {
    font-weight: bold;
    color: #6a11cb;
}
/* Accordion Button */
.accordion-btn {
    padding: 8px 15px;
    background: linear-gradient(to right, #43cea2, #185a9d);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.accordion-btn:hover {
    background: linear-gradient(to right, #ff512f, #dd2476);
}

/* Hidden details row */
.details-row td {
    background: #f9f9f9;
    border-top: 2px solid #ddd;
    padding: 15px;
    font-size: 14px;
    color: #2c3e50;
}
.details-row p {
    margin: 10px 0;
    line-height: 1.5;
    font-size: 14px;
}
.details-row strong {
    color: #185a9d; /* make labels stand out */
}
/* Card container */
.card-container {
    display: flex;
    flex-wrap: nowrap;       /* keep cards in one row */
    gap: 15px;
    margin-top: 10px;
    overflow-x: auto;        /* scroll horizontally if too many */
    padding-bottom: 10px;    /* space for scrollbar */
    scrollbar-width: thin;   /* slim scrollbar for Firefox */
}

/* Generic card style */
.card {
    flex: 0 0 220px;         /* fixed width for consistency */
    min-width: 220px;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    color: white;
    font-size: 14px;
    transition: transform 0.2s;
    word-break: break-word;
}
.card:hover {
    transform: translateY(-5px);
}

/* Individual colors */
.syn-card { background: linear-gradient(135deg, #6a11cb, #2575fc); }
.acts-card { background: linear-gradient(135deg, #00c6ff, #0072ff); }
.ind-card { background: linear-gradient(135deg, #43cea2, #185a9d); }
.dos-card { background: linear-gradient(135deg, #ff9966, #ff5e62); }
.contra-card { background: linear-gradient(135deg, #e53935, #e35d5b); }

/* Headings inside cards */
.card h3 {
    margin-top: 0;
    font-size: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    padding-bottom: 5px;
}

/* Optional: Style scrollbar for WebKit browsers */
.card-container::-webkit-scrollbar {
    height: 8px;
}
.card-container::-webkit-scrollbar-thumb {
    background: #6a11cb;
    border-radius: 10px;
}
.card-container::-webkit-scrollbar-track {
    background: #f1f1f1;
}
