/**
 * Med Bangladesh - Mobile Responsive Styles
 * Version: 2.4.0
 * 
 * Mobile-first responsive design optimized for pharmacy POS on touch devices.
 * Inspired by competitor app MediPOS with modern app-like interface.
 */

:root {
    --primary-color: #0073aa;
    --primary-dark: #005a87;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --light-bg: #f5f7fa;
    --card-shadow: 0 2px 8px rgba(0,0,0,0.08);
    --card-radius: 12px;
    --touch-target: 48px;
    --nav-height: 60px;
    --bottom-nav-height: 70px;
    --safe-area-bottom: env(safe-area-inset-bottom, 0px);
}

* {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background: var(--light-bg);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

input, button, select, textarea {
    font-family: inherit;
    font-size: 16px;
}

@media (max-width: 768px) {
    body {
        padding-bottom: calc(var(--bottom-nav-height) + var(--safe-area-bottom));
    }
    
    main {
        padding: 15px !important;
        padding-bottom: calc(var(--bottom-nav-height) + 30px) !important;
    }
    
    h1 {
        font-size: 24px !important;
        margin-bottom: 15px !important;
    }
    
    h2 {
        font-size: 20px !important;
    }
    
    .card {
        border-radius: var(--card-radius) !important;
        padding: 20px !important;
        box-shadow: var(--card-shadow) !important;
    }
    
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    input[type="tel"],
    textarea,
    select {
        min-height: var(--touch-target);
        padding: 12px 16px;
        font-size: 16px;
        border-radius: 10px;
        border: 1.5px solid #e0e0e0;
        background: white;
        width: 100%;
        box-sizing: border-box;
        transition: border-color 0.2s;
    }
    
    input:focus,
    textarea:focus,
    select:focus {
        border-color: var(--primary-color);
        outline: none;
        box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
    }
    
    .button, .btn, button[type="submit"] {
        min-height: var(--touch-target);
        padding: 14px 24px;
        font-size: 16px;
        font-weight: 600;
        border-radius: 10px;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        cursor: pointer;
        transition: transform 0.1s, opacity 0.2s;
    }
    
    .button:active, .btn:active, button:active {
        transform: scale(0.98);
        opacity: 0.9;
    }
    
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    .grid-2-mobile {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important;
    }
    
    table {
        display: none;
    }
    
    .mobile-card-list {
        display: block !important;
    }
}

.med-bd-header {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 12px 15px !important;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

@media (max-width: 768px) {
    .med-bd-header {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .med-bd-header .med-bd-logo {
        font-size: 16px !important;
    }
    
    .med-bd-header .med-bd-nav {
        display: none !important;
    }
    
    .med-bd-header .med-bd-user {
        font-size: 12px !important;
    }
    
    .med-bd-header .med-bd-logout {
        padding: 6px 10px !important;
        font-size: 12px !important;
    }
    
    body {
        padding-top: var(--nav-height) !important;
    }
    
    main {
        margin-top: 0 !important;
    }
}

.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1001;
    padding-bottom: var(--safe-area-bottom);
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex !important;
        justify-content: space-around;
        align-items: center;
        height: var(--bottom-nav-height);
    }
    
    .mobile-bottom-nav a {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        color: #666;
        font-size: 10px;
        font-weight: 500;
        padding: 8px 12px;
        min-width: 60px;
        transition: color 0.2s;
    }
    
    .mobile-bottom-nav a.active {
        color: var(--primary-color);
    }
    
    .mobile-bottom-nav a .nav-icon {
        font-size: 24px;
        margin-bottom: 4px;
    }
    
    .mobile-bottom-nav a .nav-label {
        white-space: nowrap;
    }
}

.mobile-stat-card {
    background: white;
    border-radius: var(--card-radius);
    padding: 20px;
    box-shadow: var(--card-shadow);
    text-align: center;
    transition: transform 0.2s;
}

.mobile-stat-card:active {
    transform: scale(0.98);
}

.mobile-stat-card .stat-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.mobile-stat-card .stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.mobile-stat-card .stat-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-stat-card.success .stat-value { color: var(--success-color); }
.mobile-stat-card.warning .stat-value { color: var(--warning-color); }
.mobile-stat-card.danger .stat-value { color: var(--danger-color); }
.mobile-stat-card.info .stat-value { color: var(--info-color); }

.mobile-action-card {
    background: white;
    border-radius: var(--card-radius);
    padding: 24px 20px;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #333;
    min-height: 120px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.mobile-action-card:active {
    transform: scale(0.97);
}

.mobile-action-card .action-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 12px;
}

.mobile-action-card .action-label {
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

.mobile-action-card.sale .action-icon { background: rgba(40, 167, 69, 0.15); color: var(--success-color); }
.mobile-action-card.purchase .action-icon { background: rgba(0, 115, 170, 0.15); color: var(--primary-color); }
.mobile-action-card.return .action-icon { background: rgba(220, 53, 69, 0.15); color: var(--danger-color); }
.mobile-action-card.inventory .action-icon { background: rgba(23, 162, 184, 0.15); color: var(--info-color); }

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

.mobile-search-container input {
    padding-left: 45px !important;
    padding-right: 45px !important;
}

.mobile-search-container .search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #999;
}

.mobile-search-container .clear-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: none;
    background: #f0f0f0;
    border-radius: 50%;
    font-size: 16px;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-medicine-card {
    background: white;
    border-radius: var(--card-radius);
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: var(--card-shadow);
    border-left: 4px solid var(--primary-color);
    transition: transform 0.1s;
}

.mobile-medicine-card:active {
    transform: scale(0.99);
}

.mobile-medicine-card.out-of-stock {
    border-left-color: var(--danger-color);
    opacity: 0.7;
}

.mobile-medicine-card.low-stock {
    border-left-color: var(--warning-color);
}

.mobile-medicine-card .medicine-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.mobile-medicine-card .medicine-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    flex: 1;
    margin-right: 10px;
}

.mobile-medicine-card .stock-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.mobile-medicine-card .stock-badge.in-stock {
    background: rgba(40, 167, 69, 0.15);
    color: var(--success-color);
}

.mobile-medicine-card .stock-badge.low-stock {
    background: rgba(255, 193, 7, 0.2);
    color: #c79100;
}

.mobile-medicine-card .stock-badge.out-of-stock {
    background: rgba(220, 53, 69, 0.15);
    color: var(--danger-color);
}

.mobile-medicine-card .medicine-details {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
}

.mobile-medicine-card .medicine-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-medicine-card .medicine-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
}

.mobile-medicine-card .add-to-cart-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 115, 170, 0.4);
}

.mobile-medicine-card .add-to-cart-btn:active {
    transform: scale(0.95);
}

.mobile-medicine-card .add-to-cart-btn:disabled {
    background: #ccc;
    box-shadow: none;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .mobile-cart-container,
    .mobile-cart-panel {
        position: fixed;
        bottom: var(--bottom-nav-height);
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
        border-radius: 20px 20px 0 0;
        z-index: 100;
        max-height: 70vh;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        transform: translateY(calc(100% - 70px));
        transition: transform 0.3s ease;
    }
    
    .mobile-cart-container.expanded,
    .mobile-cart-panel.expanded {
        transform: translateY(0);
        max-height: calc(100vh - var(--bottom-nav-height) - 60px);
    }
    
    .mobile-cart-toggle {
        width: 40px;
        height: 5px;
        background: #ddd;
        border-radius: 3px;
        margin: 8px auto;
        flex-shrink: 0;
    }
    
    .mobile-cart-header {
        padding: 10px 20px 16px 20px;
        border-bottom: 1px solid #eee;
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
        flex-shrink: 0;
    }
    
    .mobile-cart-header .cart-toggle {
        width: 40px;
        height: 5px;
        background: #ddd;
        border-radius: 3px;
        position: absolute;
        top: 8px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .mobile-cart-header .cart-summary {
        font-size: 14px;
        color: #666;
    }
    
    .mobile-cart-header .cart-total,
    .mobile-cart-header .cart-total-display {
        font-size: 20px;
        font-weight: 700;
        color: var(--primary-color);
    }
    
    .mobile-cart-header .cart-count {
        background: var(--primary-color);
        color: white;
        width: 28px;
        height: 28px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 600;
        font-size: 14px;
    }
    
    .mobile-cart-items {
        flex: 1;
        overflow-y: auto;
        padding: 10px 20px;
        min-height: 0;
        -webkit-overflow-scrolling: touch;
    }
    
    .mobile-empty-cart {
        text-align: center;
        padding: 30px 20px;
        color: #999;
    }
    
    .mobile-empty-cart .empty-icon {
        font-size: 48px;
        margin-bottom: 10px;
    }
    
    .mobile-cart-footer {
        padding: 15px 20px;
        padding-bottom: calc(15px + var(--safe-area-bottom));
        border-top: 1px solid #eee;
        background: white;
        flex-shrink: 0;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    }
    
    .mobile-cart-footer .checkout-btn,
    .mobile-checkout-btn {
        width: 100%;
        padding: 16px;
        background: var(--success-color);
        color: white;
        border: none;
        border-radius: 12px;
        font-size: 16px;
        font-weight: 600;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        cursor: pointer;
    }
    
    .mobile-checkout-btn:active {
        transform: scale(0.98);
        background: #1e7e34;
    }
    
    .mobile-cart-summary input[type="text"] {
        background: #f8f9fa;
    }
}

.mobile-cart-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.mobile-cart-item .item-info {
    flex: 1;
}

.mobile-cart-item .item-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.mobile-cart-item .item-price {
    font-size: 12px;
    color: #666;
}

.mobile-cart-item .qty-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-cart-item .qty-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid #ddd;
    background: white;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.mobile-cart-item .qty-btn:active {
    background: #f0f0f0;
}

.mobile-cart-item .qty-value {
    font-size: 16px;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
}

.mobile-cart-item .item-total {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    margin-left: 15px;
    min-width: 70px;
    text-align: right;
}

.mobile-cart-item .remove-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
    font-size: 14px;
    margin-left: 10px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .mobile-inventory-card {
        background: white;
        border-radius: var(--card-radius);
        padding: 16px;
        margin-bottom: 12px;
        box-shadow: var(--card-shadow);
    }
    
    .mobile-inventory-card .inv-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 10px;
    }
    
    .mobile-inventory-card .inv-name {
        font-size: 16px;
        font-weight: 600;
        flex: 1;
    }
    
    .mobile-inventory-card .inv-generic {
        font-size: 13px;
        color: #666;
        margin-bottom: 12px;
    }
    
    .mobile-inventory-card .inv-details {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        margin-bottom: 12px;
    }
    
    .mobile-inventory-card .inv-detail {
        text-align: center;
        padding: 8px;
        background: #f8f9fa;
        border-radius: 8px;
    }
    
    .mobile-inventory-card .inv-detail-value {
        font-size: 16px;
        font-weight: 600;
        color: #333;
    }
    
    .mobile-inventory-card .inv-detail-label {
        font-size: 10px;
        color: #999;
        text-transform: uppercase;
    }
    
    .mobile-inventory-card .inv-actions {
        display: flex;
        gap: 10px;
    }
    
    .mobile-inventory-card .inv-btn {
        flex: 1;
        padding: 10px;
        border-radius: 8px;
        border: none;
        font-size: 13px;
        font-weight: 500;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
    }
    
    .mobile-inventory-card .inv-btn.edit {
        background: rgba(0, 115, 170, 0.1);
        color: var(--primary-color);
    }
    
    .mobile-inventory-card .inv-btn.delete {
        background: rgba(220, 53, 69, 0.1);
        color: var(--danger-color);
    }
}

@media (max-width: 768px) {
    .mobile-form-section {
        background: white;
        border-radius: var(--card-radius);
        padding: 20px;
        margin-bottom: 16px;
        box-shadow: var(--card-shadow);
    }
    
    .mobile-form-section h2 {
        font-size: 18px;
        margin: 0 0 16px 0;
        padding-bottom: 12px;
        border-bottom: 1px solid #eee;
    }
    
    .mobile-form-group {
        margin-bottom: 16px;
    }
    
    .mobile-form-group label {
        display: block;
        font-size: 13px;
        font-weight: 600;
        color: #333;
        margin-bottom: 6px;
    }
    
    .mobile-form-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .mobile-form-submit {
        position: fixed;
        bottom: calc(var(--bottom-nav-height) + var(--safe-area-bottom));
        left: 0;
        right: 0;
        padding: 15px 20px;
        background: white;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
        z-index: 50;
    }
}

@media (max-width: 768px) {
    .mobile-login-container {
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 30px 20px;
        background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    }
    
    .mobile-login-container .login-card {
        background: white;
        border-radius: 20px;
        padding: 32px 24px;
        box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    }
    
    .mobile-login-container .login-logo {
        text-align: center;
        margin-bottom: 30px;
    }
    
    .mobile-login-container .login-logo h1 {
        font-size: 28px !important;
        color: var(--primary-color);
        margin-bottom: 4px;
    }
    
    .mobile-login-container .login-logo p {
        color: #666;
        font-size: 14px;
    }
    
    .mobile-login-container .login-form .form-group {
        margin-bottom: 20px;
    }
    
    .mobile-login-container .login-form input {
        width: 100%;
        padding: 14px 16px;
        border: 1.5px solid #e0e0e0;
        border-radius: 12px;
        font-size: 16px;
    }
    
    .mobile-login-container .login-btn {
        width: 100%;
        padding: 16px;
        background: var(--primary-color);
        color: white;
        border: none;
        border-radius: 12px;
        font-size: 16px;
        font-weight: 600;
        margin-top: 10px;
    }
    
    .mobile-login-container .demo-credentials {
        margin-top: 24px;
        padding-top: 20px;
        border-top: 1px solid #eee;
        text-align: center;
    }
    
    .mobile-login-container .demo-credentials p {
        font-size: 12px;
        color: #999;
        margin-bottom: 8px;
    }
    
    .mobile-login-container .demo-credentials code {
        display: inline-block;
        background: #f5f5f5;
        padding: 6px 12px;
        border-radius: 6px;
        font-size: 13px;
        margin: 3px;
    }
}

@media (max-width: 768px) {
    .mobile-dashboard-header {
        background: white;
        padding: 20px;
        margin: -15px -15px 15px -15px;
        border-radius: 0 0 20px 20px;
        box-shadow: var(--card-shadow);
    }
    
    .mobile-dashboard-header .shop-info {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 16px;
    }
    
    .mobile-dashboard-header .shop-avatar {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 24px;
    }
    
    .mobile-dashboard-header .shop-name {
        font-size: 18px;
        font-weight: 600;
    }
    
    .mobile-dashboard-header .shop-details {
        font-size: 12px;
        color: #666;
    }
    
    .mobile-dashboard-header .today-date {
        font-size: 13px;
        color: var(--primary-color);
        font-weight: 500;
    }
}

.mobile-quick-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.mobile-quick-stat {
    background: white;
    padding: 16px;
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-quick-stat .qs-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.mobile-quick-stat .qs-icon.sales { background: rgba(40, 167, 69, 0.15); }
.mobile-quick-stat .qs-icon.purchase { background: rgba(0, 115, 170, 0.15); }
.mobile-quick-stat .qs-icon.cash { background: rgba(255, 193, 7, 0.2); }
.mobile-quick-stat .qs-icon.expense { background: rgba(220, 53, 69, 0.15); }

.mobile-quick-stat .qs-content {}
.mobile-quick-stat .qs-label {
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
}
.mobile-quick-stat .qs-value {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.mobile-action-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.mobile-section {
    background: white;
    border-radius: var(--card-radius);
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: var(--card-shadow);
}

.mobile-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.mobile-section-header h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.mobile-section-header .view-all {
    font-size: 13px;
    color: var(--primary-color);
    text-decoration: none;
}

.mobile-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.mobile-list-item:last-child {
    border-bottom: none;
}

@media screen and (min-width: 769px) and (max-width: 1024px) {
    main {
        padding: 20px !important;
    }
    
    .grid-2 {
        grid-template-columns: 1fr 1fr !important;
    }
    
    .grid-3 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .grid-4 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .mobile-bottom-nav {
        display: none !important;
    }
    
    body {
        padding-bottom: 0 !important;
    }
}

@media (min-width: 1025px) {
    .mobile-bottom-nav {
        display: none !important;
    }
    
    .mobile-cart-container,
    .mobile-cart-panel {
        display: none !important;
    }
    
    body {
        padding-bottom: 0 !important;
    }
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-slide-up {
    animation: slideUp 0.3s ease forwards;
}

.animate-fade-in {
    animation: fadeIn 0.2s ease forwards;
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 8px;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.toast {
    position: fixed;
    bottom: calc(var(--bottom-nav-height) + 20px);
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 9999;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    animation: toast-in 0.3s ease forwards;
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.toast.success { background: var(--success-color); }
.toast.error { background: var(--danger-color); }
.toast.warning { background: var(--warning-color); color: #333; }
