/**
 * SurveyHub - Base CSS
 * 
 * Estilos globais para a aplicação.
 */

/* ========================================
   Variables (Bootstrap override)
   ======================================== */
:root {
    --bs-primary: #0066CC;
    --bs-primary-rgb: 0, 102, 204;
    --bs-success: #5CB85C;
    --bs-warning: #F0AD4E;
    --bs-danger: #D9534F;
    --bs-info: #17A2B8;
    --bs-light: #F8F9FA;
    --bs-dark: #212529;
}

/* ========================================
   Global Styles
   ======================================== */
html {
    height: 100%;
}

body {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

main {
    flex: 1;
}

footer {
    margin-top: auto;
}

/* ========================================
   Typography
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
}

.text-muted {
    color: #6C757D !important;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

.btn-primary {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.btn-primary:hover {
    background-color: #0052A3;
    border-color: #0052A3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.btn-outline-primary:hover {
    transform: translateY(-2px);
}

/* ========================================
   Cards
   ======================================== */
.card {
    border-radius: 12px;
    border: 1px solid #DEE2E6;
    transition: all 0.2s ease-in-out;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.card-header {
    border-radius: 12px 12px 0 0 !important;
}

/* ========================================
   Forms
   ======================================== */
.form-control,
.form-select {
    border-radius: 8px;
    border: 1px solid #DEE2E6;
    padding: 0.625rem 0.875rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.15);
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #495057;
}

.invalid-feedback {
    font-size: 0.875rem;
}

/* ========================================
   Navbar
   ======================================== */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-link {
    font-weight: 500;
    transition: all 0.2s;
}

.nav-link:hover {
    transform: translateY(-1px);
}

/* ========================================
   Alerts
   ======================================== */
.alert {
    border-radius: 8px;
    border-width: 0;
}

.alert-success {
    background-color: #D4EDDA;
    color: #155724;
}

.alert-danger {
    background-color: #F8D7DA;
    color: #721C24;
}

.alert-warning {
    background-color: #FFF3CD;
    color: #856404;
}

.alert-info {
    background-color: #D1ECF1;
    color: #0C5460;
}

/* ========================================
   Utilities
   ======================================== */
.text-primary {
    color: var(--bs-primary) !important;
}

.bg-primary {
    background-color: var(--bs-primary) !important;
}

.border-primary {
    border-color: var(--bs-primary) !important;
}

/* Shadow utilities */
.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.shadow {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* ========================================
   Loading Spinner (opcional)
   ======================================== */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--bs-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    h1, .h1 {
        font-size: 2rem;
    }
    
    h2, .h2 {
        font-size: 1.75rem;
    }
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    .navbar,
    footer,
    .btn,
    .no-print {
        display: none !important;
    }
}

