:root {
    --sidebar-bg: #1a202c;
    --sidebar-hover: #2d3748;
    --primary: #2c5282;
    --primary-dark: #1a365d;
    --primary-light: #3182ce;
    --success: #38a169;
    --warning: #d69e2e;
    --danger: #e53e3e;
    --text-light: #e2e8f0;
    --text-muted: #a0aec0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f7fafc;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 100vh;
    background-color: var(--sidebar-bg);
    color: var(--text-light);
    z-index: 1000;
    overflow-y: auto;
    transition: transform 0.3s ease;
}

.sidebar-brand {
    padding: 1.25rem 1.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    border-bottom: 1px solid var(--sidebar-hover);
    color: white;
    text-decoration: none;
    display: block;
}

.sidebar-nav {
    padding: 1rem 0;
}

.sidebar-nav .nav-link {
    color: var(--text-muted);
    padding: 0.6rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.active {
    color: white;
    background-color: var(--sidebar-hover);
}

.sidebar-nav .nav-section {
    padding: 0.75rem 1.5rem 0.25rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    font-weight: 600;
}

/* Main content */
.main-content {
    margin-left: 260px;
    min-height: 100vh;
}

.top-navbar {
    background-color: white;
    border-bottom: 1px solid #e2e8f0;
    padding: 0.75rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.content-area {
    padding: 1.5rem;
}

/* Stats Cards */
.stat-card {
    background: white;
    border-radius: 0.75rem;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border-left: 4px solid var(--primary);
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.stat-card .stat-label {
    color: #718096;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

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

/* Wizard Steps */
.wizard-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.wizard-steps li {
    flex: 1;
    text-align: center;
    position: relative;
    counter-increment: step;
}

.wizard-steps li::before {
    content: counter(step);
    display: block;
    width: 36px;
    height: 36px;
    line-height: 36px;
    border-radius: 50%;
    background-color: #e2e8f0;
    color: #718096;
    margin: 0 auto 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.wizard-steps li::after {
    content: '';
    position: absolute;
    top: 18px;
    left: calc(50% + 18px);
    width: calc(100% - 36px);
    height: 2px;
    background-color: #e2e8f0;
}

.wizard-steps li:last-child::after {
    display: none;
}

.wizard-steps li.active::before {
    background-color: var(--primary);
    color: white;
}

.wizard-steps li.completed::before {
    background-color: var(--success);
    color: white;
    content: '\2713';
}

.wizard-steps li.completed::after {
    background-color: var(--success);
}

.wizard-steps li .step-label {
    font-size: 0.75rem;
    color: #718096;
}

.wizard-steps li.active .step-label {
    color: var(--primary);
    font-weight: 600;
}

/* Status Badges */
.badge-status-DRAFT { background-color: #6c757d; color: white; }
.badge-status-PENDING { background-color: #fd7e14; color: white; }
.badge-status-ISSUED { background-color: #17a2b8; color: white; }
.badge-status-REGISTERED { background-color: var(--success); color: white; }
.badge-status-CANCELLED { background-color: var(--danger); color: white; }

/* Card styles */
.card-custom {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.card-custom .card-header {
    background-color: var(--primary);
    color: white;
    border-radius: 0.75rem 0.75rem 0 0 !important;
    font-weight: 600;
}

/* Tables */
.table-custom thead {
    background-color: var(--primary);
    color: white;
}

.table-custom thead th {
    border: none;
    font-weight: 500;
    font-size: 0.85rem;
}

/* Login page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
}

.login-card {
    background: white;
    border-radius: 1rem;
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.login-card h2 {
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.show {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0;
    }
    .wizard-steps li .step-label {
        display: none;
    }
}

/* Btn primary override */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}
.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}
