:root {
    --gm-primary: #0284c7;
    --gm-primary-dark: #0369a1;
    --gm-sidebar: #0f172a;
    --gm-sidebar-hover: #1e293b;
    --gm-bg: #f1f5f9;
}

body {
    background-color: var(--gm-bg);
    font-family: 'Segoe UI', sans-serif;
}

/* Sidebar */
.sidebar {
    width: 240px;
    min-height: 100vh;
    background: var(--gm-sidebar);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    transition: width 0.25s;
}

.sidebar-brand {
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid #1e293b;
    text-decoration: none;
    display: block;
}

.sidebar-brand:hover { opacity: 0.85; }

.sidebar .nav-link {
    color: #94a3b8;
    padding: 0.65rem 1rem;
    border-radius: 6px;
    margin: 2px 8px;
    font-size: 0.92rem;
    transition: all 0.2s;
}

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

.sidebar .nav-link i { width: 20px; }

/* Main content */
.main-content {
    margin-left: 240px;
    padding: 1.5rem;
    min-height: 100vh;
}

/* Cards */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.card-header {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    border-radius: 12px 12px 0 0 !important;
    font-weight: 600;
    padding: 1rem 1.25rem;
}

/* Stats cards */
.stat-card {
    border-radius: 12px;
    padding: 1.25rem;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.stat-card .stat-icon {
    font-size: 2.5rem;
    opacity: 0.2;
    position: absolute;
    right: 1rem;
    bottom: 0.5rem;
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.stat-card .stat-label {
    font-size: 0.85rem;
    opacity: 0.85;
}

.bg-teal   { background: linear-gradient(135deg, #0284c7, #0369a1); }
.bg-indigo { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.bg-amber  { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.bg-emerald { background: linear-gradient(135deg, #10b981, #059669); }

/* Badges */
.badge-confirmado { background:#dcfce7; color:#166534; }
.badge-pendente   { background:#fef9c3; color:#854d0e; }
.badge-cancelado  { background:#fee2e2; color:#991b1b; }

/* Topbar */
.topbar {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: 0.75rem 1.5rem;
    margin: -1.5rem -1.5rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.topbar h5 { margin: 0; font-weight: 600; }

/* Buttons */
.btn-primary {
    background: var(--gm-primary);
    border-color: var(--gm-primary);
}

.btn-primary:hover {
    background: var(--gm-primary-dark);
    border-color: var(--gm-primary-dark);
}

/* Flash messages */
.flash-overlay {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 600px;
    z-index: 9999;
    pointer-events: none;
}

.flash-message {
    font-size: 0.95rem;
    padding: 12px 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.25);
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
    pointer-events: auto;
}

.flash-show { opacity: 1 !important; }
.flash-hide { opacity: 0 !important; }

/* QR Code */
.qr-container {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    max-width: 320px;
    margin: 0 auto;
}

/* Table */
.table th {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    font-weight: 600;
    border-top: none;
}

/* Calendar container */
#calendar { background: #fff; border-radius: 12px; padding: 1rem; }

/* Responsive */
@media (max-width: 768px) {
    .sidebar { width: 0; overflow: hidden; }
    .main-content { margin-left: 0; }
}
