:root {
    --bg-dark: #000000;
    --bg-card: #1a1a1a;
    --red-primary: #ffffff;
    --red-glow: rgba(255, 255, 255, 0.6);
    --blue-primary: #333333;
    --blue-glow: rgba(51, 51, 51, 0.6);
    --text-primary: #ffffff;
    --text-secondary: #999999;
    --border-color: #333333;
    --accent-gray: #666666;
}

body {
    background-color: #000000;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Glassmorphism Navbar */
.navbar {
    background: linear-gradient(90deg, #000000 0%, #1a1a1a 50%, #000000 100%) !important;
    backdrop-filter: blur(10px);
    border-bottom: 3px solid #ffffff;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.navbar-brand {
    font-weight: 800;
    letter-spacing: 2px;
    color: #fff !important;
}

.nav-link {
    color: var(--text-secondary) !important;
    transition: 0.3s;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin: 0 10px;
}

.nav-link:hover, .nav-link.active {
    color: #ffffff !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    border-bottom: 2px solid #ffffff;
}

/* Buttons */
.btn-military {
    background-color: #1a1a1a;
    border: 2px solid #ffffff;
    color: #ffffff;
    text-transform: uppercase;
    font-weight: 600;
    padding: 10px 20px;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.btn-military:hover {
    background-color: #ffffff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
    color: #000000;
    border-color: #ffffff;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(26, 26, 26, 0.9) 50%, rgba(0, 0, 0, 0.98) 100%), url('../logo/logobaep.jpg') no-repeat center center;
    background-size: 400px;
    position: relative;
    border-bottom: 3px solid #ffffff;
}

.hero h1 {
    font-size: 5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.hero h1 span {
    color: #ffffff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.9), 0 0 40px rgba(255, 255, 255, 0.6);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 30px;
}

/* Cards */
.military-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    border: 2px solid #333333;
    border-top: 4px solid #ffffff;
    border-left: 2px solid #666666;
    padding: 20px;
    transition: 0.3s;
    height: 100%;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.military-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3), 0 4px 15px rgba(255, 255, 255, 0.2);
    border-color: #ffffff;
    border-left-color: #ffffff;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
}

.military-card h3 {
    text-transform: uppercase;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

/* Auth Pages */
.auth-bg {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.98) 0%, rgba(26, 26, 26, 0.95) 100%), url('../logo/logobaep.jpg') no-repeat center center;
    background-size: 300px;
}

.auth-box {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.98) 0%, rgba(10, 10, 10, 0.98) 100%);
    backdrop-filter: blur(15px);
    padding: 40px;
    border: 2px solid #333333;
    border-top: 5px solid #ffffff;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 8px 32px rgba(255, 255, 255, 0.2), 0 4px 16px rgba(255, 255, 255, 0.1);
}

.auth-box .form-control {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid #333333;
    color: #fff;
}

.auth-box .form-control:focus {
    border-color: #ffffff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #000000;
}
::-webkit-scrollbar-thumb {
    background: #ffffff;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #cccccc;
}

/* Sidebar for panels */
.sidebar {
    height: 100vh;
    background: linear-gradient(180deg, #1a1a1a 0%, #000000 100%);
    border-right: 3px solid #ffffff;
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    padding-top: 80px;
    box-shadow: 4px 0 15px rgba(255, 255, 255, 0.2);
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 15px 20px;
    display: block;
    transition: 0.3s;
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 600;
    border-left: 3px solid transparent;
}

.sidebar a:hover, .sidebar a.active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-left-color: #ffffff;
}

.main-content {
    margin-left: 250px;
    padding: 80px 30px 30px;
}

/* Badges */
.badge-cargo {
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
}

.badge-diretoria { 
    background: linear-gradient(90deg, #ffffff 0%, #cccccc 100%); 
    color: #000000;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.4);
    border: 1px solid #ffffff;
}
.badge-oficial { 
    background: linear-gradient(90deg, #666666 0%, #4a4a4a 100%); 
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(102, 102, 102, 0.4);
    border: 1px solid #666666;
}
.badge-integrante { 
    background: linear-gradient(90deg, #333333 0%, #1a1a1a 100%); 
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(51, 51, 51, 0.4);
    border: 1px solid #333333;
}

/* Dashboard Cards */
.dash-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    border: 2px solid #333333;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-left: 5px solid #ffffff;
    border-top: 2px solid #666666;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

.dash-card .icon {
    font-size: 2.5rem;
    color: var(--text-secondary);
}

.dash-card .info h4 {
    margin: 0;
    font-size: 2rem;
    font-weight: 800;
}

.dash-card .info p {
    margin: 0;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 0.8rem;
}

/* Table styles */
.table-dark {
    background-color: #1a1a1a;
    border-color: #333333;
}
.table-dark th {
    border-bottom: 3px solid #ffffff;
    background: linear-gradient(90deg, #1a1a1a 0%, #0a0a0a 100%);
}
.table-dark tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Siren FX on Hover */
.siren-fx:hover {
    animation: siren 1s infinite alternate;
}

@keyframes siren {
    0% { text-shadow: 0 0 5px #ffffff; color: #fff; }
    100% { text-shadow: 0 0 20px #ffffff, 0 0 30px #ffffff, 0 0 40px #ffffff; color: #ffffff; }
}

/* Modal Dark Theme Overrides */
.modal-content {
    background-color: #1a1a1a !important;
    border: 2px solid #333333 !important;
    color: var(--text-primary) !important;
}
.modal-header {
    border-bottom: 3px solid #ffffff !important;
}
.modal-footer {
    border-top: 2px solid #333333 !important;
}
.form-select, .form-control {
    background-color: #0a0a0a !important;
    border-color: #333333 !important;
    color: #fff !important;
}
.form-select:focus, .form-control:focus {
    border-color: #ffffff !important;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5) !important;
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.spinner-military {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255,255,255,0.1);
    border-left-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Light Theme Variables */
body.light-mode {
    --bg-dark: #f4f4f9;
    --bg-card: #ffffff;
    --text-primary: #111111;
    --text-secondary: #555555;
    --border-color: #dddddd;
}
body.light-mode .navbar {
    background: rgba(255, 255, 255, 0.9) !important;
}
body.light-mode .navbar-brand {
    color: #111 !important;
}
body.light-mode .nav-link {
    color: #333 !important;
}
body.light-mode .nav-link:hover, body.light-mode .nav-link.active {
    color: var(--red-primary) !important;
}
body.light-mode .military-card {
    background: #ffffff;
    color: #111;
}
body.light-mode .table-dark {
    background-color: #ffffff;
    color: #111;
}
body.light-mode .table-dark th {
    color: #111;
}
body.light-mode .table-dark td {
    color: #333;
}
body.light-mode .sidebar {
    background: #ffffff;
}
body.light-mode .sidebar h5 {
    color: #111 !important;
}
body.light-mode .sidebar a {
    color: #333;
}

/* Responsive sidebar */
@media (max-width: 991.98px) {
    body {
        overflow-y: auto;
    }

    .sidebar {
        position: relative;
        width: 100%;
        height: auto !important;
        min-height: 0;
        max-height: none;
        overflow: visible;
        padding-top: 20px;
        padding-bottom: 12px;
        border-right: 0;
        border-bottom: 3px solid #ffffff;
    }

    .main-content {
        margin-left: 0;
        padding: 24px 20px 30px;
    }
}

@media (max-width: 575.98px) {
    .sidebar a {
        padding: 11px 16px;
        font-size: 0.8rem;
    }

    .main-content {
        padding-left: 12px;
        padding-right: 12px;
    }
}

