/* Pulse POS 3.2 - Ultimate Design System */
:root {
    --primary: #0a1931;
    --accent: #6366f1;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --bg-main: #f8fafc;
    --border: rgba(0, 0, 0, 0.05);
    --shadow-premium: 0 40px 100px -20px rgba(0, 0, 0, 0.15);
    --glass: rgba(255, 255, 255, 0.9);
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-main);
    color: #1e293b;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

/* Watermark Background */
.pos-container {
    height: 100vh;
    width: 100vw;
    position: relative;
    overflow: hidden;
}

.pos-container::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: url('../../uploads/logo.jpg') no-repeat center;
    background-size: contain;
    opacity: 0.02;
    z-index: 0;
    pointer-events: none;
}

/* Top Navigation Bar */
.user-profile-mini {
    position: fixed;
    top: 1.5rem;
    right: 2rem;
    z-index: 2000;
}

.profile-actions {
    background: var(--glass);
    backdrop-filter: blur(20px);
    padding: 0.6rem 1.2rem;
    border-radius: 28px;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    border: 1px solid rgba(255,255,255,0.4);
}

.profile-avatar {
    width: 45px;
    height: 45px;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    font-size: 1.2rem;
    box-shadow: 0 8px 20px rgba(10, 25, 49, 0.2);
}

.btn-action-ghost {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    padding: 0.6rem 1rem;
    border-radius: 16px;
    transition: 0.3s;
}
.btn-action-ghost:hover { background: rgba(0,0,0,0.04); transform: translateY(-1px); }

/* Slider System */
.view-slider {
    display: flex;
    width: 300vw;
    height: 100vh;
    transition: transform 0.8s cubic-bezier(0.85, 0, 0.15, 1);
    position: relative;
    z-index: 1;
}

.view-page {
    width: 100vw;
    height: 100vh;
    overflow-y: auto;
    padding: 2rem;
    padding-top: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.view-slider.slide-1 { transform: translateX(0); }
.view-slider.slide-2 { transform: translateX(-100vw); }
.view-slider.slide-3 { transform: translateX(-200vw); }

/* Grid UI */
.top-bar { width: 100%; max-width: 1200px; text-align: center; margin-bottom: 5rem; }
.main-title { font-size: 4rem; font-weight: 900; color: var(--primary); letter-spacing: -0.05em; }
.main-subtitle { color: #64748b; font-size: 1.3rem; margin-top: 0.5rem; font-weight: 500; opacity: 0.8; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 3rem;
    width: 100%;
    max-width: 1300px;
}

.box-card {
    background: white;
    border-radius: 50px;
    padding: 3.5rem;
    text-align: center;
    box-shadow: var(--shadow-premium);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    border: 1px solid rgba(0,0,0,0.01);
}
.box-card:hover { transform: translateY(-15px); box-shadow: 0 60px 120px -20px rgba(0,0,0,0.18); }
.box-card.active { background: var(--primary); color: white; }

.box-number { font-size: 0.85rem; font-weight: 800; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.25em; margin-bottom: 2.5rem; }
.box-card.active .box-number { color: rgba(255,255,255,0.3); }

.box-content h3 { font-size: 3rem; font-weight: 900; margin: 0; letter-spacing: -0.02em; }
.box-info { margin-top: 1rem; color: #64748b; font-size: 1.1rem; line-height: 1.5; font-weight: 500; }
.box-card.active .box-info { color: rgba(255,255,255,0.6); }

/* Buttons */
.btn-action {
    width: 100%;
    padding: 1.4rem;
    border-radius: 24px;
    border: none;
    font-weight: 800;
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: #162a4a; transform: scale(1.02); }
.box-card.active .btn-action { background: white; color: var(--primary); }

.btn-action-icon {
    width: 45px;
    height: 45px;
    border-radius: 14px;
    border: none;
    background: #f1f5f9;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
}
.btn-action-icon:hover { background: var(--danger); color: white; transform: rotate(90deg); }

/* Wizard & Forms */
.service-form-card {
    width: 100%;
    max-width: 1100px;
    background: white;
    border-radius: 50px;
    padding: 5rem;
    box-shadow: 0 60px 150px rgba(0,0,0,0.12);
    position: relative;
    border: 1px solid rgba(0,0,0,0.01);
}

.wizard-steps { display: flex; justify-content: center; gap: 4rem; margin-bottom: 4rem; }
.wizard-step { display: flex; flex-direction: column; align-items: center; gap: 12px; opacity: 0.3; transition: 0.4s; cursor: default; }
.wizard-step.active { opacity: 1; transform: scale(1.1); }

.wizard-step span {
    width: 55px;
    height: 55px;
    background: #f1f5f9;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 900;
    font-size: 1.3rem;
}
.wizard-step.active span { background: var(--accent); color: white; box-shadow: 0 0 0 8px rgba(99, 102, 241, 0.1); }
.wizard-step p { font-size: 0.85rem; font-weight: 800; text-transform: uppercase; color: var(--primary); }

.form-step { display: none; }
.form-step.active { display: block; animation: slideIn 0.6s cubic-bezier(0.23, 1, 0.32, 1); }

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

/* Inputs */
.input-group { margin-bottom: 2rem; text-align: left; }
.input-label { display: block; font-size: 0.8rem; font-weight: 800; color: #94a3b8; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.15em; }
.form-input {
    width: 100%;
    padding: 1.4rem 1.8rem;
    border-radius: 22px;
    border: 2px solid #f1f5f9;
    background: #f8fafc;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary);
    transition: 0.3s;
}
.form-input:focus { border-color: var(--accent); background: white; box-shadow: 0 15px 30px rgba(99, 102, 241, 0.05); }

/* Tables */
.pulse-table { width: 100%; border-collapse: separate; border-spacing: 0 12px; }
.pulse-table td { padding: 1.8rem; background: #f8fafc; border-radius: 20px; font-weight: 600; }
.pulse-table b { color: var(--primary); font-weight: 800; }

/* Details View Specials */
.details-summary-card { background: #f8fafc; border-radius: 40px; padding: 3rem; border: 1px solid rgba(0,0,0,0.02); }

.payment-box {
    padding: 2.5rem;
    border-radius: 30px;
    background: white;
    border: 2px solid #f1f5f9;
    text-align: center;
    cursor: pointer;
    font-weight: 900;
    font-size: 1.1rem;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #64748b;
}
.payment-box.active { border-color: var(--accent); background: white; color: var(--primary); box-shadow: 0 20px 40px rgba(99, 102, 241, 0.12); transform: translateY(-5px); }

/* Status Badges */
.status-badge { display: inline-flex; align-items: center; padding: 0.8rem 1.6rem; border-radius: 18px; font-weight: 900; font-size: 0.85rem; letter-spacing: 0.05em; }
.status-badge.active { background: #dcfce7; color: #15803d; }

/* Global Alerts */
.msg-alert {
    position: fixed;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%) translateY(120px);
    background: var(--primary);
    color: white;
    padding: 1.5rem 3rem;
    border-radius: 28px;
    font-weight: 800;
    z-index: 10000;
    transition: 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 30px 60px rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    gap: 15px;
}
.msg-alert.show { transform: translateX(-50%) translateY(0); }
.msg-success { background: var(--success); }
.msg-error { background: var(--danger); }

/* Scrollbar Clean */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #cbd5e1; }
