@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --primary: #2563eb;
    --primary-alt: #1d4ed8;
    --secondary: #0ea5e9;
    --accent: #f59e0b;
    --danger: #ef4444;
    --background: #ffffff;
    --surface: #f8fafc;
    --glass: rgba(255, 255, 255, 0.95);
    --glass-border: rgb(205, 221, 255);
    --text: #0f172a;
    --text-muted: #64748b;
    --shadow: 0 4px 15px rgba(37, 99, 235, 0.08);
    --radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background: var(--background);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

.glass {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-alt));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary), #059669);
    color: white;
}

.input-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

input,
select,
textarea {
    width: 100%;
    padding: 12px 16px;
    background: #ffffff;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    color: var(--text);
    outline: none;
    transition: all 0.3s ease;
}

input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}

/* Auth Page */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.auth-card {
    width: 100%;
    max-width: 400px;
    padding: 40px;
    text-align: center;
}

.logo-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary);
}

/* Layout */
.app-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    padding: 20px;
    border-right: 1px solid var(--glass-border);
}

.main-content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}

/* Grid & Cards */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.product-card {
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

.product-photo {
    width: 100%;
    height: 140px;
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 15px;
}

/* Tables */
.table-container {
    margin-top: 20px;
    overflow-x: auto;
}

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

th,
td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

th {
    color: var(--text-muted);
    font-weight: 500;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Print Specific */
@media screen {
    .print-only {
        display: none !important;
    }
}

@media print {
    body {
        background: #fff !important;
        padding: 0;
        margin: 0;
    }

    body> :not(#invoice-slip) {
        display: none !important;
    }

    #invoice-slip {
        display: block !important;
        width: 80mm;
        margin: 0;
        padding: 0;
        color: #000 !important;
        background: #fff !important;
        font-family: 'Courier New', Courier, monospace;
        font-size: 10pt;
    }

    .no-print {
        display: none !important;
    }
}