/* Design Moderno e Criativo - Painel de OS */
:root {
    --primary: #2563eb;
    --secondary: #64748b;
    --success: #22c55e;
    --danger: #ef4444;
    --warning: #f59e0b;
    --background: #f8fafc;
    --card-bg: #ffffff;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --border: #e2e8f0;
}

body {
    background-color: var(--background);
    color: var(--text-dark);
    font-family: 'Plus Jakarta Sans', sans-serif;
    letter-spacing: -0.01em;
}

/* Dashboard Layout */
.sidebar {
    background: #fff;
    border-right: 1px solid var(--border);
    height: 100vh;
    position: fixed;
    width: 260px;
    z-index: 1000;
    transition: transform 0.3s ease-in-out;
}

.main-content {
    margin-left: 260px;
    padding: 2rem;
    transition: margin-left 0.3s ease-in-out;
}

/* Mobile Sidebar & Layout */
@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
        box-shadow: 10px 0 20px rgba(0,0,0,0.1);
    }
    
    .sidebar.show {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        padding: 1rem;
        padding-top: 5rem; /* Space for mobile navbar */
    }

    /* Mobile Header */
    .mobile-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 60px;
        background: #fff;
        border-bottom: 1px solid var(--border);
        z-index: 900;
        display: flex;
        align-items: center;
        padding: 0 1rem;
        justify-content: space-between;
    }

    .mobile-menu-toggle {
        background: none;
        border: none;
        font-size: 1.5rem;
        color: var(--text-dark);
        padding: 0.5rem;
    }
    
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 999;
        display: none;
        backdrop-filter: blur(2px);
    }
    
    .sidebar-overlay.show {
        display: block;
    }
}

@media (min-width: 993px) {
    .mobile-header, .sidebar-overlay {
        display: none !important;
    }
}

/* Creative Cards */
.glass-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.stat-card {
    padding: 1.5rem;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--border);
    transition: transform 0.2s;
}

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

/* Unified List Styling */
.chamado-item {
    background: #fff;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s;
}

.chamado-item:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Form Styling */
.form-group-modern {
    margin-bottom: 1.5rem;
}

.form-control-modern {
    border-radius: 10px;
    border: 1px solid var(--border);
    padding: 0.75rem 1rem;
    transition: all 0.2s;
}

.form-control-modern:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

/* SMS Verification UI */
.sms-verify-box {
    background: #f1f5f9;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.token-input {
    font-size: 2rem;
    letter-spacing: 0.5rem;
    text-align: center;
    font-weight: 700;
    max-width: 200px;
    margin: 1rem auto;
}

/* Voice Button Floating */
.voice-btn-float {
    background: var(--primary);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.2s;
}

.voice-btn-float:hover {
    transform: scale(1.1);
    background: #1d4ed8;
}

/* Responsive Tables (Card View on Mobile) */
@media (max-width: 768px) {
    .table-responsive-card thead {
        display: none;
    }
    
    .table-responsive-card tbody tr {
        display: block;
        background: #fff;
        border: 1px solid var(--border);
        border-radius: 12px;
        margin-bottom: 1rem;
        padding: 1rem;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    }
    
    .table-responsive-card tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border: none;
        padding: 0.5rem 0;
        border-bottom: 1px solid #f1f5f9;
    }
    
    .table-responsive-card tbody td:last-child {
        border-bottom: none;
    }
    
    .table-responsive-card tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        font-size: 0.85rem;
        color: var(--secondary);
        margin-right: 1rem;
    }
}

/* Checklist Responsive */
@media (max-width: 576px) {
    .checklist-item {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.5rem;
    }
    
    .checklist-item .btn-group {
        width: 100%;
    }
    
    .checklist-item .btn-group .btn {
        flex: 1;
    }
}
