@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

:root {
    --primary-color: #2765fe;
    --primary-light: #5a8bfe;
    --primary-dark: #1e4fc7;
    --background-color: #f3f4f6;
    --text-color: #1f2937;
    --text-light: #6b7280;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #e6f0ff 0%, #bdd7fe 100%);
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding: 20px;
    min-height: 100vh;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.5s ease-out forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

header {
    background-color: var(--primary-color);
    color: white;
    padding: 30px;
    text-align: center;
}

.logo-container {
    margin-bottom: 10px;
}

.logo {
    width: 100px;
}

.logo-placeholder {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 10px;
    border-radius: 8px;
    font-weight: bold;
}

header h1 {
    margin: 0;
    font-size: 2.5em;
    opacity: 0;
    transform: translateY(-20px);
    animation: slideDown 0.5s ease-out 0.2s forwards;
}

header p {
    margin: 10px 0 0;
    font-size: 1.2em;
    color: #e6f0ff;
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.5s ease-out 0.4s forwards;
}

.developed-by {
    margin-top: 10px;
    font-size: 0.9em;
    color: #e6f0ff;
}

@keyframes slideDown {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.marquee-container {
    background-color: var(--primary-dark);
    color: white;
    padding: 10px 0;
    overflow: hidden;
}

.marquee {
    display: flex;
    animation: marquee 30s linear infinite;
}

.marquee span {
    white-space: nowrap;
    padding: 0 50px;
}

@keyframes marquee {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

main {
    padding: 30px;
}

.search-container {
    position: relative;
    margin-bottom: 20px;
}

#search-input {
    width: 95%;
    padding: 10px 40px 10px 15px;
    font-size: 1em;
    border: 2px solid var(--primary-light);
    border-radius: 8px;
    outline: none;
    transition: border-color 0.3s;
}

#search-input:focus {
    border-color: var(--primary-color);
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    opacity: 0;
    animation: fadeIn 0.5s ease-out 0.6s forwards;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

th {
    background-color: #f9fafb;
    font-weight: 600;
    color: var(--primary-dark);
}

tr:hover {
    background-color: #f3f4f6;
}

.class-badge {
    padding: 4px 8px;
    border-radius: 9999px;
    font-size: 0.8em;
    font-weight: 600;
}

.class-A { background-color: #d1fae5; color: #065f46; }
.class-B { background-color: #fef3c7; color: #92400e; }
.class-C { background-color: #fee2e2; color: #991b1b; }
.class-D { background-color: #dbeafe; color: #1e40af; }

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.pagination button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 16px;
    margin: 0 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.pagination button:hover {
    background-color: var(--primary-dark);
}

.pagination button:disabled {
    background-color: var(--text-light);
    cursor: not-allowed;
}

#page-info {
    font-size: 0.9em;
    color: var(--text-light);
}

.faq-section, .pharmadocx-section {
    padding: 30px;
    background-color: #f9fafb;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.5s ease-out 0.8s forwards;
}

.faq-section h2, .pharmadocx-section h2 {
    color: var(--primary-dark);
    margin-top: 0;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    background-color: white;
    padding: 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--primary-color);
}

.faq-answer {
    padding: 0 15px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.faq-item.active .faq-answer {
    padding: 15px;
    max-height: 1000px;
}

.pharmadocx-section {
    background-color: #e6f0ff;
    text-align: center;
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: var(--primary-dark);
}

footer {
    background-color: #f3f4f6;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9em;
    color: var(--text-light);
}

.tooltip {
    position: relative;
    display: inline-block;
}

.tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

.info-icon {
    color: var(--primary-color);
    cursor: pointer;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .container {
        width: 100%;
        margin: 0;
        box-shadow: none;
    }

    header h1 {
        font-size: 1.8em;
    }

    header p {
        font-size: 1em;
    }

    #search-input {
        width: 85%;
        font-size: 1em;
    }

    .logo {
        width: 50px;
    }

    table {
        font-size: 0.9em;
        overflow-x: auto;
    }

    th, td {
        padding: 10px;
    }

    .pagination button {
        padding: 5px 10px;
    }

    .faq-section, .pharmadocx-section {
        padding: 20px;
    }

    .faq-item {
        font-size: 0.9em;
    }

    .cta-button {
        padding: 10px 20px;
        font-size: 0.9em;
    }

    footer {
        flex-direction: column;
        text-align: center;
    }

    .marquee {
        font-size: 0.9em;
        animation: marquee 15s linear infinite;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.5em;
    }

    header p {
        font-size: 0.9em;
    }

    .logo {
        width: 50px;
    }

    table {
        font-size: 0.8em;
        overflow-x: auto;
    }

    th, td {
        padding: 8px;
        overflow-x: auto;
    }

    .pagination button {
        font-size: 0.8em;
    }

    .cta-button {
        font-size: 0.8em;
        padding: 8px 16px;
    }
}
