@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --secondary-color: #10b981;
    --accent-color: #f59e0b;
    --danger-color: #ef4444;
    --dark-bg: #1f2937;
    --light-bg: #f3f4f6;
    --card-bg: #ffffff;
    --text-main: #111827;
    --text-muted: #6b7280;
    --glass-bg: rgba(255, 255, 255, 0.95);
    --border-radius: 12px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--light-bg);
    color: var(--text-main);
    overflow-x: hidden;
}

/* Glassmorphism Classes */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-lg);
}

/* Card Styling */
.card-custom {
    background: var(--card-bg);
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-custom:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Buttons */
.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary-custom:hover {
    filter: brightness(110%);
    color: white;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.btn-success-custom {
    background: linear-gradient(135deg, var(--secondary-color), #059669);
    color: white;
    border: none;
    border-radius: 8px;
}

.btn-danger-custom {
    background: linear-gradient(135deg, var(--danger-color), #dc2626);
    color: white;
    border: none;
    border-radius: 8px;
}

/* Form Controls */
.form-control-custom {
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    padding: 10px 15px;
}

.form-control-custom:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Sidebar */
.sidebar {
    background: var(--dark-bg);
    color: white;
    min-height: 100vh;
    transition: all 0.3s;
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.7);
    padding: 12px 20px;
    margin: 4px 10px;
    border-radius: 8px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar .nav-link:hover, .sidebar .nav-link.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateX(5px);
}

.sidebar .nav-link i {
    width: 20px;
    text-align: center;
}

/* Dashboard Stats */
.stat-card {
    border-radius: var(--border-radius);
    padding: 20px;
    color: white;
    position: relative;
    overflow: hidden;
}

.stat-card.blue { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.stat-card.green { background: linear-gradient(135deg, #10b981, #059669); }
.stat-card.orange { background: linear-gradient(135deg, #f59e0b, #d97706); }
.stat-card.purple { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }

.stat-card .icon {
    position: absolute;
    right: 15px;
    bottom: 15px;
    opacity: 0.2;
    font-size: 3rem;
    transform: rotate(-15deg);
}

/* POS Screen */
.category-btn {
    border-radius: 20px;
    padding: 8px 16px;
    border: 1px solid #e5e7eb;
    background: white;
    transition: all 0.2s;
    font-weight: 500;
}

.category-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.item-card {
    cursor: pointer;
    border: 1px solid #e5e7eb;
    transition: all 0.2s;
}

.item-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.pos-billing-section {
    height: calc(100vh - 80px);
    overflow-y: auto;
    background: white;
    border-left: 1px solid #e5e7eb;
}

/* Login Page */
.login-body {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    width: 100%;
    max-width: 400px;
}

.login-header {
    background: var(--primary-color);
    padding: 30px;
    text-align: center;
    color: white;
}

.login-form {
    padding: 40px;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        z-index: 1000;
        left: -250px;
    }
    .sidebar.show {
        left: 0;
    }
    .main-content {
        margin-left: 0 !important;
    }
}
