/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
.stat-label {
    color: black;
    font-size: 0.9rem;
}

/* ===== DRUGS GRID ===== */
.drugs-database {
    padding: 40px 0;
}

.drugs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.drug-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.drug-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.drug-card .drug-image {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 15px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.drug-name {
    color: #2d3748;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.drug-generic {
    color: #718096;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.drug-category {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    text-align: center;
    margin-bottom: 0.5rem;
}

.drug-manufacturer {
    color: #a0aec0;
    font-size: 0.8rem;
    text-align: center;
    margin-bottom: 1rem;
}

.drug-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.drug-price {
    color: #48bb78;
    font-weight: bold;
}

.drug-rating {
    color: #f6ad55;
}

.drug-actions {
    text-align: center;
}

.view-details-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.view-details-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
}

.page-btn {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #e2e8f0;
    color: #4a5568;
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-btn:not(:disabled):hover {
    background: white;
    border-color: #667eea;
    color: #667eea;
}

.page-numbers {
    display: flex;
    gap: 0.5rem;
}

.page-number {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #e2e8f0;
    color: #4a5568;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-number.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: transparent;
}

.page-number:hover:not(.active) {
    border-color: #667eea;
    color: #667eea;
}

.page-ellipsis {
    color: #a0aec0;
    display: flex;
    align-items: center;
    padding: 0 0.5rem;
}

/* ===== CATEGORIES GRID ===== */
.categories-section {
    padding: 60px 0;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

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

.category-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.category-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
}

.category-name {
    color: #2d3748;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.category-count {
    color: #718096;
    font-size: 0.9rem;
}

/* ===== TIPS SECTIONS ===== */
.tips-categories {
    padding: 40px 0;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.categories-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.category-tab {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.category-tab.active, .category-tab:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.tips-section {
    padding: 60px 0;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    display: none;
}

.tips-section.active {
    display: block;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.tip-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    gap: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.tip-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.tip-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.tip-content {
    flex: 1;
}

.tip-title {
    color: #2d3748;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.tip-description {
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.tip-importance {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.tip-importance.high {
    background: #fed7d7;
    color: #c53030;
}

.tip-importance.medium {
    background: #feebc8;
    color: #dd6b20;
}

.tip-importance.low {
    background: #c6f6d5;
    color: #38a169;
}

/* ===== WARNING SECTIONS ===== */
.warning-section {
    padding: 40px 0;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.warning-card {
    background: rgba(254, 215, 215, 0.9);
    border: 2px solid #feb2b2;
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.warning-icon {
    width: 60px;
    height: 60px;
    background: #e53e3e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.warning-title {
    color: #c53030;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.warning-text {
    color: #744210;
    line-height: 1.7;
}

/* ===== EMERGENCY SECTION ===== */
.emergency-section {
    padding: 60px 0;
    background: rgba(229, 62, 62, 0.1);
    backdrop-filter: blur(10px);
}

.emergency-card {
    background: rgba(254, 215, 215, 0.95);
    border: 3px solid #feb2b2;
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
}

.emergency-icon {
    width: 80px;
    height: 80px;
    background: #e53e3e;
    border-radius: 50%;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.emergency-title {
    color: #c53030;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.emergency-description {
    color: #744210;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.emergency-numbers {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.emergency-number {
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #c53030;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* ===== LOADING OVERLAY ===== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.loading-spinner {
    text-align: center;
    color: white;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== FOOTER ===== */
.footer {
    background: rgba(45, 55, 72, 0.95);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.footer-logo i {
    margin-left: 0.5rem;
    color: #667eea;
    font-size: 1.8rem;
}

.footer-description {
    color: #a0aec0;
    line-height: 1.6;
}

.footer-title {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #667eea;
}

.contact-info p {
    color: #a0aec0;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-info i {
    color: #667eea;
    width: 20px;
}

.footer-bottom {
    border-top: 1px solid #4a5568;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: #4a5568;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #667eea;
    transform: translateY(-2px);
}

/* ===== POPULAR DRUGS ===== */
.popular-drugs {
    padding: 60px 0;
}

.popular-drugs .drugs-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* ===== RESPONSIVE DESIGN - الحل النهائي ===== */

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .controls-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    
    .view-controls {
        justify-content: space-between;
    }
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    /* تم حذف display: none من هنا! */
    .nav-menu {
        position: fixed;
        left: -100%; /* مخفية خارج الشاشة */
        top: 80px; /* تحت الـ header */
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        z-index: 999;
        padding: 2rem 0;
        height: calc(100vh - 80px); /* ملء الشاشة */
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0; /* تظهر عند الضغط */
    }

    .nav-menu li {
        margin: 1.5rem 0;
        transform: translateY(20px);
        opacity: 0;
        transition: all 0.3s ease;
    }

    .nav-menu.active li {
        transform: translateY(0);
        opacity: 1;
    }

    /* تأخير ظهور العناصر */
    .nav-menu.active li:nth-child(1) { transition-delay: 0.1s; }
    .nav-menu.active li:nth-child(2) { transition-delay: 0.2s; }
    .nav-menu.active li:nth-child(3) { transition-delay: 0.3s; }
    .nav-menu.active li:nth-child(4) { transition-delay: 0.4s; }
    .nav-menu.active li:nth-child(5) { transition-delay: 0.5s; }
    .nav-menu.active li:nth-child(6) { transition-delay: 0.6s; }

    .nav-link {
        display: block;
        padding: 1rem 2rem;
        font-size: 1.1rem;
        border-radius: 10px;
        margin: 0 1rem;
        transition: all 0.3s ease;
    }

    .nav-link:hover {
        background: rgba(102, 126, 234, 0.1);
        transform: translateX(-5px);
    }
    
    .hamburger {
        display: flex !important;
        z-index: 1001;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-8px, 6px);
        background: #667eea;
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(20px);
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-8px, -6px);
        background: #667eea;
    }

    /* باقي الستايلز للموبايل */
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .features-grid,
    .tips-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .filters {
        flex-direction: column;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding-top: 40px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* الهامبرجر الأساسي */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1001;
    padding: 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.hamburger:hover {
    background: rgba(102, 126, 234, 0.1);
}

.hamburger span {
    width: 26px;
    height: 3px;
    background: #4a5568;
    border-radius: 3px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-origin: center;
}

/* منع التمرير عند فتح القائمة */
body.menu-open {
    overflow: hidden;
}

/* تحسين الظهور */
.nav-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

/* ===== UTILITY CLASSES ===== */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.p-1 { padding: 1rem; }
.p-2 { padding: 2rem; }
.p-3 { padding: 3rem; }

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.slide-in-right {
    animation: slideInFromRight 0.6s ease-out;
}

.slide-in-left {
    animation: slideInFromLeft 0.6s ease-out;
}

/* ===== SCROLLBAR STYLING ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a6fd8, #6b42a6);
} 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER & NAVIGATION ===== */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: float 4s ease-in-out infinite;
}

.floating-card i {
    font-size: 2rem;
    color: #667eea;
}

.floating-card span {
    color: #4a5568;
    font-weight: 600;
}

.card-1 {
    top: 10%;
    right: 10%;
    animation-delay: -1s;
}

.card-2 {
    top: 50%;
    left: 0;
    animation-delay: -2s;
}

.card-3 {
    bottom: 10%;
    right: 20%;
    animation-delay: -3s;
}

/* ===== PAGE HEADER ===== */
.page-header {
    padding: 120px 0 60px;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    margin-top: 80px;
}

.page-header-content h1 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.page-header-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== FEATURES SECTION ===== */
.features {
    padding: 80px 0;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1rem;
}
.drug-input-section .section-title{
        font-size: 2.5rem;
    color:black;
    margin-bottom: 1rem;
}
.results-header h2, p{
    color: white; 
}

.section-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.5s;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.feature-title {
    font-size: 1.5rem;
    color: #2d3748;
    margin-bottom: 1rem;
}

.feature-description {
    color: #718096;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.feature-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.feature-link:hover {
    gap: 1rem;
}

/* ===== STATS SECTION ===== */
.stats {
    padding: 60px 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-item {
    text-align: center;
    color: white;
}

.stat-number {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #ffffff, #e2e8f0);
    -webkit-background-clip: text;
    background-clip: text;
    /* -webkit-text-fill-color: transparent; */
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ===== CTA SECTION ===== */
.cta {
    padding: 80px 0;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.cta-title {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1rem;
}

.cta-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== DRUG SEARCH SECTION ===== */
        .drug-search {
            padding: 40px 0;
        }

        .search-container {
            background: rgba(255, 255, 255, 0.98);
            border-radius: 20px;
            padding: 3rem;
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
            max-width: 900px;
            margin: 0 auto;
        }

        .search-container h1 {
            color: #2d3748;
            font-size: 2rem;
            text-align: center;
            margin-bottom: 2rem;
            line-height: 1.4;
        }

        .search-input-container {
            display: flex;
            gap: 1rem;
            margin-bottom: 2rem;
        }

        .search-input-container input[type="search"] {
            flex: 1;
            padding: 15px 20px;
            border: 2px solid #e2e8f0;
            border-radius: 10px;
            font-size: 16px;
        }

        .search-input-container button {
            padding: 15px 30px;
            background: linear-gradient(135deg, #667eea, #764ba2);
            color: white;
            border: none;
            border-radius: 10px;
            cursor: pointer;
            font-size: 16px;
            font-weight: 600;
            white-space: nowrap;
        }

        .pill-buttons {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            justify-content: center;
            margin-bottom: 2rem;
        }

        .pill-button {
            padding: 10px 20px;
            background: linear-gradient(135deg, #764ba2, #667eea);
            color: white;
            border: none;
            border-radius: 25px;
            cursor: pointer;
            font-size: 14px;
        }

/* ===== DRUG INFO CARDS ===== */
.drug-info-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    margin-top: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.drug-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f7fafc;
}

.drug-image {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 20px;
    margin-left: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.drug-details h2 {
    color: #2d3748;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.price-tag {
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-weight: bold;
    display: inline-block;
    margin-top: 0.5rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.info-card {
    background: #f7fafc;
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.info-card h3 {
    color: #2d3748;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-card .icon {
    color: #667eea;
    font-size: 1.2rem;
}

.alternatives-list, .interactions-list {
    list-style: none;
}

.alternatives-list li, .interactions-list li {
    background: white;
    margin: 0.8rem 0;
    padding: 1rem;
    border-radius: 10px;
    border-right: 4px solid #667eea;
    transition: all 0.3s ease;
}

.alternatives-list li:hover, .interactions-list li:hover {
    background: #f7fafc;
    transform: translateX(-5px);
}

/* ===== INTERACTION CHECKER SPECIFIC ===== */
.drug-input-section {
    margin-bottom: 2rem;
}

.drug-input-wrapper {
    margin-bottom: 2rem;
}

.input-group {
    display: flex;
    gap: 1rem;
}

.drug-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.add-drug-btn {
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.add-drug-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(72, 187, 120, 0.3);
}

.added-drugs {
    margin: 2rem 0;
}

.drugs-list-title {
    color: #2d3748;
    margin-bottom: 1rem;
}

.drugs-list {
    min-height: 100px;
    border: 2px dashed #e2e8f0;
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: flex-start;
}

.empty-state {
    color: #a0aec0;
    font-style: italic;
    margin: auto;
}

.drug-tag {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.remove-drug {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.remove-drug:hover {
    opacity: 1;
}

.check-section {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.check-btn, .clear-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.check-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.check-btn:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
}

.clear-btn {
    background: #e53e3e;
    color: white;
}

.check-btn:hover:not(:disabled), .clear-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* ===== INTERACTION RESULTS ===== */
.interaction-results {
    padding: 2rem 0;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.results-header {
    text-align: center;
    margin-bottom: 2rem;
}

.results-title {
    color: white;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.results-summary, .results-count {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
}

.interactions-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.interaction-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.interaction-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.severity-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.severity-badge.severe {
    background: #fed7d7;
    color: #c53030;
}

.severity-badge.moderate {
    background: #feebc8;
    color: #dd6b20;
}

.severity-badge.mild {
    background: #c6f6d5;
    color: #38a169;
}

.interaction-title {
    color: #2d3748;
    font-size: 1.3rem;
}

.interaction-description {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.interaction-advice {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #667eea;
    font-weight: 600;
}

/* ===== PILL IDENTIFIER SPECIFIC ===== */
.identification-methods {
    margin-bottom: 2rem;
}

.methods-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tab-btn {
    background: rgba(102, 126, 234, 0.1);
    border: 2px solid #667eea;
    color: #667eea;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.tab-btn.active, .tab-btn:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.method-content {
    display: none;
}

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

.image-upload-section {
    margin-bottom: 2rem;
}

.upload-area {
    border: 3px dashed #cbd5e0;
    border-radius: 15px;
    padding: 3rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area:hover, .upload-area.dragover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.upload-content i {
    font-size: 3rem;
    color: #a0aec0;
    margin-bottom: 1rem;
}

.upload-content h3 {
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.upload-content p {
    color: #718096;
    margin-bottom: 1.5rem;
}

.file-input {
    display: none;
}

.upload-btn, .camera-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.camera-section {
    text-align: center;
    margin-top: 1rem;
}

.image-preview {
    margin-top: 2rem;
    text-align: center;
}

.image-preview img {
    max-width: 300px;
    max-height: 300px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

.preview-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.analyze-btn {
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.remove-btn {
    background: #e53e3e;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ===== PROPERTIES FORM ===== */
.properties-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 2rem;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #2d3748;
    font-weight: 600;
    margin-bottom: 1rem;
}

.color-options, .shape-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.color-btn, .shape-btn {
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    text-align: center;
    font-weight: 500;
}

.color-btn:hover, .color-btn.active,
.shape-btn:hover, .shape-btn.active {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

.shape-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 0.5rem;
    border: 2px solid #a0aec0;
}

.round-shape { border-radius: 50%; }
.oval-shape { border-radius: 50%; transform: scaleX(1.5); }
.square-shape { border-radius: 0; }
.rectangle-shape { border-radius: 0; transform: scaleX(1.5); }
.triangle-shape { 
    border-radius: 0;
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: 35px solid #a0aec0;
    margin: 5px auto;
}
.capsule-shape { border-radius: 20px; transform: scaleX(2); }

.form-select, .form-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-select:focus, .form-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-help {
    color: #718096;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.score-options {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.score-btn {
    padding: 1.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    text-align: center;
    font-weight: 500;
    flex: 1;
    max-width: 150px;
}

.score-icon {
    width: 60px;
    height: 30px;
    margin: 0 auto 0.5rem;
    background: #f7fafc;
    border-radius: 5px;
    position: relative;
}

.single-score::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #a0aec0;
    transform: translateY(-50%);
}

.cross-score::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #a0aec0;
    transform: translateY(-50%);
}

.cross-score::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: #a0aec0;
    transform: translateX(-50%);
}

.search-properties-btn, .search-imprint-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 1.2rem 2.5rem;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 2rem auto 0;
}

/* ===== DATABASE SPECIFIC ===== */
.database-controls {
    padding: 40px 0;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.controls-wrapper {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
    flex-wrap: wrap;
}

.search-filter-section {
    flex: 1;
}

.filters {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-label, .sort-label {
    color: #4a5568;
    font-weight: 600;
    font-size: 0.9rem;
}

.filter-select, .sort-select {
    padding: 0.8rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select:focus, .sort-select:focus {
    outline: none;
    border-color: #667eea;
}

.reset-filters-btn {
    background: #e53e3e;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.view-controls {
    display: flex;
    align-items: flex-end;
    gap: 2rem;
}

.view-toggle {
    display: flex;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.view-btn {
    background: white;
    border: none;
    padding: 0.8rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #4a5568;
}

.view-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.sort-controls {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* ===== DATABASE STATS ===== */
.database-stats {
    padding: 40px 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.stat-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
   
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.stat-number {
    font-size: 1.3rem;
    font-weight: bold;
    color: black;
    margin-bottom: 0.2rem;
}

.stat-label {
    color: black;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
}

.logo i {
    margin-left: 0.5rem;
    color: #667eea;
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #4a5568;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #4a5568;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 200px;
    height: 200px;
    background: white;
    top: 10%;
    right: 10%;
    animation-delay: -2s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    background: white;
    bottom: 20%;
    left: 5%;
    animation-delay: -4s;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: white;
    top: 50%;
    right: 30%;
    animation-delay: -1s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(135deg, #ffffff, #e2e8f0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
}

.hero-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: white;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-large {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
}

.hero-image {
    position: relative;
    height: 500px;
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: float 4s ease-in-out infinite;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
}

 .search-container {
            display: flex;
            gap: 10px;
            margin-bottom: 20px;
        }
        
        input[type="search"] {
            flex: 1;
            padding: 15px;
            border: 2px solid #ddd;
            border-radius: 10px;
            font-size: 16px;
        }
        
        button {
            padding: 15px 30px;
            background: #667eea;
            color: white;
            border: none;
            border-radius: 10px;
            cursor: pointer;
            font-size: 16px;
        }
        
        button:hover {
            background: #5a6fd8;
        }
        
        .pill-buttons {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            justify-content: center;
            margin-top: 20px;
        }
        
        .pill-button {
            padding: 10px 20px;
            background: #764ba2;
            color: white;
            border: none;
            border-radius: 25px;
            cursor: pointer;
            font-size: 14px;
        }
        
        .pill-button:hover {
            background: #663399;
        }
        
        .results {
            margin-top: 30px;
            padding: 20px;
            background: #f8f9fa;
            border-radius: 10px;
            display: none;
        }


.istat-item {
    text-align: center;
    color: white;
}

.istat-number {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #ffffff, #e2e8f0);
    -webkit-background-clip: text;
    background-clip: text;
    /* -webkit-text-fill-color: transparent; */
}

.istat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}
.istat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.istat-number {
    font-size: 1.3rem;
    font-weight: bold;
    color: white;
    margin-bottom: 0.2rem;
}

.istat-label {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    z-index: 1001;
    padding: 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.hamburger:hover {
    background: rgba(102, 126, 234, 0.1);
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #4a5568;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* إصلاح النافجيشن للموبايل */
@media (max-width: 768px) {
    /* إظهار الهامبرجر على الموبايل */
    .hamburger {
        display: flex !important;
    }
    
    /* إخفاء النافجيشن الأساسي */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px; /* تقليل الارتفاع */
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        z-index: 999;
        padding: 1rem 0;
        height: calc(100vh - 70px);
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
        transform: translateY(20px);
        opacity: 0;
        transition: all 0.3s ease;
    }

    .nav-menu.active li {
        transform: translateY(0);
        opacity: 1;
    }

    /* تأثير الهامبرجر عند التفعيل */
    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-6px, 6px);
        background: #667eea;
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-6px, -6px);
        background: #667eea;
    }

    /* إصلاح الهيدر */
    .header {
        padding: 0.5rem 0;
    }
    
    .nav {
        padding: 0.5rem 0;
    }

    /* إصلاح Page Header للموبايل */
    .page-header {
        padding: 100px 0 40px; /* تقليل البادينج */
        margin-top: 60px; /* تقليل المارجن */
    }
    
    .page-header-content h1 {
        font-size: 2rem; /* تصغير حجم الخط */
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .page-header-content p {
        font-size: 1rem;
        padding: 0 1rem;
    }

    /* إصلاح محتوى البحث */
    .drug-search {
        padding: 40px 0; /* تقليل البادينج */
    }
    
    .search-container {
        padding: 2rem 1rem; /* تقليل البادينج الداخلي */
    }
    
    /* إصلاح أزرار الحبوب */
    .pill-buttons {
        gap: 8px;
        margin-top: 15px;
    }
    
    .pill-button {
        padding: 8px 15px;
        font-size: 13px;
    }
    
    /* إصلاح حقل البحث */
    .search-container .search-container {
        flex-direction: column;
        gap: 15px;
    }
    
    input[type="search"] {
        padding: 12px;
        font-size: 15px;
    }
    
    button {
        padding: 12px 25px;
        font-size: 15px;
    }

    /* إصلاح الأدوية الشائعة */
    .popular-drugs {
        padding: 40px 0;
    }
    
    .drugs-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .drug-card {
        padding: 1.5rem;
    }

    /* إصلاح النصائح */
    .tips-section {
        padding: 40px 0;
    }
    
    .tips-content {
        flex-direction: column;
        text-align: center;
    }
    
    .tips-list li {
        margin-bottom: 1rem;
    }

    /* إصلاح الفوتر */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    /* منع التمرير الأفقي */
    body {
        overflow-x: hidden;
    }
    
    .container {
        padding: 0 15px;
        max-width: 100%;
    }
}

/* للشاشات الصغيرة جداً */
@media (max-width: 480px) {
    .page-header-content h1 {
        font-size: 1.8rem;
    }
    
    .search-container {
        padding: 1.5rem;
    }
    
    .pill-buttons {
        grid-template-columns: repeat(2, 1fr);
        display: grid;
    }
    
    .container {
        padding: 0 10px;
    }
}

/* إصلاحات إضافية للنص العربي */
@media (max-width: 768px) {
    .page-header-content p {
        line-height: 1.6;
        text-align: center;
    }
    
    .tips-list {
        text-align: right;
    }
    
    .tips-list li {
        display: flex;
        align-items: flex-start;
        gap: 0.5rem;
        text-align: right;
    }
}

.drug-search .search-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    margin: 0 auto;
}

.drug-search .search-container h1 {
    color: #2d3748;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    line-height: 1.4;
}

.search-input-container {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    width: 100%;
}

.search-input-container input[type="search"] {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.search-input-container button {
    padding: 15px 30px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.pill-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 2rem;
}

.pill-button {
    padding: 10px 20px;
    background: linear-gradient(135deg, #764ba2, #667eea);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    font-weight: 500;
}


.input-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.drug-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.add-drug-btn {
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.drugs-list {
    min-height: 100px;
    border: 2px dashed #e2e8f0;
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: flex-start;
    background: #f8f9fa;
}

.drug-tag {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    animation: slideIn 0.3s ease-out;
}

/* إصلاح منطقة النتائج */
.results {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    display: none;
    border: 1px solid #e9ecef;
}

/* إصلاح العرض على الموبايل */
@media (max-width: 768px) {
    .drug-search .search-container {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }
    
    .drug-search .search-container h1 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .search-input-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-input-container input[type="search"] {
        padding: 12px 15px;
        font-size: 15px;
    }
    
    .search-input-container button {
        padding: 12px 25px;
        font-size: 15px;
    }
    
    .pill-buttons {
        gap: 8px;
        margin-bottom: 1.5rem;
    }
    
    .pill-button {
        padding: 8px 15px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .drug-search .search-container {
        padding: 1.5rem 1rem;
    }
    
    .drug-search .search-container h1 {
        font-size: 1.3rem;
    }
    
    .pill-buttons {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}

/* ===== إصلاحات خاصة بصفحة التداخلات ===== */

/* إصلاح قسم إضافة الأدوية */
.drug-input-section .section-title {
    font-size: 2rem;
    color: #2d3748;
    margin-bottom: 2rem;
    text-align: center;
}

.input-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.drug-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.drug-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.add-drug-btn {
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.add-drug-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(72, 187, 120, 0.3);
}

/* إصلاح قائمة الأدوية المضافة */
.drugs-list {
    min-height: 100px;
    border: 2px dashed #e2e8f0;
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: flex-start;
    background: #f8f9fa;
}

.empty-state {
    color: #a0aec0;
    font-style: italic;
    margin: auto;
    font-size: 1rem;
}

.drug-tag {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.remove-drug {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    padding: 0;
    margin: 0;
    line-height: 1;
}

.remove-drug:hover {
    opacity: 1;
}

/* إصلاح أزرار الفحص */
.check-section {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.check-btn, .clear-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.check-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.check-btn:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
    transform: none;
}

.clear-btn {
    background: #e53e3e;
    color: white;
}

.check-btn:hover:not(:disabled), .clear-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* إصلاحات للموبايل - التداخلات */
/* إصلاحات الموبايل الشاملة */
@media (max-width: 768px) {
    /* إصلاح الهيدر */
    .page-header {
        padding: 100px 0 40px;
        margin-top: 60px;
    }
    
    .page-header-content h1 {
        font-size: 2rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    /* إصلاح فحص الأدوية */
    .drug-search .search-container {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }
    
    .search-input-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .pill-buttons {
        gap: 8px;
    }
    
    /* إصلاح التداخلات */
    .input-group {
        flex-direction: column;
        gap: 15px;
    }
    
    .add-drug-btn {
        justify-content: center;
        width: 100%;
    }
    
    /* إصلاح القوائم */
    .drugs-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* إصلاح الفوتر */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .drug-search .search-container {
        padding: 1.5rem 1rem;
    }
    
    .pill-buttons {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .container {
        padding: 0 10px;
    }
}

/* منع التمرير الأفقي */
body {
    overflow-x: hidden;
}

/* إصلاحات إضافية للنصوص */
* {
    font-family: 'Segoe UI', 'Arial', sans-serif;

}
    
    .check-section {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .check-btn, .clear-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
