:root {
    --primary: #1D3247; /* Updated primary color */
    --secondary: #b21f1f;
    --accent: #fdbb2d;
    --light: #f8f9fa;
    --dark: #343a40;
}

/* General */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    margin: 0;
}

/* Sidebar */
.sidebar {
    background: var(--primary);
    color: white;
    height: 100vh;
    position: fixed;
    padding-top: 60px;
    box-shadow: 3px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 12px 20px;
    margin: 4px 0;
    border-radius: 4px;
}

.sidebar .nav-link:hover, 
.sidebar .nav-link.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.sidebar .nav-link i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* Navbar (header) */
.navbar {
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: calc(100% - 250px);
    margin-left: 250px;
    z-index: 1000;
}

.navbar .nav-link,
.navbar-brand {
    color: rgba(255, 255, 255, 0.9);
}

.navbar .nav-link:hover {
    color: #ffffff;
}

/* Main Content */
.main-content {
    margin-left: 250px;
    padding: 20px;
    padding-top: 80px;
}

/* Footer */
.footer {
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 15px;
    margin-left: 250px;
    box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.1);
}

/* Cards */
.card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    background: white;
}

.card-header {
    background: white;
    border-bottom: 1px solid #eee;
    font-weight: 600;
}

.stats-card {
    text-align: center;
    padding: 20px;
}

.stats-number {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary);
}

.stats-label {
    font-size: 14px;
    color: #6c757d;
}

.progress {
    height: 10px;
    margin: 10px 0;
}

/* Status Badges */
.status-badge {
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.status-open { background: #ffeeba; color: #856404; }
.status-pending { background: #b8daff; color: #004085; }
.status-closed { background: #c3e6cb; color: #155724; }
.status-info { background: #d1ecf1; color: #0c5460; }
.status-compensation { background: #f5c6cb; color: #721c24; }

/* Buttons */
.btn-primary {
    background: var(--primary);
    border: none;
}

.btn-primary:hover {
    background: #0f2034;
}

/* Tabs */
.nav-tabs .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    color: #6c757d;
    font-weight: 500;
}

.nav-tabs .nav-link.active {
    border-bottom: 3px solid var(--primary);
    color: var(--primary);
}

/* Category Badge */
.category-badge {
    background: var(--secondary);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

/* Login Page Specific Styles */
body.login-page {
    background: url('../images/background.png') no-repeat center center fixed;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

body.login-page .login-container {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    width: 400px;
    margin: auto;
    backdrop-filter: blur(10px);
}

body.login-page .login-header {
    background: var(--primary);
    color: white;
    padding: 20px;
    text-align: center;
}

body.login-page .login-form {
    padding: 20px;
}

body.login-page .btn-login {
    background: var(--primary);
    color: white;
    width: 100%;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 576px) {
    body.login-page {
        align-items: flex-start;
        padding-top: 50px;
    }

    body.login-page .login-container {
        width: 90%;
        margin: 20px auto;
        padding: 15px;
    }
}
