/* PWA Styles */
.pwa-mode {
    /* Special styles when running as PWA */
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
}

.pwa-install-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    font-family: inherit;
    display: none;
}

.pwa-install-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

/* Small App Install Button Styles */
.small-app-install {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: none;
}

.small-install-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 25px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    animation: smallButtonPulse 3s ease-in-out infinite;
}

@keyframes smallButtonPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.small-install-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.5);
}

.small-install-btn .install-icon {
    font-size: 16px;
}

.small-install-btn .install-text {
    font-size: 13px;
    white-space: nowrap;
}

/* Install Modal Styles */
.install-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.install-modal-content {
    background: white;
    border-radius: 20px;
    padding: 0;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideUp 0.3s ease-out;
    overflow: hidden;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.install-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.install-modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
}

.modal-close {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.install-modal-body {
    padding: 25px;
    text-align: center;
}

.install-modal-body p {
    color: #6c757d;
    margin-bottom: 25px;
    font-size: 1rem;
    line-height: 1.5;
}

.install-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.install-option {
    background: white;
    border: 2px solid #e9ecef;
    padding: 15px 20px;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 14px;
    color: #2c3e50;
    position: relative;
    overflow: hidden;
}

.install-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.install-option:hover::before {
    left: 100%;
}

.install-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.install-option.pwa-option {
    border-color: #27ae60;
    background: linear-gradient(135deg, #f8fff8, #ffffff);
}

.install-option.pwa-option:hover {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    border-color: #27ae60;
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.3);
}

.install-option.ios-option {
    border-color: #6c757d;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
}

.install-option.ios-option:hover {
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
    border-color: #6c757d;
    box-shadow: 0 8px 25px rgba(108, 117, 125, 0.3);
}

.install-option.android-option {
    border-color: #4caf50;
    background: linear-gradient(135deg, #f1f8e9, #ffffff);
}

.install-option.android-option:hover {
    background: linear-gradient(135deg, #4caf50, #45a049);
    color: white;
    border-color: #4caf50;
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3);
}

.option-icon {
    font-size: 20px;
}

.option-text {
    flex: 1;
    text-align: right;
}

/* Hide in standalone mode */
@media (display-mode: standalone) {
    .small-app-install {
        display: none !important;
    }
}

/* Mobile responsive for small button */
@media (max-width: 768px) {
    .small-app-install {
        bottom: 15px;
        right: 15px;
    }
    
    .small-install-btn {
        padding: 10px 14px;
        font-size: 13px;
    }
    
    .small-install-btn .install-text {
        font-size: 12px;
    }
    
    .install-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .install-options {
        gap: 10px;
    }
    
    .install-option {
        padding: 12px 16px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .small-install-btn .install-text {
        display: none;
    }
    
    .small-install-btn {
        width: 45px;
        height: 45px;
        border-radius: 50%;
        padding: 0;
        justify-content: center;
    }
    
    .small-install-btn .install-icon {
        font-size: 18px;
    }
}

/* App Install Banner Styles */
.app-install-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem;
    margin: 0 -2rem 2rem -2rem;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
    animation: slideDown 0.5s ease-out;
    display: none;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.app-install-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: bannerShine 3s ease-in-out infinite;
}

@keyframes bannerShine {
    0%, 100% { left: -100%; }
    50% { left: 100%; }
}

.install-banner-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 2;
}

.install-banner-icon {
    font-size: 2.5rem;
    animation: iconBounce 2s ease-in-out infinite;
}

@keyframes iconBounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
    60% { transform: translateY(-4px); }
}

.install-banner-text {
    flex: 1;
    min-width: 0;
}

.install-banner-text h3 {
    margin: 0 0 0.3rem 0;
    font-size: 1.2rem;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.install-banner-text p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
    line-height: 1.4;
}

.install-banner-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.install-btn {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
    padding: 0.6rem 1rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.install-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.install-btn:hover::before {
    left: 100%;
}

.install-btn:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.install-btn:active {
    transform: translateY(0);
}

.install-btn.pwa-install {
    background: rgba(39, 174, 96, 0.3);
    border-color: rgba(39, 174, 96, 0.5);
    display: none;
}

.install-btn.pwa-install:hover {
    background: rgba(39, 174, 96, 0.5);
}

.install-btn.ios-install {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

.install-btn.ios-install:hover {
    background: rgba(0, 0, 0, 0.5);
}

.install-btn.android-install {
    background: rgba(76, 175, 80, 0.3);
    border-color: rgba(76, 175, 80, 0.5);
}

.install-btn.android-install:hover {
    background: rgba(76, 175, 80, 0.5);
}

.install-icon {
    font-size: 1rem;
}

.banner-close {
    background: rgba(231, 76, 60, 0.3);
    color: white;
    border: 2px solid rgba(231, 76, 60, 0.5);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: bold;
    backdrop-filter: blur(10px);
    margin-left: 0.5rem;
}

.banner-close:hover {
    background: rgba(231, 76, 60, 0.5);
    transform: scale(1.1);
}

/* Hide banner in standalone mode */
@media (display-mode: standalone) {
    .app-install-banner {
        display: none !important;
    }
}

/* Mobile responsive for install banner */
@media (max-width: 768px) {
    .app-install-banner {
        margin: 0 -1rem 1.5rem -1rem;
        padding: 1rem;
    }
    
    .install-banner-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .install-banner-buttons {
        justify-content: center;
        width: 100%;
    }
    
    .install-btn {
        flex: 1;
        min-width: 80px;
        justify-content: center;
    }
    
    .banner-close {
        position: absolute;
        top: 10px;
        right: 10px;
        margin: 0;
    }
}

@media (max-width: 480px) {
    .install-banner-icon {
        font-size: 2rem;
    }
    
    .install-banner-text h3 {
        font-size: 1.1rem;
    }
    
    .install-banner-text p {
        font-size: 0.8rem;
    }
    
    .install-banner-buttons {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }
    
    .install-btn {
        width: 100%;
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
}

/* Special animations for install banner */
@keyframes installPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.install-btn.pwa-install {
    animation: installPulse 2s ease-in-out infinite;
}

/* iOS Safari specific styles */
@supports (-webkit-touch-callout: none) {
    .install-btn.ios-install {
        display: flex;
    }
}

/* Android Chrome specific styles */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    .install-btn.android-install {
        display: flex;
    }
}

/* Critical CSS for immediate rendering */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Allow text selection for specific elements */
input, textarea, [contenteditable] {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
    touch-action: manipulation;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

/* PWA specific styles */
@media (display-mode: standalone) {
    body {
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }
    
    .container {
        padding-top: calc(env(safe-area-inset-top) + 1rem);
        padding-bottom: calc(env(safe-area-inset-bottom) + 1rem);
    }
}

/* Disable zoom on inputs */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="date"],
input[type="time"],
input[type="datetime-local"],
textarea,
select {
    font-size: 16px !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 8px;
    touch-action: manipulation;
}

/* Prevent double-tap zoom */
button, a, [role="button"] {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* Smooth scrolling for the entire page */
html {
    scroll-behavior: smooth;
}

/* Prevent horizontal scroll */
body, html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* Fix viewport issues */
.container {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

/* Ensure proper display for main content */
.container {
    display: block;
    visibility: visible;
    opacity: 1;
}

.card {
    display: block;
    visibility: visible;
    opacity: 1;
}

/* Load font asynchronously without blocking render */
@font-face {
    font-family: "Hama";
    src: url("https://shtakanm.vercel.app/hama.ttf");
    font-display: swap; /* Critical: prevents render blocking */
}

/* Apply font only after it loads, with fallback */
.font-loaded * {
    font-family: "Hama", Arial, sans-serif !important;
}

.font-loaded body {
    font-family: "Hama", Arial, sans-serif;
}


input, select, textarea, button, label, th, td, h1, h2, h3, h4, h5, h6, p, div, span, a {
    font-family: "Hama", Arial, sans-serif !important;
}

/* زیادکردنی CSS ی تایبەت بۆ form elements */
input[type="text"], 
input[type="password"], 
input[type="email"], 
input[type="number"], 
input[type="tel"], 
input[type="url"], 
input[type="search"], 
input[type="date"], 
input[type="time"], 
input[type="datetime-local"], 
input[type="month"], 
input[type="week"], 
textarea, 
select, 
option {
    font-family: "Hama", Arial, sans-serif !important;
}

/* زیادکردنی CSS ی تایبەت بۆ button elements */
button, 
input[type="button"], 
input[type="submit"], 
input[type="reset"], 
.btn, 
.button {
    font-family: "Hama", Arial, sans-serif !important;
}

/* زیادکردنی CSS ی تایبەت بۆ form labels */
label, 
.form-label, 
.modern-search-label {
    font-family: "Hama", Arial, sans-serif !important;
}

/* زیادکردنی CSS ی تایبەت بۆ table elements */
table, 
thead, 
tbody, 
tfoot, 
tr, 
th, 
td {
    font-family: "Hama", Arial, sans-serif !important;
}

/* زیادکردنی CSS ی تایبەت بۆ navigation */
nav, 
.nav, 
.navigation, 
.menu {
    font-family: "Hama", Arial, sans-serif !important;
}

/* زیادکردنی CSS ی تایبەت بۆ cards */
.card, 
.medicine-card, 
.order-card {
    font-family: "Hama", Arial, sans-serif !important;
}

/* زیادکردنی CSS ی تایبەت بۆ alerts */
.alert, 
.notification, 
.toast {
    font-family: "Hama", Arial, sans-serif !important;
}

/* زیادکردنی CSS ی تایبەت بۆ modals */
.modal, 
.popup, 
.dialog {
    font-family: "Hama", Arial, sans-serif !important;
}
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Expiry Warning Styles */
#expiry-warning {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #ff6b6b, #ff4757);
    color: white;
    padding: 20px;
    border-radius: 15px;
    z-index: 10000;
    max-width: 350px;
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.4);
    animation: shake 0.5s ease-in-out infinite alternate;
    border: 2px solid #fff;
}

@keyframes shake {
    0% { transform: translateX(0); }
    100% { transform: translateX(5px); }
}
/* زیادکردنی ئەم CSS بۆ style.css */

/* Modern App-Style Catalog Design */

/* Page Header */
.catalog-page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem 0;
    margin: -2rem -2rem 2rem -2rem;
    border-radius: 0 0 30px 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.catalog-page-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.catalog-page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

/* Modern Stats Cards */
.modern-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.modern-stat-card {
    background: white;
    border-radius: 25px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.modern-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #3498db, #2ecc71, #f39c12, #e74c3c);
    border-radius: 25px 25px 0 0;
}

.modern-stat-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 60px rgba(0,0,0,0.15);
}

.modern-stat-card.blue {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.modern-stat-card.green {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
}

.modern-stat-card.orange {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
}

.modern-stat-card.purple {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    color: white;
}

.modern-stat-card .stat-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.modern-stat-card .stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.modern-stat-card .stat-label {
    font-size: 1rem;
    font-weight: 600;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Modern Action Buttons */
.modern-action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.modern-action-btn {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
    text-decoration: none;
    color: #2c3e50;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.modern-action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s ease;
}

.modern-action-btn:hover::before {
    left: 100%;
}

.modern-action-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    border-color: #3498db;
}

.modern-action-btn .btn-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.modern-action-btn .btn-text {
    font-weight: 700;
    font-size: 1rem;
}

.modern-action-btn.primary {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border-color: #3498db;
}

.modern-action-btn.success {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    border-color: #2ecc71;
}

.modern-action-btn.warning {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    border-color: #f39c12;
}

.modern-action-btn.secondary {
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
    border-color: #6c757d;
}

/* Modern Filter Section */
.modern-filter-section {
    background: white;
    border-radius: 25px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
}

.modern-filter-section h4 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modern-filter-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    align-items: end;
}

.modern-form-group {
    display: flex;
    flex-direction: column;
}

.modern-form-group label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modern-form-group input,
.modern-form-group select {
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.modern-form-group input:focus,
.modern-form-group select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52,152,219,0.1);
    transform: translateY(-1px);
}

.modern-filter-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.modern-filter-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.modern-filter-btn.primary {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    box-shadow: 0 5px 15px rgba(52,152,219,0.3);
}

.modern-filter-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(52,152,219,0.4);
}

.modern-filter-btn.secondary {
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
    box-shadow: 0 5px 15px rgba(108,117,125,0.3);
}

.modern-filter-btn.secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(108,117,125,0.4);
}

/* Modern Medicine Cards */
.modern-catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.modern-medicine-card {
    background: white;
    border-radius: 25px;
    padding: 0;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 2px solid #f8f9fa;
}

.modern-medicine-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #3498db, #2ecc71, #f39c12, #e74c3c, #9b59b6);
    background-size: 400% 100%;
    animation: gradientMove 8s ease infinite;
}

@keyframes gradientMove {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.modern-medicine-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 60px rgba(0,0,0,0.15);
    border-color: #3498db;
}

.modern-medicine-card.has-discount {
    background: linear-gradient(135deg, #fff8f8, #ffffff);
    border-color: #ff6b6b;
}

.modern-medicine-card.has-discount::before {
    background: linear-gradient(90deg, #ff6b6b, #ff4757, #ff3742);
}

.modern-card-header {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    padding: 2rem;
    position: relative;
}

.modern-discount-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #ff6b6b, #ff4757);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 5px 15px rgba(255,107,107,0.4);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.modern-medicine-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.modern-scientific-name {
    font-size: 1rem;
    color: #6c757d;
    font-style: italic;
    margin-bottom: 1rem;
    font-weight: 500;
}

.modern-medicine-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.modern-meta-badge {
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.modern-meta-badge.company {
    background: linear-gradient(135deg, #e8f4fd, #d1ecf1);
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.modern-meta-badge.category {
    background: linear-gradient(135deg, #f3e5f5, #e8d5ea);
    color: #6f42c1;
    border: 1px solid #e2d1e8;
}

.modern-meta-badge.barcode {
    background: linear-gradient(135deg, #e2e3e5, #d6d8db);
    color: #383d41;
    border: 1px solid #c6c8ca;
    font-family: 'Courier New', monospace;
}

.modern-card-body {
    padding: 2rem;
}

.modern-price-section {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 1.5rem;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.modern-price-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        rgba(255,255,255,0.1) 90deg,
        transparent 180deg
    );
    animation: priceRotate 10s linear infinite;
}

@keyframes priceRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.modern-price-display {
    position: relative;
    z-index: 1;
    text-align: center;
}

.modern-price-value {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.modern-price-label {
    font-size: 0.9rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modern-medicine-description {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #3498db;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #6c757d;
}

.modern-card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-top: 1px solid #e9ecef;
    gap: 1rem;
}

.modern-action-group {
    display: flex;
    gap: 0.5rem;
}

.modern-action-btn-small {
    padding: 8px 16px;
    border: none;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modern-action-btn-small.edit {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    box-shadow: 0 3px 10px rgba(243,156,18,0.3);
}

.modern-action-btn-small.edit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(243,156,18,0.4);
}

.modern-action-btn-small.delete {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    box-shadow: 0 3px 10px rgba(231,76,60,0.3);
}

.modern-action-btn-small.delete:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231,76,60,0.4);
}

.modern-action-btn-small.primary {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    box-shadow: 0 3px 10px rgba(52,152,219,0.3);
}

.modern-action-btn-small.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52,152,219,0.4);
}

.modern-card-footer {
    padding: 1rem 2rem;
    background: #f8f9fa;
    border-radius: 0 0 25px 25px;
    text-align: center;
}

.modern-card-footer .created-date {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 500;
}

/* Modern Empty State */
.modern-empty-state {
    background: white;
    border-radius: 25px;
    padding: 4rem 2rem;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    margin: 2rem 0;
    border: 2px dashed #e9ecef;
}

.modern-empty-state .empty-icon {
    font-size: 5rem;
    margin-bottom: 2rem;
    opacity: 0.6;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modern-empty-state h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.modern-empty-state p {
    color: #6c757d;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.modern-empty-state .empty-action {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(52,152,219,0.3);
}

.modern-empty-state .empty-action:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(52,152,219,0.4);
}

/* Modern Results Info */
.modern-results-info {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
    border: 1px solid #e9ecef;
    text-align: center;
}

.modern-results-info .results-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.modern-results-info .results-hint {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .modern-catalog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .modern-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .modern-action-grid {
        grid-template-columns: 1fr;
    }
    
    .modern-filter-form {
        grid-template-columns: 1fr;
    }
    
    .modern-card-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .modern-action-group {
        justify-content: center;
    }
    
    .catalog-page-header {
        padding: 1.5rem 1rem;
    }
    
    .catalog-page-header h2 {
        font-size: 2rem;
    }
    
    .modern-medicine-card {
        min-width: 0;
    }
}

@media (max-width: 480px) {
    .modern-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .modern-stat-card {
        padding: 1.5rem;
    }
    
    .modern-stat-card .stat-number {
        font-size: 2rem;
    }
    
    .modern-medicine-card {
        border-radius: 20px;
    }
    
    .modern-card-header,
    .modern-card-body {
        padding: 1.5rem;
    }
}

/* Management Page Styles */
.modern-management-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    padding: 2rem;
    margin: 1rem 0;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.management-page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
}

.management-page-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
}

.management-page-header p {
    font-size: 1.2rem;
    margin: 0;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.modern-management-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.management-stat-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.management-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 20px 20px 0 0;
}

.management-stat-card.blue::before {
    background: linear-gradient(90deg, #3498db, #2980b9);
}

.management-stat-card.green::before {
    background: linear-gradient(90deg, #27ae60, #229954);
}

.management-stat-card.orange::before {
    background: linear-gradient(90deg, #f39c12, #e67e22);
}

.management-stat-card.purple::before {
    background: linear-gradient(90deg, #9b59b6, #8e44ad);
}

.management-stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.management-stat-card .stat-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.management-stat-card .stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.management-stat-card .stat-label {
    font-size: 1rem;
    color: #6c757d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modern-management-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.management-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.5rem 2rem;
    border-radius: 15px;
    text-decoration: none;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.management-action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.management-action-btn:hover::before {
    left: 100%;
}

.management-action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.management-action-btn.primary {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.management-action-btn.secondary {
    background: linear-gradient(135deg, #6c757d, #495057);
}

.management-action-btn .btn-icon {
    font-size: 1.2rem;
}

.management-action-btn .btn-text {
    font-weight: 700;
}

/* Loading States */
.loading-shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: calc(100vh - 40px);
    position: relative;
    z-index: 1;
    width: 100%;
    box-sizing: border-box;
}

/* Fix for content visibility on desktop */
@media (min-width: 769px) {
    .container {
        padding: 20px;
        display: block;
        visibility: visible;
        opacity: 1;
    }
    
    /* Ensure content inside container is visible */
    .container > * {
        visibility: visible;
        opacity: 1;
    }
    
    .container .card {
        display: block;
        visibility: visible;
        opacity: 1;
    }
}

/* Modern Header Styles */
.modern-header {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    position: relative;
}

.header-brand h1 {
    color: #2c3e50;
    font-size: 2rem;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

.hamburger {
    width: 25px;
    height: 3px;
    background: #2c3e50;
    margin: 3px 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active .hamburger:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active .hamburger:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .hamburger:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Desktop Navigation */
.desktop-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.nav-link {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    padding: 10px 16px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    white-space: nowrap;
}

.nav-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.nav-link.admin {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
}

.nav-link.admin:hover {
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.nav-link.warehouse {
    background: linear-gradient(45deg, #9b59b6, #8e44ad);
}

.nav-link.warehouse:hover {
    box-shadow: 0 4px 12px rgba(155, 89, 182, 0.3);
}

.nav-link.representative {
    background: linear-gradient(45deg, #3498db, #2980b9);
}

.nav-link.representative:hover {
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.nav-link.logout-btn {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
}

.nav-link.logout-btn:hover {
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.nav-link.login-btn {
    background: linear-gradient(45deg, #27ae60, #2ecc71);
}

.nav-link.login-btn:hover {
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

.cart-link {
    position: relative;
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    background: white;
    border-radius: 0 0 20px 20px;
    padding: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.mobile-nav.show {
    display: block;
    max-height: 500px;
    padding: 1.5rem 1rem;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Enhanced Mobile Navigation for Admin with Scrolling */
@media (max-width: 768px) {
    .mobile-nav.show {
        max-height: 70vh; /* Limit height to 70% of viewport */
        overflow-y: auto;
        overflow-x: hidden;
        scrollbar-width: thin;
        scrollbar-color: #3498db #f1f1f1;
    }
    
    /* Custom scrollbar for webkit browsers */
    .mobile-nav.show::-webkit-scrollbar {
        width: 6px;
    }
    
    .mobile-nav.show::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 10px;
    }
    
    .mobile-nav.show::-webkit-scrollbar-thumb {
        background: #3498db;
        border-radius: 10px;
    }
    
    .mobile-nav.show::-webkit-scrollbar-thumb:hover {
        background: #2980b9;
    }
    
    /* Fixed position for logout button - Admin only */
    .mobile-nav.admin-nav {
        position: relative;
    }
    
    .mobile-nav.admin-nav .mobile-user-info {
        position: sticky;
        top: 0;
        background: white;
        z-index: 10;
        margin: 0 -1.5rem 1rem -1.5rem;
        padding: 1rem 1.5rem;
        border-bottom: 1px solid #e9ecef;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    
    .mobile-nav.admin-nav .mobile-nav-link.logout-btn {
        position: sticky;
        bottom: 0;
        background: white;
        margin: 1rem -1.5rem -1.5rem -1.5rem;
        padding: 1rem 1.5rem;
        border-top: 2px solid #e74c3c;
        border-radius: 0;
        font-weight: bold;
        text-align: center;
        box-shadow: 0 -2px 4px rgba(0,0,0,0.1);
    }
    
    .mobile-nav.admin-nav .mobile-nav-link.logout-btn:hover {
        background: #ffe6e6;
        transform: none;
    }
    
    /* Scroll indicator for admin menu */
    .mobile-nav.admin-nav::before {
        content: 'اسحب للأسفل لرؤية المزيد';
        position: sticky;
        top: 70px;
        display: block;
        text-align: center;
        font-size: 12px;
        color: #6c757d;
        padding: 8px;
        background: linear-gradient(to bottom, rgba(255,255,255,0.9), transparent);
        z-index: 5;
    }
    
    /* Hide scroll indicator when at bottom */
    .mobile-nav.admin-nav.at-bottom::before {
        display: none;
    }
}

.mobile-nav-link {
    display: block;
    padding: 12px 16px;
    margin: 4px 0;
    text-decoration: none;
    color: #2c3e50;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.mobile-nav-link:hover {
    background: rgba(52, 152, 219, 0.1);
    border-left-color: #3498db;
    transform: translateX(5px);
}

.mobile-nav-link.admin {
    color: #e74c3c;
}

.mobile-nav-link.admin:hover {
    background: rgba(231, 76, 60, 0.1);
    border-left-color: #e74c3c;
}

.mobile-nav-link.warehouse {
    color: #9b59b6;
}

.mobile-nav-link.warehouse:hover {
    background: rgba(155, 89, 182, 0.1);
    border-left-color: #9b59b6;
}

.mobile-nav-link.representative {
    color: #3498db;
}

.mobile-nav-link.representative:hover {
    background: rgba(52, 152, 219, 0.1);
    border-left-color: #3498db;
}

.mobile-nav-link.logout-btn {
    color: #e74c3c;
    margin-top: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 16px;
}

.mobile-nav-link.logout-btn:hover {
    background: rgba(231, 76, 60, 0.1);
    border-left-color: #e74c3c;
}

.mobile-nav-link.login-btn {
    color: #27ae60;
}

.mobile-nav-link.login-btn:hover {
    background: rgba(39, 174, 96, 0.1);
    border-left-color: #27ae60;
}

/* Mobile User Info */
.mobile-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    margin: 10px 0;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(52, 152, 219, 0.2);
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

.user-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 16px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .header-container {
        padding: 1rem 1.5rem;
    }
    
    .header-brand h1 {
        font-size: 1.8rem;
    }
    
    .desktop-nav {
        gap: 8px;
    }
    
    .nav-link {
        padding: 8px 12px;
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }
    
    .desktop-nav {
        display: none;
    }
    
    .header-brand h1 {
        font-size: 1.5rem;
    }
    
    .header-container {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .admin-stat-card {
        padding: 1.2rem;
    }
    
    .admin-stat-card h3 {
        font-size: 1.3rem;
    }
}

/* Orders Page Styles */
.modern-orders {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

.orders-hero {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
    border-radius: 20px;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.total-card .stat-bg { background: linear-gradient(90deg, #3498db, #2980b9); }
.pending-card .stat-bg { background: linear-gradient(90deg, #f39c12, #e67e22); }
.delivered-card .stat-bg { background: linear-gradient(90deg, #27ae60, #2ecc71); }
.cancelled-card .stat-bg { background: linear-gradient(90deg, #e74c3c, #c0392b); }
.money-card .stat-bg { background: linear-gradient(90deg, #9b59b6, #8e44ad); }
.warehouse-card .stat-bg { background: linear-gradient(90deg, #16a085, #1abc9c); }

.filters-section {
    margin-bottom: 3rem;
}

.filters-form {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.filter-group label {
    display: block;
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.filter-group select,
.filter-group input {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: #3498db;
}

.filter-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-btn {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(52, 152, 219, 0.4);
}

.reset-btn {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.reset-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(108, 117, 125, 0.4);
}

.new-order-btn {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

.new-order-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(39, 174, 96, 0.4);
}

.orders-section {
    margin-bottom: 3rem;
}

.orders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.order-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.order-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.order-id {
    font-size: 1.1rem;
    font-weight: 700;
    color: #3498db;
}

.order-status {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
}

.status-pending { background: #f39c12; }
.status-confirmed { background: #3498db; }
.status-delivered { background: #27ae60; }
.status-cancelled { background: #e74c3c; }

.order-content {
    margin-bottom: 1.5rem;
}

.order-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid #f8f9fa;
}

.order-detail:last-child {
    border-bottom: none;
}

.detail-label {
    color: #6c757d;
    font-weight: 500;
    font-size: 0.9rem;
}

.detail-value {
    color: #2c3e50;
    font-weight: 600;
    font-size: 0.9rem;
}

.detail-value.price {
    color: #27ae60;
    font-size: 1rem;
}

.order-actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    flex: 1;
    padding: 0.6rem;
    border: none;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
}

.details-btn {
    background: #17a2b8;
}

.details-btn:hover {
    background: #138496;
    transform: translateY(-1px);
}

.pdf-btn {
    background: #e74c3c;
}

.pdf-btn:hover {
    background: #c0392b;
    transform: translateY(-1px);
}

.empty-orders {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.empty-orders h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.empty-orders p {
    color: #6c757d;
    margin-bottom: 2rem;
}

.empty-btn {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.empty-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    overflow-y: auto;
}

.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 2px solid #e9ecef;
}

.modal-header h3 {
    color: #2c3e50;
    margin: 0;
}

.close-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: #c0392b;
}

.modal-body {
    padding: 2rem;
}

/* Orders Mobile Responsive */
@media (max-width: 768px) {
    .modern-orders {
        padding: 0.5rem;
    }
    
    .orders-hero {
        padding: 2rem 1rem;
    }
    
    .filters-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn,
    .reset-btn,
    .new-order-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .orders-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .orders-hero {
        padding: 1.5rem 1rem;
    }
    
    .order-card {
        padding: 1rem;
    }
    
    .order-header {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .order-detail {
        flex-direction: column;
        gap: 0.3rem;
        text-align: center;
    }
}

/* Warehouse Orders Styles */
.order-header-with-logo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 20px;
    border-radius: 15px 15px 0 0;
    margin-bottom: 0;
}

.order-header-content {
    flex: 1;
}

.order-header-content h3 {
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: bold;
}

.order-header-content p {
    margin: 5px 0;
    opacity: 0.9;
    font-size: 16px;
}

.warehouse-logo-container {
    margin-right: 20px;
    flex-shrink: 0;
}

.warehouse-logo {
    max-width: 120px;
    max-height: 100px;
    border-radius: 12px;
    border: 3px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
    padding: 5px;
    cursor: pointer;
}

.warehouse-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.stock-btn {
    background: #f39c12;
}

.stock-btn:hover {
    background: #e67e22;
    transform: translateY(-1px);
}

/* Warehouse Orders Mobile Responsive */
@media (max-width: 768px) {
    .order-header-with-logo {
        flex-direction: column;
        text-align: center;
    }
    
    .warehouse-logo-container {
        margin-right: 0;
        margin-top: 15px;
    }
    
    .warehouse-logo {
        max-width: 100px;
        max-height: 80px;
    }
}

.card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.card h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
    text-align: center;
}

/* Section Header Styles */
.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.section-header p {
    color: white;
    font-size: 1rem;
    opacity: 0.9;
}

.alert {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: bold;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 2px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #f5c6cb;
}

.btn {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 10px;
    text-decoration: none;
    display: inline-block;
    font-weight: bold;
    margin: 10px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.btn-primary {
    background: linear-gradient(45deg, #2ecc71, #27ae60);
}

.btn-telegram {
    background: linear-gradient(45deg, #0088cc, #006699);
}

.btn.admin {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
}

.btn.warehouse {
    background: linear-gradient(45deg, #9b59b6, #8e44ad);
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #2c3e50;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.2);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.table th,
.table td {
    padding: 12px;
    text-align: right;
    border-bottom: 1px solid #ddd;
}

.table th {
    background: linear-gradient(45deg, #34495e, #2c3e50);
    color: white;
    font-weight: bold;
}

.table tr:hover {
    background: #f8f9fa;
}

.cart-badge {
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    padding: 2px 8px;
    font-size: 12px;
    margin-right: 5px;
    transition: transform 0.2s ease;
    font-weight: bold;
    min-width: 18px;
    text-align: center;
    display: inline-block;
}

ul {
    text-align: right;
    margin-right: 2rem;
}

.expiry-warning {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
    box-shadow: 0 10px 30px rgba(243, 156, 18, 0.3);
    animation: pulse 2s infinite;
}

.expiry-critical {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    animation: shake 0.5s infinite;
}

.expiry-warning h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.expiry-info {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    backdrop-filter: blur(10px);
}

/* Medicine Card Simple Styles */
.medicine-card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
}

.medicine-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #3498db;
    border-radius: 12px 12px 0 0;
}

.medicine-card.discount-card {
    border: 2px solid #ffffff;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
    overflow: hidden;
}

.medicine-card.discount-card::before {
    background: linear-gradient(90deg, #ffffff, #f8f9fa);
}

.medicine-card.discount-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-right: 25px solid transparent;
    border-top: 25px solid #ffffff;
}

.discount-badge {
    position: absolute;
    top: -8px;
    left: -8px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    color: #2c3e50;
    padding: 8px 14px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 13px;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.4);
    animation: discount-pulse 2s ease-in-out infinite;
    border: 1px solid #e9ecef;
}

.discount-badge::before {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    left: -15px;
    bottom: -2px;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    z-index: -1;
    opacity: 0.3;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%);
    animation: glow-shine 3s ease-in-out infinite;
}

.discounted-price {
    font-size: 18px;
    font-weight: bold;
    color: #dc3545;
}

@keyframes discount-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes glow-ring {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}

@keyframes fire-flicker {
    0%, 100% { transform: rotate(-2deg) scale(1); }
    25% { transform: rotate(2deg) scale(1.1); }
    50% { transform: rotate(-1deg) scale(0.95); }
    75% { transform: rotate(1deg) scale(1.05); }
}

.medicine-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 0.8rem;
}

.medicine-title {
    color: #2c3e50;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
    flex: 1;
}

.availability-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    white-space: nowrap;
}

.available {
    background: #d4edda;
    color: #155724;
    display: none;
}

.out-of-stock {
    background: #f8d7da;
    color: #721c24;
    display: none;
}

.medicine-info {
    margin-bottom: 1rem;
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border-left: 3px solid #6c757d;
}

.medicine-info p {
    margin: 0.3rem 0;
    color: #495057;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.medicine-info strong {
    color: #2c3e50;
    min-width: 75px;
    font-size: 15px;
}

.price-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.price-display {
    flex: 1;
}

.original-price {
    font-size: 16px;
    color: #6c757d;
    text-decoration: line-through;
    margin-bottom: 0.2rem;
}

.discounted-price {
    font-size: 18px;
    font-weight: bold;
    color: #dc3545;
}

.regular-price {
    font-size: 18px;
    font-weight: bold;
    color: #28a745;
}

.add-to-cart-form {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: center;
    margin-top: 8px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 15px;
    border: 2px solid #e9ecef;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.quantity-btn {
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 18px rgba(108, 117, 125, 0.4);
}

.quantity-btn:active {
    transform: translateY(0) scale(0.95);
}

.quantity-input {
    width: 60px;
    height: 42px;
    padding: 8px;
    border: 2px solid #dee2e6;
    border-radius: 12px;
    text-align: center;
    font-weight: bold;
    font-size: 16px;
    background: white;
    color: #2c3e50;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.quantity-input:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    transform: scale(1.02);
}

.add-btn {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 15px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.add-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.add-btn:hover::before {
    left: 100%;
}

.add-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}

.add-btn:active {
    transform: translateY(0);
}

.medicine-description {
    margin-top: 1rem;
    padding: 1rem;
    background: #f1f3f4;
    border-radius: 8px;
    font-size: 15px;
    color: #495057;
    border-left: 3px solid #6c757d;
}

.out-of-stock-text {
    color: #dc3545;
    font-weight: bold;
    padding: 8px 16px;
    background: #f8d7da;
    border-radius: 6px;
    text-align: center;
    font-size: 14px;
}

.luxury-add-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.luxury-add-btn:hover::before {
    left: 100%;
}

.luxury-add-btn:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 12px 35px rgba(39, 174, 96, 0.4),
        0 6px 20px rgba(39, 174, 96, 0.3);
}

.luxury-add-btn:active {
    transform: translateY(-2px);
}

.out-of-stock-text {
    text-align: center;
    color: #e74c3c;
    font-weight: 800;
    padding: 18px;
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    border-radius: 20px;
    border: 2px solid #f5c6cb;
    font-size: 1rem;
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.medicine-description {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: 20px;
    border: 1px solid #e9ecef;
    font-size: 1rem;
    color: #6c757d;
    line-height: 1.7;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.medicine-description strong {
    color: #2c3e50;
    font-weight: 700;
}

.barcode-section {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: 20px;
    border: 1px solid #e9ecef;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.barcode-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    font-weight: 700;
    font-size: 1.1rem;
}

.barcode-container {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.barcode-canvas {
    max-width: 100%;
    height: auto;
    margin-bottom: 1rem;
}

.barcode-text {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    font-weight: 700;
    color: #495057;
    background: #f8f9fa;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* Enhanced Mobile Responsive Design */
@media (max-width: 480px) {
    .medicines-grid {
        padding: 0 0.5rem;
        gap: 1rem;
    }
    
    .medicine-card {
        border-radius: 24px;
        margin: 0;
    }
    
    .medicine-content {
        padding: 1.5rem;
    }
    
    .medicine-title {
        font-size: 1.3rem;
    }
    
    .medicine-details {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .luxury-price-section {
        padding: 1.5rem;
    }
    
    .luxury-current-price {
        font-size: 2rem;
    }
    
    .luxury-quantity-controls {
        gap: 1rem;
    }
    
    .luxury-quantity-btn {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .luxury-quantity-input {
        width: 80px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .luxury-add-btn {
        padding: 16px 24px;
        font-size: 1rem;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .medicines-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
        padding: 0 0.75rem;
    }
    
    .medicine-card {
        border-radius: 26px;
    }
    
    .medicine-title {
        font-size: 1.4rem;
    }
    
    .luxury-current-price {
        font-size: 2.2rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .medicines-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .medicine-card {
        border-radius: 28px;
    }
    
    .medicine-title {
        font-size: 1.45rem;
    }
    
    .luxury-current-price {
        font-size: 2.3rem;
    }
}

@media (min-width: 1025px) {
    .medicines-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.75rem;
        padding: 0 1.25rem;
    }
    
    .medicine-card {
        border-radius: 28px;
    }
    
    .medicine-title {
        font-size: 1.5rem;
    }
    
    .luxury-current-price {
        font-size: 2.5rem;
    }
}

/* Additional Luxury Enhancements */
.luxury-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e9ecef, transparent);
    margin: 1.5rem 0;
}

.luxury-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.luxury-highlight {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    padding: 1rem;
    border-radius: 16px;
    border-left: 4px solid #f39c12;
    margin: 1rem 0;
}

/* Luxury Button Variations */
.luxury-btn-secondary {
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 16px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.luxury-btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(108, 117, 125, 0.4);
}

.luxury-btn-danger {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 16px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.luxury-btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(231, 76, 60, 0.4);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Focus States for Accessibility */
.add-btn:focus,
.quantity-btn:focus,
.quantity-input:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* No Medicines Message */
.no-medicines {
    text-align: center;
    padding: 4rem 2rem;
    color: #6c757d;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: 24px;
    border: 2px dashed #e9ecef;
    margin: 2rem 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

.no-medicines-icon {
    font-size: 6rem;
    margin-bottom: 2rem;
    opacity: 0.6;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.no-medicines h3 {
    color: #495057;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.no-medicines p {
    margin: 1rem 0;
    font-size: 1.1rem;
    line-height: 1.6;
}

.no-medicines .btn {
    margin: 0.5rem;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 16px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.no-medicines .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

/* Medicine Stats */
.medicine-stats {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: 20px;
    padding: 1.5rem;
    margin: 1.5rem 0.5rem;
    text-align: center;
    border: 1px solid #e9ecef;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

.stats-text {
    color: #495057;
    font-weight: 600;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.5rem;
}

.stats-hint {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Enhanced Search Form for Mobile */
.modern-search-form {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    padding: 1.5rem;
    border-radius: 20px;
    margin: 1rem 0.5rem 2rem;
    border: 1px solid #e9ecef;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

.modern-search-form h3 {
    color: #495057;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 700;
}

/* Performance Optimizations */
.medicine-card {
    will-change: transform;
    contain: layout style paint;
}

.medicine-thumbnail {
    will-change: transform;
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    .medicine-card {
        background: linear-gradient(145deg, #2c3e50 0%, #34495e 50%, #2c3e50 100%);
        color: #ecf0f1;
    }
    
    .medicine-title {
        color: #ecf0f1;
    }
    
    .scientific-name {
        color: #bdc3c7;
        background: linear-gradient(135deg, #34495e, #2c3e50);
    }
    
    .info-chip {
        background: linear-gradient(135deg, #34495e, #2c3e50);
        color: #ecf0f1;
        border-color: #4a5568;
    }
}

/* Print Styles */
@media print {
    .medicine-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .add-to-cart-section,
    .quantity-controls {
        display: none;
    }
}

/* Toast Notification Styles */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #28a745;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    z-index: 9999;
    font-weight: bold;
    font-size: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateX(400px);
    transition: all 0.3s ease;
}

.toast.error {
    background: #dc3545;
}

.toast.show {
    transform: translateX(0);
}

.loading-btn {
    background: #6c757d !important;
    pointer-events: none;
    position: relative;
    color: transparent !important;
}

.loading-btn::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Simple Search Form */
.modern-search-form {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 1px solid #e9ecef;
}

.modern-search-form h3 {
    color: #495057;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
}

.modern-search-label {
    color: #495057;
    font-weight: bold;
    margin-bottom: 6px;
    display: block;
    font-size: 15px;
}

.modern-search-input,
.modern-search-select {
    border: 1px solid #ced4da;
    background: #ffffff;
    padding: 12px;
    border-radius: 8px;
    width: 100%;
    font-size: 15px;
}

.modern-search-input:focus,
.modern-search-select:focus {
    border-color: #80bdff;
    outline: none;
}

.modern-search-buttons {
    text-align: center;
    margin-top: 1.5rem;
}

.modern-btn {
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 15px;
    cursor: pointer;
    margin: 0 8px;
    text-decoration: none;
    display: inline-block;
}

.modern-btn-search {
    background: #007bff;
    color: white;
    padding: 12px 20px;
}

.modern-btn-reset {
    background: #6c757d;
    color: white;
    padding: 12px 20px;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Modern Home Page Styles - Added to style.css */
.modern-home {
    padding: 0;
    margin: 0;
    background: transparent;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-radius: 25px;
    margin-bottom: 3rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-icon {
    margin-bottom: 2rem;
}

/* PHARMEXA Logo Styles */
.pharmexa-logo {
    animation: logoGlow 3s ease-in-out infinite;
}

@keyframes logoGlow {
    0%, 100% { 
        transform: scale(1);
        filter: drop-shadow(0 0 20px rgba(255,255,255,0.3));
    }
    50% { 
        transform: scale(1.05);
        filter: drop-shadow(0 0 30px rgba(255,255,255,0.5));
    }
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.logo-circle {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.logo-circle::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #667eea, #764ba2, #667eea);
    border-radius: 50%;
    z-index: -1;
    animation: rotateGradient 3s linear infinite;
}

@keyframes rotateGradient {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.pill-icon {
    width: 40px;
    height: 40px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pill-top {
    position: absolute;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    border-radius: 20px 20px 0 0;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    animation: pillBounce 2s ease-in-out infinite;
}

.pill-bottom {
    position: absolute;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border-radius: 0 0 20px 20px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    animation: pillBounce 2s ease-in-out infinite reverse;
}

@keyframes pillBounce {
    0%, 100% { 
        transform: translateX(-50%) translateY(0px);
        opacity: 1;
    }
    50% { 
        transform: translateX(-50%) translateY(-2px);
        opacity: 0.8;
    }
}

.logo-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.logo-main {
    font-size: 1.8rem;
    font-weight: 900;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    letter-spacing: 2px;
    background: linear-gradient(45deg, #fff 0%, #f8f9fa 50%, #fff 100%);
    background-size: 200% 200%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textShine 3s ease-in-out infinite;
}

@keyframes textShine {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.logo-sub {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.9);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    font-weight: 500;
    letter-spacing: 1px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.hero-btn.primary {
    background: rgba(255,255,255,0.2);
    color: white;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.3);
}

.hero-btn.primary:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.hero-btn.secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.5);
}

.hero-btn.secondary:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-element {
    position: absolute;
    font-size: 2rem;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Features Section */
.features-section {
    padding: 4rem 2rem;
    background: transparent;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.feature-card h3 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature-card p {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Quick Actions Section */
.quick-actions-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 25px;
    margin-bottom: 3rem;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.quick-action-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    text-decoration: none;
    color: #2c3e50;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.quick-action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
}

.quick-action-card.admin::before { background: linear-gradient(90deg, #e74c3c, #c0392b); }
.quick-action-card.warehouse::before { background: linear-gradient(90deg, #9b59b6, #8e44ad); }
.quick-action-card.representative::before { background: linear-gradient(90deg, #3498db, #2980b9); }

.quick-action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.quick-action-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.quick-action-text {
    font-weight: 600;
    font-size: 1rem;
}

/* Stats Section */
.stats-section {
    padding: 4rem 2rem;
    background: transparent;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.stat-card.medicine-stat::before { background: linear-gradient(90deg, #e74c3c, #c0392b); }
.stat-card.warehouse-stat::before { background: linear-gradient(90deg, #9b59b6, #8e44ad); }

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #6c757d;
    font-weight: 500;
    font-size: 1rem;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Footer CTA */
.footer-cta {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
    border-radius: 25px;
    margin-top: 3rem;
    position: relative;
    overflow: hidden;
}

.cta-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: rgba(255,255,255,0.2);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.3);
}

.cta-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.cta-arrow {
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.cta-btn:hover .cta-arrow {
    transform: translateX(5px);
}

/* Responsive Design for Home Page */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 2rem;
    }
    
    .quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .quick-action-card {
        padding: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .hero-section, .quick-actions-section, .footer-cta {
        padding: 3rem 1rem;
    }
    
    .features-section, .stats-section {
        padding: 3rem 1rem;
    }
    
    .logo-circle {
        width: 70px;
        height: 70px;
    }
    
    .pill-icon {
        width: 35px;
        height: 35px;
    }
    
    .pill-top, .pill-bottom {
        width: 18px;
        height: 18px;
    }
    
    .logo-main {
        font-size: 1.6rem;
        letter-spacing: 1.5px;
    }
    
    .logo-sub {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .quick-actions-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .feature-icon {
        font-size: 2.5rem;
    }
    
    .hero-section, .quick-actions-section, .footer-cta {
        padding: 2rem 1rem;
    }
    
    .features-section, .stats-section {
        padding: 2rem 1rem;
    }
    
    .logo-circle {
        width: 60px;
        height: 60px;
    }
    
    .pill-icon {
        width: 30px;
        height: 30px;
    }
    
    .pill-top, .pill-bottom {
        width: 15px;
        height: 15px;
    }
    
    .logo-main {
        font-size: 1.4rem;
        letter-spacing: 1px;
    }
    
    .logo-sub {
        font-size: 0.7rem;
    }
}

/* Additional Mobile App Styles */
.modern-home {
    animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Register Page Styles */
.register-container {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.account-type-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.account-type-option {
    padding: 1.5rem;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.account-type-option:hover {
    border-color: #007bff;
    background: #e3f2fd;
}

.account-type-option.selected {
    border-color: #007bff;
    background: #007bff;
    color: white;
}

.account-type-option input[type="radio"] {
    display: none;
}

.account-type-option .icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.agency-selector {
    display: none;
    background: #fff3cd;
    border: 2px solid #ffeaa7;
    border-radius: 15px;
    padding: 1.5rem;
    margin: 1rem 0;
}

.agency-selector.show {
    display: block;
}

.form-section {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
}

.success-message {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 10px;
    padding: 1rem;
    margin: 1rem 0;
    text-align: center;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 10px;
    padding: 1rem;
    margin: 1rem 0;
    text-align: center;
}

/* Login Page Styles */
.login-info-box {
    background: #e3f2fd;
    border: 1px solid #90caf9;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.login-info-title {
    color: #1976d2;
    margin-bottom: 1rem;
}

.login-info-text {
    color: #1976d2;
    line-height: 1.6;
    margin: 0;
}

.login-form {
    max-width: 400px;
    margin: 0 auto;
}

.login-input {
    border: 2px solid #ddd;
    padding: 12px;
    border-radius: 10px;
    width: 100%;
}

.login-submit {
    text-align: center;
    margin-top: 2rem;
}

.login-register-section {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

.login-register-text {
    color: #6c757d;
}

.login-register-btn {
    background: #28a745;
    color: white;
}

.login-warning-box {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 15px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.login-warning-title {
    color: #721c24;
    margin-bottom: 1rem;
}

.login-warning-list {
    color: #721c24;
    text-align: right;
    margin-right: 2rem;
    line-height: 1.8;
}

/* Medicines Page Styles */
.mobile-search-container {
    margin-bottom: 1rem;
}

.search-input-group {
    margin-bottom: 1rem;
}

.mobile-search-label {
    display: block;
    font-weight: bold;
    color: #495057;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.search-input-wrapper {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.mobile-search-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #ced4da;
    border-radius: 10px;
    font-size: 16px;
    background: white;
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.mobile-search-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    transform: translateY(-1px);
}

.mobile-scan-btn {
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(23, 162, 184, 0.3);
    min-width: 50px;
}

.mobile-scan-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.4);
}

.search-hint {
    color: #6c757d;
    font-size: 14px;
    margin-top: 8px;
    display: block;
}

.mobile-filter-toggle {
    width: 100%;
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(108, 117, 125, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-filter-toggle:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.4);
}

.mobile-filters-container {
    margin-top: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    border: 2px solid #e9ecef;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.05);
}

.mobile-filter-group {
    margin-bottom: 1rem;
}

.mobile-filter-label {
    display: block;
    font-weight: bold;
    color: #495057;
    margin-bottom: 0.5rem;
    font-size: 15px;
}

.mobile-filter-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #ced4da;
    border-radius: 10px;
    font-size: 16px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 40px;
}

.mobile-filter-select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.mobile-filter-actions {
    display: flex;
    gap: 10px;
    margin-top: 1.5rem;
}

.mobile-search-btn {
    flex: 2;
    background: linear-gradient(135deg, #27ae60, #219a52);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(39, 174, 96, 0.3);
}

.mobile-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.4);
}

.mobile-reset-btn {
    flex: 1;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(243, 156, 18, 0.3);
    text-decoration: none;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-reset-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.4);
}

.medicines-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.medicine-image-container {
    position: relative;
    width: 100%;
    height: 180px;
    margin-bottom: 1rem;
    overflow: hidden;
    border-radius: 12px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
}

.medicine-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
    border-radius: 10px;
}

.medicine-thumbnail:hover {
    transform: scale(1.05);
}

.medicine-no-image {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #6c757d;
    margin-bottom: 1rem;
}

.medicine-no-image span {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.medicine-no-image small {
    font-size: 0.9rem;
    font-weight: bold;
}

.scientific-name {
    color: #6c757d;
    font-weight: 500;
    font-size: 0.9rem;
    margin: 0.5rem 0;
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    border-left: 4px solid #17a2b8;
    border-radius: 0 10px 10px 0;
    font-style: italic;
    line-height: 1.4;
}

.representative-info {
    background: linear-gradient(135deg, #f0f9f0, #e8f5e8);
    border: 1px solid #28a745;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    margin: 0.5rem 0;
    box-shadow: 0 1px 4px rgba(40, 167, 69, 0.1);
    font-size: 13px;
    line-height: 1.4;
    position: relative;
    overflow: hidden;
}

.representative-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: #28a745;
}

.representative-info p {
    margin: 0.2rem 0;
    padding: 0;
    border: none;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.representative-info p:last-child {
    margin-bottom: 0;
}

.representative-info strong {
    color: #155724;
    font-size: 12px;
    min-width: 18px;
    text-align: center;
}

.representative-info a {
    color: #27ae60 !important;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    padding: 2px 4px;
    border-radius: 4px;
    background: rgba(39, 174, 96, 0.08);
    font-size: 12px;
    flex: 1;
    text-align: center;
}

.representative-info a:hover {
    background: rgba(39, 174, 96, 0.15);
    transform: scale(1.02);
}

.representative-info a:active {
    transform: scale(0.98);
}

.representative-info .rep-name {
    color: #155724;
    font-weight: 600;
    font-size: 12px;
    flex: 1;
}

.discount-card {
    border-color: #e74c3c;
    background: linear-gradient(135deg, #fff, #ffeaea);
}

.discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(231, 76, 60, 0.3);
}

.quantity-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
}

.quantity-btn {
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(108, 117, 125, 0.3);
}

.quantity-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.4);
}

.quantity-input {
    width: 60px;
    text-align: center;
    border: 2px solid #ced4da;
    border-radius: 8px;
    padding: 8px;
    font-size: 16px;
    font-weight: bold;
    background: white;
}

.quantity-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

/* Tablets */
@media (min-width: 768px) {
    .medicines-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .mobile-filter-actions {
        max-width: 400px;
        margin: 1.5rem auto 0;
    }
    
    .representative-info {
        padding: 0.4rem 0.6rem;
        font-size: 12px;
        margin: 0.3rem 0;
        border-radius: 6px;
    }
    
    .representative-info p {
        margin: 0.1rem 0;
        gap: 0.2rem;
    }
    
    .representative-info strong {
        font-size: 11px;
        min-width: 16px;
    }
    
    .representative-info a {
        font-size: 11px;
        padding: 1px 3px;
    }
    
    .representative-info .rep-name {
        font-size: 11px;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .medicines-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .mobile-filter-toggle {
        display: none;
    }
    
    .mobile-filters-container {
        display: block !important;
        padding: 0;
        background: transparent;
        border: none;
        box-shadow: none;
        margin-top: 0;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .mobile-filter-actions {
        grid-column: 1 / -1;
        max-width: none;
        margin-top: 1rem;
    }
}

@media (min-width: 1200px) {
    .medicines-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    }
}

/* Barcode animations */
@keyframes barcodeLoad {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.barcode-section {
    animation: barcodeLoad 0.5s ease-out;
}

.barcode-section:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-color: #3498db;
}

.barcode-icon {
    font-size: 1.2rem;
}

.barcode-label {
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.barcode-container {
    background: white;
    border-radius: 8px;
    padding: 0.8rem;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.05);
    border: 2px solid #e9ecef;
}

.barcode-canvas {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 0.8rem auto;
}

.barcode-text {
    font-family: 'Courier New', 'Monaco', monospace;
    font-size: 0.8rem;
    font-weight: bold;
    color: #495057;
    letter-spacing: 1px;
    background: #f8f9fa;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    display: block;
    border: 2px solid #dee2e6;
    margin: 0 auto;
    width: fit-content;
}

.barcode-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 0.8rem;
    color: #2c3e50;
}

/* Cart Page Styles */
.simple-cart {
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem;
}

.cart-header {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.cart-header h1 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin: 0;
    font-weight: 600;
}

.cart-summary {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.summary-item {
    background: #f8f9fa;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #495057;
    border: 1px solid #e9ecef;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.cart-item {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-left: 4px solid #e74c3c;
    transition: all 0.3s ease;
}

.cart-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.item-info {
    margin-bottom: 1rem;
}

.item-info h3 {
    color: #2c3e50;
    font-size: 1.1rem;
    margin: 0 0 0.5rem 0;
    font-weight: 600;
}

.item-company {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 0.3rem 0;
}

.item-category {
    background: #9b59b6;
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.item-details {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.item-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.old-price {
    color: #6c757d;
    text-decoration: line-through;
    font-size: 0.9rem;
}

.new-price {
    color: #e74c3c;
    font-weight: 600;
}

.item-quantity {
    color: #6c757d;
    font-weight: 500;
}

.quantity {
    background: #f8f9fa;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
    border: 1px solid #e9ecef;
}

.item-total {
    color: #27ae60;
    font-size: 1.1rem;
    min-width: 80px;
    text-align: right;
}

.remove-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-btn:hover {
    background: #c0392b;
    transform: scale(1.05);
}

.checkout-form {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}

.checkout-form h2 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.order-total {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid #e9ecef;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #2c3e50;
    font-size: 1.1rem;
}

.total-row strong {
    color: #27ae60;
    font-size: 1.2rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.submit-btn {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 160px;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #229954 0%, #27ae60 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
}

.continue-btn {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 160px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
    position: relative;
    overflow: hidden;
}

.continue-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.continue-btn:hover::before {
    left: 100%;
}

.continue-btn:hover {
    background: linear-gradient(135deg, #5a6268 0%, #343a40 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
}

.empty-cart {
    text-align: center;
    padding: 3rem 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.empty-cart h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.empty-cart p {
    color: #6c757d;
    margin-bottom: 1.5rem;
}

.shop-btn {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    position: relative;
    overflow: hidden;
    display: inline-block;
    min-width: 160px;
}

.shop-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.shop-btn:hover::before {
    left: 100%;
}

.shop-btn:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1f639a 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

/* Cart Mobile Responsive */
@media (max-width: 768px) {
    .simple-cart {
        padding: 0.5rem;
    }
    
    .cart-header {
        flex-direction: column;
        text-align: center;
    }
    
    .cart-header h1 {
        font-size: 1.3rem;
    }
    
    .cart-summary {
        justify-content: center;
    }
    
    .cart-item {
        padding: 1rem;
    }
    
    .item-details {
        flex-direction: column;
        align-items: stretch;
        gap: 0.8rem;
    }
    
    .item-price {
        justify-content: center;
    }
    
    .item-quantity {
        text-align: center;
    }
    
    .item-total {
        text-align: center;
        font-size: 1.2rem;
    }
    
    .remove-btn {
        align-self: center;
        width: 40px;
        height: 40px;
    }
    
    .checkout-form {
        padding: 1rem;
    }
    
    .form-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .submit-btn,
    .continue-btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .cart-header h1 {
        font-size: 1.2rem;
    }
    
    .summary-item {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .item-info h3 {
        font-size: 1rem;
    }
    
    .checkout-form h2 {
        font-size: 1.1rem;
    }
    
    .empty-cart {
        padding: 2rem 1rem;
    }
    
    .empty-icon {
        font-size: 3rem;
    }
    
    .empty-cart h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        align-items: center;
    }
    
    .nav a {
        width: 100%;
        text-align: center;
        max-width: 300px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .table {
        font-size: 14px;
    }
    
    .table th,
    .table td {
        padding: 8px;
    }

    .medicine-card {
        padding: 1rem;
    }

    .medicine-title {
        font-size: 1rem;
    }

    .add-to-cart-form {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }

    .add-btn {
        width: 100%;
    }
    
    .register-container {
        margin: 1rem;
        padding: 1rem;
    }
    
    .account-type-selector {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .account-type-option {
        padding: 1rem;
    }
    
    .form-section {
        padding: 1.5rem;
        margin: 1rem 0;
    }
}

/* Dashboard Page Styles */
.modern-dashboard {
    padding: 0;
    margin: 0;
    background: transparent;
}

.dashboard-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-radius: 25px;
    margin-bottom: 2rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
}

.welcome-icon {
    margin-bottom: 1.5rem;
}

.icon-container {
    display: inline-block;
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.dashboard-icon {
    font-size: 2.5rem;
}

.dashboard-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.dashboard-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 0;
}

.dashboard-floating {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-pill {
    position: absolute;
    font-size: 1.5rem;
    opacity: 0.15;
    animation: floatPill 8s ease-in-out infinite;
}

@keyframes floatPill {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(180deg); }
}

.expiry-alert {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
    padding: 2rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    box-shadow: 0 15px 35px rgba(243, 156, 18, 0.3);
    position: relative;
    overflow: hidden;
}

.expiry-alert.critical {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    box-shadow: 0 15px 35px rgba(231, 76, 60, 0.3);
    animation: alertPulse 2s ease-in-out infinite;
}

@keyframes alertPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.expiry-alert .alert-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    animation: bounce 1s ease-in-out infinite;
}

.expiry-alert h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.expiry-alert p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.alert-date {
    background: rgba(255,255,255,0.2);
    padding: 0.8rem 1.2rem;
    border-radius: 15px;
    margin: 1rem 0;
    backdrop-filter: blur(10px);
}

.contact-info {
    background: rgba(255,255,255,0.95);
    color: #2c3e50;
    padding: 1.5rem;
    border-radius: 15px;
    margin-top: 1.5rem;
}

.contact-info h4 {
    margin-bottom: 1rem;
    color: #2c3e50;
    font-size: 1.1rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-name {
    font-weight: 600;
    font-size: 1.1rem;
}

.contact-phone {
    font-size: 1.3rem;
    font-weight: 700;
    color: #27ae60;
}

.stats-section {
    margin-bottom: 3rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.stat-icon {
    font-size: 3rem;
    z-index: 2;
    position: relative;
}

.stat-content {
    flex: 1;
    z-index: 2;
    position: relative;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.3rem;
}

.stat-label {
    color: #6c757d;
    font-size: 1rem;
    font-weight: 500;
}

.stat-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 20px 20px 0 0;
}

.orders-card .stat-bg { background: linear-gradient(90deg, #3498db, #2980b9); }
.pending-card .stat-bg { background: linear-gradient(90deg, #f39c12, #e67e22); }
.cart-card .stat-bg { background: linear-gradient(90deg, #e74c3c, #c0392b); }
.time-card.good .stat-bg { background: linear-gradient(90deg, #27ae60, #2ecc71); }
.time-card.warning .stat-bg { background: linear-gradient(90deg, #f39c12, #e67e22); }
.time-card.critical .stat-bg { background: linear-gradient(90deg, #e74c3c, #c0392b); }

.actions-section {
    margin-bottom: 3rem;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.action-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    text-decoration: none;
    color: #2c3e50;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.action-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 20px 20px 0 0;
}

.action-card.shopping::before { background: linear-gradient(90deg, #3498db, #2980b9); }
.action-card.cart::before { background: linear-gradient(90deg, #e74c3c, #c0392b); }
.action-card.orders::before { background: linear-gradient(90deg, #f39c12, #e67e22); }
.action-card.telegram::before { background: linear-gradient(90deg, #0088cc, #006699); }

.action-icon {
    font-size: 3rem;
    opacity: 0.8;
}

.action-content {
    flex: 1;
}

.action-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.action-content p {
    color: #6c757d;
    margin: 0;
    line-height: 1.4;
}

.action-arrow {
    font-size: 1.5rem;
    color: #3498db;
    opacity: 0;
    transition: all 0.3s ease;
}

.action-card:hover .action-arrow {
    opacity: 1;
    transform: translateX(5px);
}

.action-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
}

.cart-summary {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.summary-header h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin: 0;
}

.summary-count {
    background: #3498db;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.summary-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.summary-total {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.total-label {
    color: #6c757d;
    font-size: 0.9rem;
}

.total-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: #27ae60;
}

.summary-actions {
    display: flex;
    gap: 1rem;
}

.summary-btn {
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.summary-btn.view {
    background: #6c757d;
    color: white;
}

.summary-btn.add {
    background: #3498db;
    color: white;
}

.summary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Dashboard Mobile Responsive */
@media (max-width: 768px) {
    .dashboard-hero {
        padding: 2rem 1rem;
    }
    
    .dashboard-title {
        font-size: 1.8rem;
    }
    
    .dashboard-subtitle {
        font-size: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .actions-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .action-card {
        padding: 1.5rem;
    }
    
    .summary-content {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
    }
    
    .summary-actions {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .dashboard-hero {
        padding: 1.5rem 1rem;
    }
    
    .dashboard-title {
        font-size: 1.5rem;
    }
    
    .expiry-alert {
        padding: 1.5rem;
    }
    
    .action-card {
        padding: 1.2rem;
        gap: 1rem;
    }
    
    .action-icon {
        font-size: 2.5rem;
    }
    
    .action-content h3 {
        font-size: 1.1rem;
    }
}

/* Representative Dashboard Styles */
.rep-hero {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-radius: 25px;
    margin-bottom: 2rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.medicines-card .stat-bg { background: linear-gradient(90deg, #e74c3c, #c0392b); }
.companies-card .stat-bg { background: linear-gradient(90deg, #3498db, #2980b9); }
.available-card .stat-bg { background: linear-gradient(90deg, #27ae60, #2ecc71); }

.action-card.catalog::before { background: linear-gradient(90deg, #9b59b6, #8e44ad); }
.action-card.medicines::before { background: linear-gradient(90deg, #e74c3c, #c0392b); }
.action-card.companies::before { background: linear-gradient(90deg, #3498db, #2980b9); }
.action-card.shopping::before { background: linear-gradient(90deg, #27ae60, #2ecc71); }
.action-card.add-medicine::before { background: linear-gradient(90deg, #f39c12, #e67e22); }
.action-card.orders::before { background: linear-gradient(90deg, #f39c12, #e67e22); }

.profile-section {
    margin-bottom: 3rem;
}

.profile-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.profile-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 15px;
    border-left: 4px solid #3498db;
}

.info-label {
    font-weight: 600;
    color: #2c3e50;
    min-width: 120px;
}

.info-value {
    color: #6c757d;
    font-size: 1.1rem;
}

.recent-section {
    margin-bottom: 3rem;
}

.medicine-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.medicine-header h4 {
    color: #2c3e50;
    margin: 0;
    font-size: 1.1rem;
}

.medicine-price {
    font-weight: 700;
    color: #27ae60;
    font-size: 1.1rem;
}

.medicine-company {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.medicine-warehouse {
    color: #3498db;
    font-size: 0.9rem;
    font-weight: 600;
}

.medicine-status {
    display: flex;
    justify-content: flex-end;
}

.stock-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.stock-badge.good {
    background: #d4edda;
    color: #155724;
}

.stock-badge.low {
    background: #f8d7da;
    color: #721c24;
}

.view-all {
    text-align: center;
    margin-top: 2rem;
}

.view-all-btn {
    background: #6c757d;
    color: white;
    padding: 1rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.empty-state {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
}

.empty-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.empty-state h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.empty-state p {
    color: #6c757d;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.empty-btn {
    background: #27ae60;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.empty-btn:hover {
    background: #219a52;
    transform: translateY(-2px);
}

/* Representative Dashboard Mobile Responsive */
@media (max-width: 768px) {
    .rep-hero {
        padding: 2rem 1rem;
    }
    
    .profile-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .rep-hero {
        padding: 1.5rem 1rem;
    }
}

/* Warehouse Dashboard Styles */
.warehouse-hero {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-radius: 25px;
    margin-bottom: 2rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.low-stock-card .stat-bg { background: linear-gradient(90deg, #e74c3c, #c0392b); }
.expiring-card .stat-bg { background: linear-gradient(90deg, #f39c12, #e67e22); }

.action-card.medicines::before { background: linear-gradient(90deg, #27ae60, #2ecc71); }
.action-card.orders::before { background: linear-gradient(90deg, #3498db, #2980b9); }
.action-card.reports::before { background: linear-gradient(90deg, #e74c3c, #c0392b); }
.action-card.management::before { background: linear-gradient(90deg, #f39c12, #e67e22); }
.action-card.logo::before { background: linear-gradient(90deg, #9b59b6, #8e44ad); }

.alerts-section {
    margin-bottom: 3rem;
}

.alerts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.alert-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
}

.alert-card.low-stock {
    border-left: 4px solid #e74c3c;
}

.alert-card.expiring {
    border-left: 4px solid #f39c12;
}

.alert-content {
    flex: 1;
}

.alert-content h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.alert-content p {
    color: #6c757d;
    margin-bottom: 1rem;
}

.alert-btn {
    background: #3498db;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.alert-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.info-item {
    border-left: 4px solid #9b59b6;
}

/* Warehouse Dashboard Mobile Responsive */
@media (max-width: 768px) {
    .warehouse-hero {
        padding: 2rem 1rem;
    }
    
    .alerts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .warehouse-hero {
        padding: 1.5rem 1rem;
    }
}

/* Admin Dashboard Styles */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.admin-stat-card {
    color: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease;
}

.admin-stat-card:hover {
    transform: translateY(-5px);
}

.admin-stat-card h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    margin: 0 0 0.5rem 0;
}

.admin-stat-pharmacist {
    background: #3498db;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.admin-stat-warehouse {
    background: #9b59b6;
    box-shadow: 0 5px 15px rgba(155, 89, 182, 0.3);
}

.admin-stat-representative {
    background: #f39c12;
    box-shadow: 0 5px 15px rgba(243, 156, 18, 0.3);
}

.admin-stat-total {
    background: #2c3e50;
    box-shadow: 0 5px 15px rgba(44, 62, 80, 0.3);
}

.admin-stat-medicine {
    background: #27ae60;
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.3);
}

.admin-stat-orders {
    background: #e67e22;
    box-shadow: 0 5px 15px rgba(230, 126, 34, 0.3);
}

.admin-stat-pending {
    background: #f39c12;
    box-shadow: 0 5px 15px rgba(243, 156, 18, 0.3);
}

.admin-stat-expired {
    background: #e74c3c;
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.admin-stat-sponsor {
    background: #17a2b8;
    box-shadow: 0 5px 15px rgba(23, 162, 184, 0.3);
}

.admin-stat-monthly {
    background: #fd7e14;
    box-shadow: 0 5px 15px rgba(253, 126, 20, 0.3);
}

.admin-stat-telegram {
    background: #0088cc;
    box-shadow: 0 5px 15px rgba(0, 136, 204, 0.3);
}

/* Admin Dashboard Mobile Responsive */
@media (max-width: 768px) {
    .admin-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .admin-stat-card {
        padding: 1.5rem;
    }
    
    .admin-stat-card h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .admin-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-stat-card {
        padding: 1.2rem;
    }
    
    .admin-stat-card h3 {
        font-size: 1.3rem;
    }
}

/* Header Navigation Styles - Moved from header.php */
/* Modern Glassmorphism Navigation */
.modern-header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 30px 30px;
    margin-bottom: 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.modern-header:hover {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    position: relative;
}

/* Beautiful Brand Logo */
.header-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.brand-icon:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

.header-brand h1 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin: 0;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

/* Enhanced Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    cursor: pointer;
    padding: 12px;
    border-radius: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.mobile-menu-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.mobile-menu-btn:hover::before {
    left: 100%;
}

.mobile-menu-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

.hamburger {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-btn.active .hamburger:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active .hamburger:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.mobile-menu-btn.active .hamburger:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Enhanced Desktop Navigation */
.desktop-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.nav-link {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    backdrop-filter: blur(10px);
    color: #2c3e50;
    padding: 12px 18px;
    text-decoration: none;
    border-radius: 15px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.2));
    color: #1a252f;
}

.nav-link.admin {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.nav-link.admin:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.4);
}

.nav-link.warehouse {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    color: white;
    border: 1px solid rgba(155, 89, 182, 0.3);
}

.nav-link.warehouse:hover {
    background: linear-gradient(135deg, #8e44ad, #7d3c98);
    box-shadow: 0 8px 25px rgba(155, 89, 182, 0.4);
}

.nav-link.representative {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: 1px solid rgba(52, 152, 219, 0.3);
}

.nav-link.representative:hover {
    background: linear-gradient(135deg, #2980b9, #21618c);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
}

.nav-link.logout-btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.nav-link.logout-btn:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.4);
}

.nav-link.login-btn {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    border: 1px solid rgba(39, 174, 96, 0.3);
}

.nav-link.login-btn:hover {
    background: linear-gradient(135deg, #2ecc71, #58d68d);
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.4);
}

/* Enhanced Cart Badge */
.cart-badge {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border-radius: 50%;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: bold;
    min-width: 20px;
    text-align: center;
    display: inline-block;
    position: relative;
    animation: cart-pulse 2s ease-in-out infinite;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

@keyframes cart-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Enhanced Mobile Navigation */
.mobile-nav {
    display: none;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 0 0 25px 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.mobile-nav.show {
    display: block;
    max-height: 80vh;
    padding: 1.5rem;
    overflow-y: auto;
}

/* Custom Scrollbar for Mobile Nav */
.mobile-nav.show::-webkit-scrollbar {
    width: 6px;
}

.mobile-nav.show::-webkit-scrollbar-track {
    background: rgba(241, 241, 241, 0.3);
    border-radius: 10px;
}

.mobile-nav.show::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 10px;
}

/* Enhanced Mobile Nav Links */
.mobile-nav-link {
    display: block;
    padding: 15px 20px;
    margin: 8px 0;
    text-decoration: none;
    color: #2c3e50;
    font-weight: 600;
    border-radius: 15px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.mobile-nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.2), transparent);
    transition: left 0.6s ease;
}

.mobile-nav-link:hover::before {
    left: 100%;
}

.mobile-nav-link:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateX(5px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.mobile-nav-link.admin {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.1), rgba(192, 57, 43, 0.1));
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.2);
}

.mobile-nav-link.admin:hover {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.2), rgba(192, 57, 43, 0.2));
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.2);
}

.mobile-nav-link.warehouse {
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.1), rgba(142, 68, 173, 0.1));
    color: #9b59b6;
    border: 1px solid rgba(155, 89, 182, 0.2);
}

.mobile-nav-link.warehouse:hover {
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.2), rgba(142, 68, 173, 0.2));
    box-shadow: 0 8px 25px rgba(155, 89, 182, 0.2);
}

.mobile-nav-link.representative {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(41, 128, 185, 0.1));
    color: #3498db;
    border: 1px solid rgba(52, 152, 219, 0.2);
}

.mobile-nav-link.representative:hover {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.2), rgba(41, 128, 185, 0.2));
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.2);
}

/* Enhanced User Info */
.mobile-user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    margin: 15px 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.1);
}

.user-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.user-avatar:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

.user-name {
    font-weight: 700;
    color: #2c3e50;
    font-size: 1.1rem;
}

/* Header Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }
    
    .desktop-nav {
        display: none;
    }
    
    .header-brand h1 {
        font-size: 1.4rem;
    }
    
    .brand-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .header-container {
        padding: 1rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .header-brand h1 {
        font-size: 1.2rem;
    }
    
    .brand-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .header-container {
        padding: 1rem;
    }
    
    .mobile-nav-link {
        padding: 12px 16px;
        font-size: 14px;
    }
}

/* Loading Animation */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modern-header {
    animation: fadeInDown 0.6s ease-out;
}

/* Additional Glassmorphism Effects */
.nav-link, .mobile-nav-link {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
        /* Common Inline Styles Moved to Classes */
        
        /* Background Colors */
        .bg-light-grey {
            background: #f8f9fa;
        }
        
        .bg-white {
            background: white;
        }
        
        .bg-primary {
            background: #3498db;
        }
        
        .bg-success {
            background: #27ae60;
        }
        
        .bg-warning {
            background: #f39c12;
        }
        
        .bg-danger {
            background: #e74c3c;
        }
        
        .bg-purple {
            background: #9b59b6;
        }
        
        .bg-orange {
            background: #e67e22;
        }
        
        .bg-info {
            background: #17a2b8;
        }
        
        .bg-teal {
            background: #20c997;
        }
        
        .bg-gradient-primary {
            background: linear-gradient(135deg, #3498db, #2980b9);
        }
        
        .bg-gradient-success {
            background: linear-gradient(135deg, #27ae60, #2ecc71);
        }
        
        .bg-gradient-warning {
            background: linear-gradient(135deg, #f39c12, #e67e22);
        }
        
        .bg-gradient-danger {
            background: linear-gradient(135deg, #e74c3c, #c0392b);
        }
        
        .bg-gradient-purple {
            background: linear-gradient(135deg, #9b59b6, #8e44ad);
        }
        
        .bg-gradient-info {
            background: linear-gradient(135deg, #17a2b8, #138496);
        }
        
        /* Border Colors */
        .border-primary {
            border: 2px solid #3498db;
        }
        
        .border-success {
            border: 2px solid #27ae60;
        }
        
        .border-warning {
            border: 2px solid #f39c12;
        }
        
        .border-danger {
            border: 2px solid #e74c3c;
        }
        
        .border-info {
            border: 2px solid #17a2b8;
        }
        
        .border-light {
            border: 2px solid #e9ecef;
        }
        
        .border-dashed {
            border: 2px dashed #6c757d;
        }
        
        /* Text Colors */
        .text-primary {
            color: #3498db;
        }
        
        .text-success {
            color: #27ae60;
        }
        
        .text-warning {
            color: #f39c12;
        }
        
        .text-danger {
            color: #e74c3c;
        }
        
        .text-info {
            color: #17a2b8;
        }
        
        .text-muted {
            color: #6c757d;
        }
        
        .text-white {
            color: white;
        }
        
        .text-dark {
            color: #2c3e50;
        }
        
        /* Padding and Margins */
        .p-0 { padding: 0; }
        .p-1 { padding: 0.5rem; }
        .p-2 { padding: 1rem; }
        .p-3 { padding: 1.5rem; }
        .p-4 { padding: 2rem; }
        .p-5 { padding: 3rem; }
        
        .m-0 { margin: 0; }
        .m-1 { margin: 0.5rem; }
        .m-2 { margin: 1rem; }
        .m-3 { margin: 1.5rem; }
        .m-4 { margin: 2rem; }
        .m-5 { margin: 3rem; }
        
        .mb-0 { margin-bottom: 0; }
        .mb-1 { margin-bottom: 0.5rem; }
        .mb-2 { margin-bottom: 1rem; }
        .mb-3 { margin-bottom: 1.5rem; }
        .mb-4 { margin-bottom: 2rem; }
        .mb-5 { margin-bottom: 3rem; }
        
        .mt-0 { margin-top: 0; }
        .mt-1 { margin-top: 0.5rem; }
        .mt-2 { margin-top: 1rem; }
        .mt-3 { margin-top: 1.5rem; }
        .mt-4 { margin-top: 2rem; }
        .mt-5 { margin-top: 3rem; }
        
        .ml-1 { margin-left: 0.5rem; }
        .ml-2 { margin-left: 1rem; }
        .ml-3 { margin-left: 1.5rem; }
        
        .mr-1 { margin-right: 0.5rem; }
        .mr-2 { margin-right: 1rem; }
        .mr-3 { margin-right: 1.5rem; }
        
        /* Border Radius */
        .rounded {
            border-radius: 8px;
        }
        
        .rounded-lg {
            border-radius: 12px;
        }
        
        .rounded-xl {
            border-radius: 15px;
        }
        
        .rounded-2xl {
            border-radius: 20px;
        }
        
        .rounded-full {
            border-radius: 50%;
        }
        
        /* Text Alignment */
        .text-left {
            text-align: left;
        }
        
        .text-center {
            text-align: center;
        }
        
        .text-right {
            text-align: right;
        }
        
        /* Display */
        .d-none {
            display: none;
        }
        
        .d-block {
            display: block;
        }
        
        .d-inline {
            display: inline;
        }
        
        .d-inline-block {
            display: inline-block;
        }
        
        .d-flex {
            display: flex;
        }
        
        .d-grid {
            display: grid;
        }
        
        /* Flexbox */
        .flex-row {
            flex-direction: row;
        }
        
        .flex-column {
            flex-direction: column;
        }
        
        .align-items-center {
            align-items: center;
        }
        
        .align-items-start {
            align-items: flex-start;
        }
        
        .align-items-end {
            align-items: flex-end;
        }
        
        .justify-content-center {
            justify-content: center;
        }
        
        .justify-content-between {
            justify-content: space-between;
        }
        
        .justify-content-end {
            justify-content: flex-end;
        }
        
        .flex-wrap {
            flex-wrap: wrap;
        }
        
        .flex-1 {
            flex: 1;
        }
        
        /* Grid */
        .grid-cols-1 {
            grid-template-columns: 1fr;
        }
        
        .grid-cols-2 {
            grid-template-columns: repeat(2, 1fr);
        }
        
        .grid-cols-3 {
            grid-template-columns: repeat(3, 1fr);
        }
        
        .grid-cols-4 {
            grid-template-columns: repeat(4, 1fr);
        }
        
        .grid-cols-auto {
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        }
        
        .grid-cols-auto-lg {
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        }
        
        .grid-gap-1 {
            gap: 0.5rem;
        }
        
        .grid-gap-2 {
            gap: 1rem;
        }
        
        .grid-gap-3 {
            gap: 1.5rem;
        }
        
        .grid-gap-4 {
            gap: 2rem;
        }
        
        /* Font Sizes */
        .fs-xs {
            font-size: 0.75rem;
        }
        
        .fs-sm {
            font-size: 0.875rem;
        }
        
        .fs-base {
            font-size: 1rem;
        }
        
        .fs-lg {
            font-size: 1.125rem;
        }
        
        .fs-xl {
            font-size: 1.25rem;
        }
        
        .fs-2xl {
            font-size: 1.5rem;
        }
        
        .fs-3xl {
            font-size: 1.875rem;
        }
        
        .fs-4xl {
            font-size: 2.25rem;
        }
        
        /* Font Weight */
        .fw-normal {
            font-weight: normal;
        }
        
        .fw-bold {
            font-weight: bold;
        }
        
        .fw-600 {
            font-weight: 600;
        }
        
        .fw-700 {
            font-weight: 700;
        }
        
        .fw-800 {
            font-weight: 800;
        }
        
        /* Warehouse Reports Styles */
        .filter-form {
            background: #f8f9fa;
            border-radius: 15px;
            padding: 2rem;
            margin-bottom: 2rem;
        }
        
        .filter-actions {
            text-align: center;
            margin-top: 1rem;
        }
        
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1rem;
            margin-bottom: 2rem;
        }
        
        .stat-card {
            padding: 1.5rem;
            border-radius: 15px;
            text-align: center;
            color: white;
        }
        
        .stat-card.primary {
            background: #3498db;
        }
        
        .stat-card.success {
            background: #27ae60;
        }
        
        .stat-card.purple {
            background: #9b59b6;
        }
        
        .stat-card.orange {
            background: #e67e22;
        }
        
        .stat-card h3 {
            margin: 0 0 0.5rem 0;
        }
        
        .stat-card p {
            margin: 0;
        }
        
        .report-content {
            background: white;
            padding: 2rem;
            border-radius: 15px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }
        
        .report-header {
            display: none;
            text-align: center;
            margin-bottom: 2rem;
        }
        
        .report-header h2 {
            margin: 0;
        }
        
        .report-header p {
            margin: 0;
        }
        
        .report-header hr {
            margin: 1rem 0;
        }
        
        .report-section {
            margin-bottom: 2rem;
        }
        
        .report-section h3 {
            color: #2c3e50;
            margin-bottom: 1rem;
        }
        
        .table-wrapper {
            overflow-x: auto;
        }
        
        .table-footer {
            background: #f8f9fa;
            font-weight: bold;
        }
        
        .empty-report {
            text-align: center;
            padding: 3rem;
            color: #6c757d;
        }
        
        .empty-report h3 {
            margin-bottom: 1rem;
        }
        
        .discount-label {
            color: #e74c3c;
        }
        
        .status-badge {
            padding: 4px 8px;
            border-radius: 10px;
            font-size: 11px;
            color: white;
        }
        
        .medicine-details {
            font-weight: bold;
        }
        
        .medicine-details small {
            color: #2c3e50;
            font-weight: bold;
        }
        
        .stock-indicator {
            font-weight: bold;
        }
        
        .stock-indicator.good {
            color: #27ae60;
        }
        
        .stock-indicator.warning {
            color: #f39c12;
        }
        
        .stock-indicator.danger {
            color: #e74c3c;
        }
        
        .category-badge {
            background: #e3f2fd;
            padding: 4px 8px;
            border-radius: 12px;
            font-size: 11px;
        }
        
        .representative-badge {
            background: #17a2b8;
            color: white;
            padding: 4px 8px;
            border-radius: 10px;
            font-size: 11px;
            font-weight: bold;
        }
        
        .warehouse-badge {
            background: #6c757d;
            color: white;
            padding: 4px 8px;
            border-radius: 10px;
            font-size: 11px;
            font-weight: bold;
        }
        
        .expiry-row-expired {
            background: #ffebee;
        }
        
        .expiry-row-warning {
            background: #fff8e1;
        }
        
        /* Warehouse Orders Styles */
        .warehouse-logo-info {
            background: #d4edda;
            border: 2px solid #c3e6cb;
            border-radius: 15px;
            padding: 1rem;
            margin-bottom: 2rem;
        }
        
        .warehouse-logo-info .logo-display {
            display: flex;
            align-items: center;
            gap: 15px;
        }
        
        .warehouse-logo-info .logo-img {
            max-width: 60px;
            max-height: 40px;
            border-radius: 8px;
            border: 2px solid #28a745;
        }
        
        .warehouse-logo-info h4 {
            color: #155724;
            margin: 0;
        }
        
        .warehouse-logo-info p {
            color: #155724;
            margin: 5px 0 0 0;
            font-size: 14px;
        }
        
        .warehouse-no-logo {
            background: #fff3cd;
            border: 2px solid #ffeaa7;
            border-radius: 15px;
            padding: 1rem;
            margin-bottom: 2rem;
        }
        
        .warehouse-no-logo .logo-display {
            display: flex;
            align-items: center;
            gap: 15px;
        }
        
        .warehouse-no-logo .logo-placeholder {
            width: 60px;
            height: 40px;
            background: #f8f9fa;
            border: 2px dashed #6c757d;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .warehouse-no-logo .logo-placeholder span {
            color: #6c757d;
            font-size: 20px;
        }
        
        .warehouse-no-logo h4 {
            color: #856404;
            margin: 0;
        }
        
        .warehouse-no-logo p {
            color: #856404;
            margin: 5px 0 0 0;
            font-size: 14px;
        }

/* Pharmacist Reminders Styles */
.reminders-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.reminders-header {
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 2rem;
    border-radius: 25px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.reminders-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.reminders-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin: 0;
}

.add-reminder-btn {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.3);
    margin-bottom: 2rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.add-reminder-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(39, 174, 96, 0.4);
}

.tabs-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.tab-button {
    background: white;
    border: 2px solid #e9ecef;
    padding: 1rem 2rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.tab-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.tab-button:hover::before {
    left: 100%;
}

.tab-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.tab-button.active {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border-color: #3498db;
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
}

.tab-badge {
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 700;
    min-width: 25px;
    text-align: center;
}

.tab-button:not(.active) .tab-badge {
    background: #e74c3c;
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.reminder-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-left: 5px solid #3498db;
    position: relative;
    overflow: hidden;
}

.reminder-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
}

.reminder-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.reminder-card.paused {
    border-left-color: #f39c12;
    opacity: 0.8;
}

.reminder-card.paused::before {
    background: linear-gradient(90deg, #f39c12, #e67e22);
}

.reminder-card.completed {
    border-left-color: #27ae60;
    background: linear-gradient(135deg, #f8fff8, #ffffff);
}

.reminder-card.completed::before {
    background: linear-gradient(90deg, #27ae60, #2ecc71);
}

.reminder-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f8f9fa;
}

.reminder-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

.reminder-status {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-active {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
}

.status-paused {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
}

.status-completed {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    color: white;
}

.reminder-info {
    margin-bottom: 2rem;
}

.date-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.date-item {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 15px;
    border-left: 4px solid #3498db;
}

.date-item strong {
    display: block;
    color: #2c3e50;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.date-item span {
    font-size: 1.1rem;
    font-weight: 600;
    color: #495057;
}

.reminder-interval {
    background: linear-gradient(135deg, #e3f2fd, #ffffff);
    padding: 1rem;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #2196f3;
    font-weight: 600;
    color: #1976d2;
}

.reminder-medicines {
    background: linear-gradient(135deg, #f3e5f5, #ffffff);
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #9c27b0;
}

.reminder-medicines h4 {
    color: #7b1fa2;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.reminder-medicines div {
    color: #4a148c;
    line-height: 1.6;
    font-weight: 500;
}

.reminder-field {
    background: linear-gradient(135deg, #fff3e0, #ffffff);
    padding: 1rem;
    border-radius: 15px;
    margin-bottom: 1rem;
    border-left: 4px solid #ff9800;
}

.reminder-field strong {
    color: #e65100;
    font-weight: 700;
}

.reminder-actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    justify-content: center;
    padding-top: 1.5rem;
    border-top: 2px solid #f8f9fa;
}

.action-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 15px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn:hover {
    transform: translateY(-2px);
}

.btn-edit {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.btn-edit:hover {
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
}

.btn-received {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.btn-received:hover {
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.4);
}

.btn-pause {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

.btn-pause:hover {
    box-shadow: 0 8px 25px rgba(243, 156, 18, 0.4);
}

.btn-resume {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.btn-resume:hover {
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.4);
}

.btn-test {
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: white;
    box-shadow: 0 4px 15px rgba(23, 162, 184, 0.3);
}

.btn-test:hover {
    box-shadow: 0 8px 25px rgba(23, 162, 184, 0.4);
}

.btn-delete {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.btn-delete:hover {
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.4);
}

.completion-info {
    background: linear-gradient(135deg, #d4edda, #ffffff);
    padding: 1rem;
    border-radius: 15px;
    color: #155724;
    font-weight: 600;
    border-left: 4px solid #28a745;
    margin-bottom: 1rem;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 2px dashed #e9ecef;
}

.empty-state h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.empty-state p {
    color: #6c757d;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Modal Styles for Reminders */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.close {
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

.modal form {
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
    font-size: 1rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    transform: translateY(-1px);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    padding-top: 1.5rem;
    border-top: 2px solid #f8f9fa;
}

.btn-primary {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108, 117, 125, 0.4);
}

/* Responsive Design for Reminders */
@media (max-width: 768px) {
    .reminders-container {
        padding: 1rem;
    }
    
    .reminders-header {
        padding: 2rem 1rem;
    }
    
    .reminders-header h1 {
        font-size: 2rem;
    }
    
    .tabs-container {
        flex-direction: column;
        align-items: center;
    }
    
    .tab-button {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .reminder-card {
        padding: 1.5rem;
    }
    
    .reminder-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .date-info {
        grid-template-columns: 1fr;
    }
    
    .reminder-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .action-btn {
        width: 100%;
        max-width: 250px;
    }
    
    .modal-content {
        width: 95%;
        margin: 2% auto;
    }
    
    .modal-header {
        padding: 1.5rem;
    }
    
    .modal form {
        padding: 1.5rem;
    }
    
    .form-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    .reminders-header h1 {
        font-size: 1.8rem;
    }
    
    .reminder-title {
        font-size: 1.3rem;
    }
    
    .add-reminder-btn {
        width: 100%;
        max-width: 300px;
    }
}
        
        .date-filter {
            background: #f8f9fa;
            border: 2px solid #dee2e6;
            border-radius: 15px;
            padding: 1.5rem;
            margin-bottom: 2rem;
        }
        
        .date-filter h4 {
            color: #495057;
            margin-bottom: 1rem;
        }
        
        .date-filter .filter-buttons {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            justify-content: center;
        }
        
        .date-filter .filter-btn {
            padding: 10px 20px;
            font-size: 14px;
            text-decoration: none;
            border-radius: 6px;
        }
        
        .date-filter .filter-btn.active {
            background: #007bff;
            color: white;
        }
        
        .date-filter .filter-btn.inactive {
            background: #6c757d;
            color: white;
        }
        
        .date-filter .current-filter {
            text-align: center;
            margin-top: 1rem;
            padding: 10px;
            background: #e3f2fd;
            border-radius: 8px;
        }
        
        .date-filter .current-filter strong {
            color: #1976d2;
        }

/* Success Animation for Add to Cart Button */
.success-animation {
    background: linear-gradient(135deg, #27ae60, #2ecc71) !important;
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.4) !important;
    animation: successPulse 0.6s ease-in-out;
    position: relative;
    overflow: hidden;
}

@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1.05); }
}

.success-animation::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    animation: successRipple 0.6s ease-out;
}

@keyframes successRipple {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(4);
        opacity: 0;
    }
}

/* Loading Button States */
.loading-btn {
    background: linear-gradient(135deg, #6c757d, #495057) !important;
    pointer-events: none;
    position: relative;
    color: transparent !important;
    cursor: not-allowed;
}

.loading-btn::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Toast Notifications */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #28a745;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    z-index: 9999;
    font-weight: bold;
    font-size: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateX(400px);
    transition: all 0.3s ease;
    max-width: 300px;
    word-wrap: break-word;
    font-family: inherit;
}

.toast.error {
    background: #dc3545;
}

.toast.show {
    transform: translateX(0);
}

/* Cart Toast Notifications */
.cart-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    z-index: 9999;
    font-weight: bold;
    font-size: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateX(400px);
    transition: all 0.3s ease;
    max-width: 300px;
    word-wrap: break-word;
    font-family: inherit;
}

.cart-toast.success {
    background: #28a745;
}

.cart-toast.error {
    background: #dc3545;
}

/* Enhanced Cart Item Animations */
.cart-item {
    transition: all 0.3s ease;
    transform-origin: center;
}

.cart-item.removing {
    transform: translateX(-100%);
    opacity: 0;
}

/* Remove Button Enhanced States */
.remove-btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.remove-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.remove-btn:hover:not(:disabled) {
    transform: scale(1.1);
    background: #c0392b;
}

/* Enhanced Button Hover Effects */
.add-btn:not(.loading-btn):not(.success-animation):hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
}

.mobile-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
}

.mobile-reset-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.4);
}

/* Prevent text selection on buttons during animations */
.add-btn,
.remove-btn,
.mobile-search-btn,
.mobile-reset-btn {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Enhanced Focus States for Better Accessibility */
.add-btn:focus,
.remove-btn:focus,
.mobile-search-btn:focus,
.mobile-reset-btn:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Smooth transitions for all interactive elements */
button,
.btn,
a {
    transition: all 0.3s ease;
}

/* Enhanced Cart Badge Animation */
@keyframes cart-pulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
    }
    50% { 
        transform: scale(1.2);
        box-shadow: 0 6px 20px rgba(231, 76, 60, 0.6);
    }
}

.cart-badge {
    animation: cart-pulse 2s ease-in-out infinite;
}

/* Responsive Toast Notifications */
@media (max-width: 768px) {
    .toast,
    .cart-toast {
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(-100px);
        top: 10px;
    }
    
    .toast.show,
    .cart-toast.show {
        transform: translateY(0);
    }
}

/* Enhanced Loading States */
.loading-btn {
    animation: loadingPulse 1.5s ease-in-out infinite;
}

@keyframes loadingPulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

/* Success State Enhancements */
.success-animation {
    animation: successPulse 0.6s ease-in-out, successGlow 2s ease-in-out;
}

@keyframes successGlow {
    0%, 100% { 
        box-shadow: 0 8px 25px rgba(39, 174, 96, 0.4);
    }
    50% { 
        box-shadow: 0 12px 35px rgba(39, 174, 96, 0.6);
    }
}

/* Beautiful Sticker Price Design - Enhanced */
.sticker-price-container {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sticker-price-badge {
    background: linear-gradient(135deg, #fff8dc 0%, #ffd700 30%, #ffb347 70%, #ff8c00 100%);
    border: 3px solid #ff8c00;
    border-radius: 25px;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 
        0 10px 30px rgba(255, 140, 0, 0.4),
        inset 0 2px 4px rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: stickerGlow 4s ease-in-out infinite;
    transform-style: preserve-3d;
}

.sticker-price-badge::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff8c00, #ffd700, #ff8c00, #ffd700);
    background-size: 400% 400%;
    border-radius: 25px;
    z-index: -1;
    animation: gradientShift 3s ease infinite;
}

.sticker-price-badge::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    transition: left 1s ease;
}

.sticker-price-badge:hover::after {
    left: 100%;
}

.sticker-price-badge:hover {
    transform: translateY(-5px) scale(1.05) rotateX(5deg);
    box-shadow: 
        0 15px 40px rgba(255, 140, 0, 0.6),
        inset 0 2px 4px rgba(255, 255, 255, 0.4);
    border-color: #ff6b35;
}

.sticker-icon {
    font-size: 1.5rem;
    color: #cc5500;
    animation: stickerBounce 2.5s ease-in-out infinite;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    filter: drop-shadow(0 0 8px rgba(255, 140, 0, 0.5));
}

.sticker-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.sticker-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #8b4513;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
    background: linear-gradient(45deg, #8b4513, #a0522d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sticker-value {
    font-size: 1.2rem;
    font-weight: 900;
    color: #8b0000;
    margin: 0;
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.3),
        0 0 10px rgba(255, 215, 0, 0.5);
    background: linear-gradient(45deg, #8b0000, #dc143c, #ff4500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textGlow 2s ease-in-out infinite alternate;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes stickerGlow {
    0%, 100% { 
        box-shadow: 
            0 10px 30px rgba(255, 140, 0, 0.4),
            inset 0 2px 4px rgba(255, 255, 255, 0.3);
        border-color: #ff8c00;
    }
    50% { 
        box-shadow: 
            0 15px 40px rgba(255, 140, 0, 0.6),
            inset 0 2px 4px rgba(255, 255, 255, 0.4);
        border-color: #ff6b35;
    }
}

@keyframes stickerBounce {
    0%, 20%, 50%, 80%, 100% { 
        transform: translateY(0) rotate(0deg);
    }
    40% { 
        transform: translateY(-4px) rotate(5deg);
    }
    60% { 
        transform: translateY(-2px) rotate(-3deg);
    }
}

@keyframes textGlow {
    0% { 
        text-shadow: 
            2px 2px 4px rgba(0, 0, 0, 0.3),
            0 0 10px rgba(255, 215, 0, 0.5);
    }
    100% { 
        text-shadow: 
            2px 2px 4px rgba(0, 0, 0, 0.3),
            0 0 20px rgba(255, 215, 0, 0.8);
    }
}

/* Special 3D Effect for Sticker */
.sticker-price-badge {
    perspective: 1000px;
}

.sticker-price-badge:hover .sticker-icon {
    animation: stickerSpin 0.8s ease-in-out;
}

@keyframes stickerSpin {
    0% { transform: rotateY(0deg); }
    50% { transform: rotateY(180deg) scale(1.2); }
    100% { transform: rotateY(360deg); }
}

/* Enhanced Responsive Sticker Price */
@media (max-width: 768px) {
    .sticker-price-badge {
        padding: 0.8rem 1.2rem;
        gap: 0.8rem;
        border-width: 2px;
    }
    
    .sticker-icon {
        font-size: 1.3rem;
    }
    
    .sticker-label {
        font-size: 0.75rem;
        letter-spacing: 0.8px;
    }
    
    .sticker-value {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .sticker-price-badge {
        padding: 0.6rem 1rem;
        gap: 0.6rem;
        border-width: 2px;
        border-radius: 20px;
    }
    
    .sticker-icon {
        font-size: 1.1rem;
    }
    
    .sticker-label {
        font-size: 0.7rem;
        letter-spacing: 0.5px;
    }
    
    .sticker-value {
        font-size: 1rem;
    }
}

/* Dark mode support for sticker price */
@media (prefers-color-scheme: dark) {
    .sticker-price-badge {
        background: linear-gradient(135deg, #2c1810 0%, #8b4513 30%, #a0522d 70%, #cd853f 100%);
        border-color: #cd853f;
    }
    
    .sticker-label {
        color: #deb887;
    }
    
    .sticker-value {
        color: #ff6347;
    }
}

/* Print styles for sticker price */
@media print {
    .sticker-price-badge {
        background: #f5f5f5 !important;
        border: 2px solid #333 !important;
        box-shadow: none !important;
        animation: none !important;
    }
    
    .sticker-icon,
    .sticker-label,
    .sticker-value {
        color: #333 !important;
        text-shadow: none !important;
        animation: none !important;
    }
}

/* Contact Section Styles for Home Page */
.contact-section {
    padding: 4rem 2rem;
    background: transparent;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 20px 20px 0 0;
}

.contact-card.phone-card::before {
    background: linear-gradient(90deg, #e74c3c, #c0392b);
}

.contact-card.hours-card::before {
    background: linear-gradient(90deg, #3498db, #2980b9);
}

.contact-card.info-card::before {
    background: linear-gradient(90deg, #27ae60, #2ecc71);
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    animation: bounce 2s infinite;
}

.contact-card h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 700;
}

.phone-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.phone-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    border: 2px solid transparent;
}

.phone-item:hover {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    transform: translateX(-5px);
    box-shadow: 0 8px 25px rgba(33, 150, 243, 0.2);
    border-color: #2196f3;
}

.phone-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #2196f3, #1976d2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
    transition: all 0.3s ease;
}

.phone-item:hover .phone-icon {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.4);
}

.phone-details {
    flex: 1;
    text-align: right;
}

.phone-number {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1976d2;
    direction: ltr;
    text-align: right;
    display: block;
    margin-bottom: 0.2rem;
}

.phone-label {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

.hours-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.hours-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.hours-item:hover {
    background: linear-gradient(135deg, #e8f5e8, #d4edda);
    border-color: #28a745;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.2);
}

.hours-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #28a745, #20c997);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    transition: all 0.3s ease;
}

.hours-item:hover .hours-icon {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.hours-details {
    flex: 1;
    text-align: right;
}

.hours-time {
    font-size: 1.2rem;
    font-weight: 700;
    color: #28a745;
    display: block;
    margin-bottom: 0.2rem;
}

.hours-days {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

.contact-card.info-card {
    background: linear-gradient(135deg, #f8fff8, #e8f5e8);
    border-color: #28a745;
}

.contact-card.info-card p {
    color: #6c757d;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    position: relative;
    overflow: hidden;
}

.contact-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s ease;
}

.contact-link:hover::before {
    left: 100%;
}

.contact-link:hover {
    background: linear-gradient(135deg, #20c997, #17a2b8);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}

.contact-arrow {
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.contact-link:hover .contact-arrow {
    transform: translateX(5px);
}

/* Contact Section Mobile Responsive */
@media (max-width: 768px) {
    .contact-section {
        padding: 3rem 1rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-card {
        padding: 2rem;
    }
    
    .contact-icon {
        font-size: 2.5rem;
    }
    
    .contact-card h3 {
        font-size: 1.3rem;
    }
    
    .phone-item,
    .hours-item {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }
    
    .phone-details,
    .hours-details {
        text-align: center;
    }
    
    .phone-number {
        text-align: center;
    }
    
    .contact-link {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .contact-section {
        padding: 2rem 1rem;
    }
    
    .contact-card {
        padding: 1.5rem;
    }
    
    .contact-icon {
        font-size: 2rem;
    }
    
    .contact-card h3 {
        font-size: 1.2rem;
    }
    
    .phone-icon,
    .hours-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .phone-number {
        font-size: 1.2rem;
    }
    
    .hours-time {
        font-size: 1.1rem;
    }
    
    .contact-link {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Contact Section Animation Effects */
.contact-section .section-title {
    color: #2c3e50;
}

.contact-section .section-subtitle {
    color: #6c757d;
}

/* Enhanced Contact Card Hover Effects */
.contact-card.phone-card:hover {
    border-color: #e74c3c;
    background: linear-gradient(135deg, #ffebee, #ffffff);
}

.contact-card.hours-card:hover {
    border-color: #3498db;
    background: linear-gradient(135deg, #e3f2fd, #ffffff);
}

.contact-card.info-card:hover {
    border-color: #28a745;
    background: linear-gradient(135deg, #e8f5e8, #ffffff);
}

/* Phone Number Click Effects */
.phone-item[href^="tel:"] {
    position: relative;
}

.phone-item[href^="tel:"]:active {
    transform: scale(0.98);
}

/* Accessibility Enhancements */
.phone-item:focus,
.contact-link:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .contact-card {
        border: 2px solid #000;
    }
    
    .phone-item,
    .hours-item {
        border: 1px solid #333;
    }
    
    .phone-icon,
    .hours-icon {
        background: #000;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .contact-icon {
        animation: none;
    }
    
    .contact-card,
    .phone-item,
    .hours-item,
    .contact-link {
        transition: none;
    }
    
    .contact-card:hover,
    .phone-item:hover,
    .hours-item:hover {
        transform: none;
    }
}
