/* =====================================================
   Workshop Booking System - Estilos Globais
   ===================================================== */

:root {
    --primary: #4361ee;
    --primary-dark: #3a0ca3;
    --secondary: #7209b7;
    --accent: #f72585;
    --success: #06d6a0;
    --warning: #ffd166;
    --danger: #ef476f;
    --dark: #1d1d2c;
    --light: #f8f9fa;
    --gray: #6c757d;
    --bg-gradient: linear-gradient(135deg, #4361ee 0%, #7209b7 100%);
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: #f0f2f5;
    color: #333;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }

/* Navbar Admin */
.navbar-admin {
    background: var(--bg-gradient);
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    padding: 0.8rem 1.5rem;
}
.navbar-admin .navbar-brand {
    color: #fff;
    font-weight: 700;
    font-size: 1.3rem;
}
.navbar-admin .nav-link {
    color: rgba(255,255,255,0.85);
    font-weight: 500;
    transition: color 0.2s;
    padding: 0.5rem 1rem;
}
.navbar-admin .nav-link:hover,
.navbar-admin .nav-link.active {
    color: #fff;
}

/* Cards Dashboard */
.stat-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
}
.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.stat-card .card-body {
    padding: 1.5rem;
}
.stat-card .stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}
.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
}
.stat-card .stat-label {
    color: var(--gray);
    font-size: 0.85rem;
    font-weight: 500;
}

/* Tabelas */
.table-modern {
    border-collapse: separate;
    border-spacing: 0;
}
.table-modern thead th {
    background: var(--dark);
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.9rem 1rem;
    border: none;
}
.table-modern thead th:first-child { border-radius: 8px 0 0 0; }
.table-modern thead th:last-child { border-radius: 0 8px 0 0; }
.table-modern tbody td {
    padding: 0.8rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #e9ecef;
}
.table-modern tbody tr:hover {
    background-color: rgba(67, 97, 238, 0.04);
}

/* Botões */
.btn-gradient {
    background: var(--bg-gradient);
    color: #fff;
    border: none;
    font-weight: 600;
    transition: opacity 0.2s, transform 0.1s;
}
.btn-gradient:hover {
    color: #fff;
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Modais */
.modal-header-gradient {
    background: var(--bg-gradient);
    color: #fff;
}
.modal-header-gradient .btn-close {
    filter: brightness(0) invert(1);
}

/* Login */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-gradient);
}
.login-card {
    max-width: 420px;
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    border: none;
}
.login-card .card-body {
    padding: 2.5rem;
}
.login-logo {
    font-size: 2rem;
    font-weight: 800;
    background: var(--bg-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Badges */
.badge-ativo {
    background-color: var(--success);
    color: #fff;
}
.badge-inativo {
    background-color: var(--danger);
    color: #fff;
}
.badge-cancelado {
    background-color: var(--gray);
    color: #fff;
}

/* =====================================================
   Área Pública
   ===================================================== */

.hero-section {
    background: var(--bg-gradient);
    color: #fff;
    padding: 4rem 0 3rem;
    position: relative;
    overflow: hidden;
}
.hero-section::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    height: 100px;
    background: #f0f2f5;
    border-radius: 50% 50% 0 0;
}
.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
}
.hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Stepper */
.stepper {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
    gap: 0;
}
.stepper-step {
    display: flex;
    align-items: center;
}
.stepper-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #dee2e6;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s;
    position: relative;
    z-index: 1;
}
.stepper-step.active .stepper-circle {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.2);
}
.stepper-step.completed .stepper-circle {
    background: var(--success);
    color: #fff;
}
.stepper-line {
    width: 60px;
    height: 3px;
    background: #dee2e6;
    margin: 0 5px;
    transition: background 0.3s;
}
.stepper-line.active {
    background: var(--success);
}
.stepper-label {
    position: absolute;
    bottom: -22px;
    white-space: nowrap;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--gray);
}
.stepper-step.active .stepper-label {
    color: var(--primary);
}

/* Workshop Cards */
.workshop-card {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1.2rem;
    cursor: pointer;
    transition: all 0.25s;
    position: relative;
    background: #fff;
}
.workshop-card:hover:not(.disabled):not(.selected) {
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.1);
    transform: translateY(-2px);
}
.workshop-card.selected {
    border-color: var(--primary);
    background: rgba(67, 97, 238, 0.05);
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.15);
}
.workshop-card.selected::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}
.workshop-card.disabled {
    opacity: 0.45;
    cursor: not-allowed;
    background: #f8f9fa;
}
.workshop-card .ws-title {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.4rem;
    color: var(--dark);
}
.workshop-card .ws-speaker {
    color: var(--gray);
    font-size: 0.85rem;
}
.workshop-card .ws-slots {
    font-size: 0.8rem;
    font-weight: 600;
}
.ws-slots.text-danger { color: var(--danger) !important; }
.ws-slots.text-warning { color: #e67e22 !important; }
.ws-slots.text-success { color: var(--success) !important; }

.workshop-card.esgotado {
    opacity: 0.45;
    cursor: not-allowed;
    background: #f8f9fa;
}
.workshop-card.esgotado .ws-title::after {
    content: ' (ESGOTADO)';
    color: var(--danger);
    font-size: 0.75rem;
}

/* Resumo */
.resumo-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}
.resumo-item {
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
}
.resumo-item:last-child {
    border-bottom: none;
}

/* Voucher */
.voucher-container {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}
.voucher-header {
    background: var(--bg-gradient);
    color: #fff;
    padding: 2rem;
    text-align: center;
}
.voucher-body {
    padding: 2rem;
}
.voucher-code {
    background: #f8f9fa;
    border: 2px dashed var(--primary);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 3px;
    color: var(--primary);
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    display: none;
}
.loading-overlay.active { display: flex; }

/* Responsividade */
@media (max-width: 768px) {
    .hero-title { font-size: 1.8rem; }
    .stepper-line { width: 30px; }
    .stat-card .stat-value { font-size: 1.5rem; }
}
