/* ==========================================
   COFFEE SHOP DEMO - COMPLETE PROFESSIONAL STYLES
   Coffee theme with brown/warm colors
   ========================================== */

:root {
    --demo-primary: #8B4513;
    --demo-primary-dark: #6F3609;
    --demo-secondary: #D2691E;
    --demo-bg: #f8fafc;
    --demo-card-bg: #ffffff;
    --demo-border: #e2e8f0;
    --demo-text: #1e293b;
    --demo-text-light: #64748b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--demo-bg);
    color: var(--demo-text);
    line-height: 1.6;
}

/* ==========================================
   LOGIN PAGE
   ========================================== */

body.login-page {
    background: linear-gradient(135deg, #f5deb3 0%, #deb887 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    max-width: 480px;
    width: 100%;
    overflow: hidden;
}

.login-header {
    text-align: center;
    padding: 48px 40px 32px;
    background: white;
}

.logo-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--demo-primary) 0%, var(--demo-primary-dark) 100%);
    border-radius: 20px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-header h1 {
    font-size: 1.875rem;
    color: var(--demo-text);
    margin-bottom: 8px;
    font-weight: 700;
}

.login-header p {
    color: var(--demo-text-light);
    font-size: 1rem;
}

.login-body {
    padding: 0 40px 40px;
}

.error-message {
    background: #fee2e2;
    color: #991b1b;
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 24px;
    font-size: 0.938rem;
    border-left: 4px solid #dc2626;
    font-weight: 500;
}

.demo-credentials {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 28px;
}

.demo-credentials strong {
    display: block;
    color: var(--demo-text);
    margin-bottom: 12px;
    font-size: 0.938rem;
    font-weight: 700;
}

.demo-credentials .creds {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 1.125rem;
}

.demo-credentials code {
    background: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    color: #f59e0b;
    font-weight: 700;
    font-size: 1.125rem;
}

.demo-credentials .separator {
    color: var(--demo-text-light);
    font-weight: 600;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 0.938rem;
    font-weight: 600;
    color: var(--demo-text);
    margin-bottom: 10px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px 18px;
    border: 2px solid var(--demo-border);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--demo-primary);
    box-shadow: 0 0 0 4px rgba(139, 69, 19, 0.1);
}

.form-group input::placeholder {
    color: #94a3b8;
}

.login-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--demo-primary) 0%, var(--demo-primary-dark) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 12px;
    letter-spacing: 0.3px;
}

.login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(139, 69, 19, 0.35);
}

.login-btn:active {
    transform: translateY(-1px);
}

.back-link {
    text-align: center;
    padding: 28px;
    border-top: 2px solid #f1f5f9;
}

.back-link a {
    color: var(--demo-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
}

.back-link a:hover {
    color: var(--demo-primary-dark);
    text-decoration: underline;
}

/* ==========================================
   DEMO NAVIGATION
   ========================================== */

.demo-nav {
    background: white;
    border-bottom: 2px solid var(--demo-border);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.demo-nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.demo-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.demo-logo h2 {
    font-size: 1.5rem;
    color: var(--demo-text);
    margin: 0;
    font-weight: 700;
}

.demo-badge {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.demo-menu {
    display: flex;
    list-style: none;
    gap: 8px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.demo-menu li a {
    display: block;
    padding: 10px 20px;
    color: var(--demo-text-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 8px;
    transition: all 0.3s;
}

.demo-menu li a:hover {
    background: var(--demo-bg);
    color: var(--demo-primary);
}

.demo-menu li a.active {
    background: var(--demo-primary);
    color: white;
}

.logout-btn {
    color: #dc2626 !important;
}

.logout-btn:hover {
    background: #fee2e2 !important;
    color: #dc2626 !important;
}

/* ==========================================
   MAIN CONTAINER
   ========================================== */

.demo-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

.demo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.demo-header h1 {
    font-size: 2.5rem;
    color: var(--demo-text);
    margin: 0;
    font-weight: 700;
}

.demo-header p {
    color: var(--demo-text-light);
    margin: 8px 0 0 0;
    font-size: 1rem;
}

/* ==========================================
   STATS CARDS
   ========================================== */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 2px solid var(--demo-border);
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.stat-card.brown {
    border-left: 4px solid #8B4513;
}

.stat-card.orange {
    border-left: 4px solid #f59e0b;
}

.stat-card.green {
    border-left: 4px solid #10b981;
}

.stat-card.blue {
    border-left: 4px solid #3b82f6;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--demo-text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--demo-text);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-change {
    font-size: 0.875rem;
    color: var(--demo-text-light);
}

/* ==========================================
   CARDS & TABLES
   ========================================== */

.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 2px solid var(--demo-border);
    overflow: hidden;
}

.card-header {
    padding: 20px 24px;
    border-bottom: 2px solid var(--demo-bg);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--demo-text);
    margin: 0;
}

.card-body {
    padding: 24px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: var(--demo-bg);
}

.data-table th {
    text-align: left;
    padding: 16px;
    font-size: 0.813rem;
    font-weight: 700;
    color: var(--demo-text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table td {
    padding: 16px;
    border-top: 1px solid var(--demo-border);
    font-size: 0.938rem;
}

.data-table tbody tr {
    transition: background 0.2s;
}

.data-table tbody tr:hover {
    background: var(--demo-bg);
    cursor: pointer;
}

/* ==========================================
   FILTERS & SEARCH
   ========================================== */

.filters {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.search-box,
.filter-select {
    padding: 12px 16px;
    border: 2px solid var(--demo-border);
    border-radius: 8px;
    font-size: 0.938rem;
    transition: border-color 0.3s;
}

.search-box {
    flex: 1;
    min-width: 280px;
}

.filter-select {
    min-width: 180px;
    background: white;
}

.search-box:focus,
.filter-select:focus {
    outline: none;
    border-color: var(--demo-primary);
}

/* ==========================================
   BADGES & STATUS
   ========================================== */

.status-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.813rem;
    font-weight: 700;
    text-transform: capitalize;
}

.status-badge.pending {
    background: #fef3c7;
    color: #92400e;
}

.status-badge.preparing {
    background: #dbeafe;
    color: #1e40af;
}

.status-badge.ready {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.completed {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.status-badge.low {
    background: #fee2e2;
    color: #991b1b;
}

.status-badge.normal {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.active {
    background: #d1fae5;
    color: #065f46;
}

/* ==========================================
   ALERT BOXES
   ========================================== */

.alert-box {
    padding: 16px;
    border-radius: 10px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-box.warning {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    color: #92400e;
}

.alert-box.danger {
    background: #fee2e2;
    border-left: 4px solid #dc2626;
    color: #991b1b;
}

/* ==========================================
   INVENTORY ITEM
   ========================================== */

.inventory-item {
    background: var(--demo-bg);
    padding: 16px;
    border-radius: 10px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.inventory-item.low-stock {
    border-left: 4px solid #dc2626;
    background: #fee2e2;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 968px) {
    .demo-nav-container {
        flex-direction: column;
        height: auto;
        padding: 15px 20px;
        gap: 15px;
    }

    .demo-menu {
        flex-wrap: wrap;
        justify-content: center;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .demo-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .demo-header h1 {
        font-size: 2rem;
    }

    .filters {
        flex-direction: column;
    }

    .search-box,
    .filter-select {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .demo-container {
        padding: 20px 15px;
    }

    .card {
        border-radius: 8px;
    }

    .card-header,
    .card-body {
        padding: 16px;
    }

    .data-table {
        font-size: 0.875rem;
    }

    .data-table th,
    .data-table td {
        padding: 12px 8px;
    }

    .stat-value {
        font-size: 2rem;
    }

    .demo-header h1 {
        font-size: 1.75rem;
    }

    .login-container {
        border-radius: 16px;
    }

    .login-header,
    .login-body {
        padding: 32px 24px;
    }

    .login-header h1 {
        font-size: 1.5rem;
    }

    .logo-icon {
        width: 64px;
        height: 64px;
    }
}    