/* Premium Styling for OSPU (Ordem de Serviço Prefeitura Uauá) */
:root {
    --primary-blue: #0b3d91; /* Derivado do brasão */
    --primary-gold: #f2c029; /* Derivado do brasão */
    --dark-bg: #f4f7f6;
    --text-color: #333;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.3);
    --card-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, var(--dark-bg) 0%, #e0eaf5 100%);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Glassmorphism Classes */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--card-shadow);
}

/* Header / Navbar */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: var(--primary-blue);
    color: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-container img {
    height: 50px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.logo-container h1 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    font-weight: 500;
    transition: color var(--transition-speed);
}

.nav-links a:hover {
    color: var(--primary-gold);
}

.btn-primary {
    background-color: var(--primary-gold);
    color: var(--primary-blue);
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: background var(--transition-speed), transform var(--transition-speed);
}

.btn-primary:hover {
    background-color: #ffd659;
    transform: translateY(-2px);
}

.btn-os {
    background-color: #10b981;
    color: white;
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: background var(--transition-speed), transform var(--transition-speed);
    box-shadow: 0 4px 6px rgba(16, 185, 129, 0.2);
}

.btn-os:hover {
    background-color: #059669;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(16, 185, 129, 0.3);
}

.notification-bell {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    color: white;
    text-decoration: none;
    transition: background 0.2s;
}
.notification-bell:hover {
    background: rgba(255,255,255,0.25);
}
.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #ef4444;
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    border: 2px solid var(--primary-blue);
}

/* Landing Page Hero */
.hero {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
}

.hero-content {
    max-width: 800px;
    padding: 3rem;
}

.hero h2 {
    font-size: 2.8rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Login Page */
.login-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-form {
    width: 100%;
    max-width: 400px;
    padding: 2.5rem;
    text-align: center;
}

.login-form h2 {
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #444;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color var(--transition-speed);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(11, 61, 145, 0.1);
}

.btn-block {
    width: 100%;
    font-size: 1.1rem;
}

.alert {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 1rem;
    text-align: left;
}
.alert-error {
    background-color: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
}

/* Dashboard / Kanban Layout */
.dashboard-container {
    padding: 2rem 5%;
    flex: 1;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.dashboard-header h2 {
    color: var(--primary-blue);
}

.kanban-board {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    overflow-x: auto;
    padding-bottom: 1rem;
}

.kanban-column {
    flex: 1;
    min-width: 300px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid var(--glass-border);
}

.column-header {
    font-weight: bold;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-blue);
    display: flex;
    justify-content: space-between;
}

.kanban-card {
    background: #fff;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border-left: 4px solid var(--primary-blue);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.kanban-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.card-title {
    font-weight: bold;
    color: #333;
    margin-bottom: 0.5rem;
}

.card-meta {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 0.5rem;
}

.card-actions {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
}

.btn-small {
    padding: 5px 10px;
    font-size: 0.85rem;
    border-radius: 4px;
    cursor: pointer;
    border: none;
    background: #e2e8f0;
    color: #333;
    transition: background 0.2s;
}
.btn-small:hover { background: #cbd5e1; }
.btn-success { background: #10b981; color: white; }
.btn-success:hover { background: #059669; }

/* Status Badges */
.badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
    color: white;
}
.bg-aberto { background-color: #ef4444; }
.bg-andamento { background-color: #f59e0b; }
.bg-finalizado { background-color: #10b981; }

/* Dashboard layout improvements */
.dashboard-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* FOOTER GLOBAIS (PREMIUM) */
.footer-siep {
    background-color: #1e293b;
    color: #f8fafc;
    font-size: 0.9rem;
    padding: 3rem 0 0 0;
    margin-top: 4rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem 3rem 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer-logo {
    height: 60px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.footer-brand strong {
    font-size: 1.2rem;
    color: #ffffff;
    letter-spacing: 0.05em;
}

.footer-brand span {
    font-size: 0.85rem;
    color: #64748b;
}

.footer-credits {
    color: #e2e8f0;
    line-height: 1.5;
    font-size: 0.85rem;
}

.footer-credits strong {
    color: #ffffff;
}

.footer-title {
    color: #ffffff;
    font-size: 1.05rem;
    margin-bottom: 1.25rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary-gold);
    border-radius: 2px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
    color: #e2e8f0;
}

.footer-links span {
    font-weight: 600;
    color: #ffffff;
    margin-right: 0.25rem;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-links a:hover {
    color: var(--primary-gold);
    padding-left: 5px;
}

.footer-bottom {
    background-color: #0f172a;
    text-align: center;
    padding: 1.5rem;
    font-size: 0.85rem;
    color: #64748b;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Global Buttons & Forms spacing for Mobile Touch */
    .btn-primary, .btn-os, .btn-small {
        padding-top: 12px;
        padding-bottom: 12px;
    }
    .form-group input, .form-group select, .form-group textarea {
        padding: 14px;
    }

    /* Kanban Board Vertical Stacking */
    .kanban-board {
        flex-direction: column;
        gap: 1.5rem;
        align-items: stretch;
    }
    .kanban-column {
        width: 100%;
        min-width: 100%;
        padding: 1.5rem 1rem !important;
        background: rgba(255, 255, 255, 0.8) !important;
        margin-bottom: 1rem;
    }
    .column-header {
        font-size: 1.2rem;
        padding-bottom: 10px;
        margin-bottom: 1.5rem;
    }
    
    /* Login Form Padding */
    .login-form {
        padding: 1.5rem;
    }

    /* Dashboard Stats & Top Bar */
    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    .stat-card {
        padding: 1rem !important;
    }
    .stat-card span {
        font-size: 1.5rem !important;
    }
    .top-bar {
        flex-direction: column;
        align-items: stretch !important;
    }
    .search-bar {
        max-width: 100% !important;
    }
}

/* --- Hamburger Menu Classes --- */
.hamburger-btn {
    display: none;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
}

@media (max-width: 800px) {
    .hamburger-btn {
        display: block;
    }
    
    .header-nav {
        display: none; /* hidden by default on mobile */
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        background: #1e40af;
        position: absolute;
        top: 100%;
        left: 0;
        padding: 0;
        box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
        z-index: 1000;
        gap: 0;
    }
    
    .header-nav.active {
        display: flex; /* toggled via JS */
    }
    
    .header-nav .header-link {
        width: 100%;
        padding: 1rem 1.5rem;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        font-size: 1.05rem;
        text-align: left;
    }
    
    .header-nav .btn-nova-os {
        margin: 1rem 1.5rem;
        width: calc(100% - 3rem);
        text-align: center;
        display: block;
    }
    
    .user-badge-mobile {
        width: 100%;
        padding: 1rem 1.5rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        background: rgba(0,0,0,0.1);
        border-right: none !important;
        margin: 0 !important;
    }
}
