﻿/* General Styling */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa; /* Light grey background */
}

/* Navbar specific overrides */
.navbar {
    background-color: #dc3545 !important; /* Bootstrap red */
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

    .navbar-brand img {
        filter: invert(100%); /* Make logo white if it's dark */
    }

.navbar-nav .nav-link {
    color: white !important;
    font-weight: 500;
    transition: color 0.3s ease;
}

    .navbar-nav .nav-link:hover {
        color: #e0e0e0 !important; /* Slightly lighter white on hover */
    }

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Main Content Area */
.body-content {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

/* Cards for sections */
.dashboard-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 25px;
    margin-bottom: 20px;
}

    .dashboard-card h2, .dashboard-card h3 {
        color: #dc3545; /* Bootstrap red */
        margin-bottom: 20px;
        font-weight: 600;
    }

/* Buttons */
.btn-primary {
    background-color: #dc3545;
    border-color: #dc3545;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

    .btn-primary:hover {
        background-color: #c82333;
        border-color: #bd2130;
    }

.btn-outline-secondary {
    color: #6c757d;
    border-color: #6c757d;
    transition: all 0.3s ease;
}

    .btn-outline-secondary:hover {
        background-color: #6c757d;
        color: white;
    }

/* Forms */
.form-control {
    border-radius: 5px;
    padding: 10px 15px;
}

.form-label {
    font-weight: 500;
    margin-bottom: 8px;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px 0;
    color: #6c757d;
    font-size: 0.9em;
}

/* Responsive adjustments (Bootstrap handles most, but for specific tweaks) */
@media (max-width: 768px) {
    .body-content {
        padding: 15px;
    }

    .dashboard-card {
        padding: 20px;
    }
}

/* Custom style for the modal header title to be white when background is dark */
.modal-header .modal-title {
    color: inherit; /* Inherit color from parent, which is set to white by bg-danger text-white */
}

/* For the close button icon in dark headers */
.modal-header .btn-close.btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%); /* Makes the close icon white */
}