/* Custom Styles */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #004d81;
    --accent-color: #9b1000;
    --success-color: #008c3a;
    --warning-color: #df8900;
    --light-bg: #ecf0f1;
    --dark-text: #2c3e50;
    --light-text: #ecf0f1;
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --hover-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

body {
    background-color: var(--light-bg);
    font-family: 'Nunito', sans-serif;
    color: var(--dark-text);
    transition: all 0.3s ease;
}

/* Navbar styling */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, var(--primary-color), #34495e) !important;
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: 1px;
}

.navbar .nav-link {
    font-weight: 600;
    transition: all 0.3s;
    position: relative;
    padding: 0.5rem 1rem !important;
    margin: 0 0.2rem;
}

.navbar .nav-link:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar .nav-link:hover:after {
    width: 80%;
}

.navbar .nav-link.active:after {
    width: 80%;
}

/* Login page */
.login-container {
    max-width: 450px;
    margin: 80px auto;
    padding: 30px;
    background: #fff;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
}

.login-container:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, var(--secondary-color), var(--primary-color));
}

.login-container h2 {
    color: var(--primary-color);
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.login-container h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--secondary-color), var(--primary-color));
}

.login-container .input-group {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    border-radius: 5px;
    overflow: hidden;
}

.login-container .input-group-text {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    width: 40px;
    justify-content: center;
}

.login-container .form-control {
    border: none;
    padding: 12px 15px;
}

.login-container .btn-primary {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    border: none;
    padding: 12px;
    font-weight: 600;
    transition: all 0.3s;
}

.login-container .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

/* Dashboard cards */
.card-dashboard {
    border: none;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s;
    overflow: hidden;
    margin-bottom: 1rem;
}

.card-dashboard .card-body {
    padding: 1.5rem;
}

.card-dashboard:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.card-dashboard .icon-circle {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    margin-bottom: 0.5rem;
}

.card-dashboard .icon-circle i {
    font-size: 1.5rem;
}

.card-dashboard h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.card-dashboard .card-footer {
    background-color: rgba(0, 0, 0, 0.05);
    border-top: none;
    padding: 0.75rem 1.5rem;
}

/* Tables */
.table-container {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    margin-bottom: 1.5rem;
}

.table thead th {
    background-color: var(--primary-color);
    color: white;
    border-color: rgba(255, 255, 255, 0.1);
    padding: 12px 15px;
}

.table tbody tr {
    transition: all 0.3s;
}

.table tbody tr:hover {
    background-color: rgba(52, 152, 219, 0.05);
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(236, 240, 241, 0.5);
}

/* Buttons and actions */
.btn {
    border-radius: 5px;
    padding: 8px 15px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-action {
    margin: 3px;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Forms */
.form-container {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
}

.form-container:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--secondary-color);
}

.form-label {
    font-weight: 600;
    color: var(--primary-color);
}

.form-control, .form-select {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    padding: 10px 15px;
    transition: all 0.3s;
}

.form-control:focus, .form-select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.25rem rgba(52, 152, 219, 0.25);
}

/* Cards and content containers */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.card-header {
    padding: 1rem 1.5rem;
    font-weight: 600;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.9), rgba(52, 73, 94, 0.9));
    color: white;
    border-bottom: none;
}

.card-header h5 {
    margin: 0;
}

.card-body {
    padding: 1.5rem;
}

/* Alerts */
.alert {
    border: none;
    border-radius: 8px;
    padding: 15px;
    position: relative;
    margin-bottom: 1.5rem;
}

.alert-success {
    background-color: rgba(46, 204, 113, 0.1);
    border-left: 4px solid var(--success-color);
    color: #007932;
}

.alert-danger {
    background-color: rgba(231, 76, 60, 0.1);
    border-left: 4px solid var(--accent-color);
    color: #960f00;
}

/* Charts */
.chart-container {
    position: relative;
    margin: auto;
    height: 300px;
}

/* Badges */
.badge {
    padding: 5px 10px;
    font-weight: 600;
}

/* Utilities */
.text-primary-custom {
    color: var(--primary-color);
}

.bg-primary-custom {
    background-color: var(--primary-color);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .login-container {
        max-width: 90%;
        margin: 50px auto;
    }
    
    .card-dashboard {
        margin-bottom: 1rem;
    }
}

/* Print styles */
@media print {
    .navbar, form, .btn, .no-print {
        display: none !important;
    }
    
    .card {
        border: none !important;
        box-shadow: none !important;
    }
    
    .card-header {
        background-color: #f8f9fa !important;
        color: #000 !important;
    }
    
    body {
        padding: 15px;
    }
}
