/* ========== Doctor Page Styles - Redesigned ========== */

.doctor-icon {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
    color: #10B981;
}

/* Key Points Section */
.key-points-section {
    margin-bottom: 3rem;
}

.key-points-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.key-point-card {
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.key-point-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: #10B981;
}

.kp-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.key-point-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.key-point-card p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Tabs Navigation */
.tabs-nav {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 0.5rem;
    background: var(--bg-primary);
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    overflow-x: auto;
}

.tab-button {
    flex: 1;
    min-width: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font-family);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: var(--transition-base);
    position: relative;
}

.tab-button::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    border-radius: 3px 3px 0 0;
    transform: scaleX(0);
    transition: var(--transition-base);
}

.tab-button:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.tab-button.active {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
    color: #10B981;
}

.tab-button.active::before {
    transform: scaleX(1);
}

.tab-icon {
    font-size: 1.25rem;
}

/* Tab Content */
.tab-content {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* Drug Card */
.drug-card {
    margin-bottom: 3rem;
}

.drug-header {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    padding: 2rem;
    border-radius: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
}

.drug-header h2 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.drug-subtitle {
    font-size: 1rem;
    opacity: 0.95;
}

/* Drug Info Grid */
.drug-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-card {
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: #10B981;
}

.info-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.info-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-card li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.9375rem;
}

.info-card li:last-child {
    margin-bottom: 0;
}

.info-card li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #10B981;
    font-weight: 700;
}

.info-card li strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Clinical Note */
.clinical-note {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(37, 99, 235, 0.1) 100%);
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.clinical-note.warning {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.1) 100%);
    border-color: rgba(239, 68, 68, 0.3);
}

.clinical-note .note-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.clinical-note strong {
    color: #3B82F6;
}

.clinical-note.warning strong {
    color: #EF4444;
}

/* Comparison Section */
.comparison-section {
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 2rem;
    text-align: center;
}

.comparison-table-wrapper {
    overflow-x: auto;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-primary);
    border-radius: 1rem;
    overflow: hidden;
}

.comparison-table thead {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
}

.comparison-table th {
    padding: 1.25rem 1.5rem;
    text-align: left;
    font-weight: 700;
    font-size: 1rem;
}

.comparison-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-base);
}

.comparison-table tbody tr:last-child {
    border-bottom: none;
}

.comparison-table tbody tr:hover {
    background: var(--bg-secondary);
}

.comparison-table td {
    padding: 1.25rem 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.5;
}

.comparison-table td:first-child {
    font-weight: 600;
    color: var(--text-primary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .tabs-nav {
        gap: 0.5rem;
        padding: 0.5rem;
    }

    .tab-button {
        min-width: 120px;
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }

    .tab-icon {
        font-size: 1rem;
    }

    .drug-header {
        padding: 1.5rem;
    }

    .drug-header h2 {
        font-size: 1.5rem;
    }

    .drug-info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 1rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .tab-button span:last-child {
        display: none;
    }

    .tab-button {
        min-width: auto;
        padding: 0.75rem;
    }

    .drug-header h2 {
        font-size: 1.25rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.8125rem;
    }
}