/**
 * CI4 Shield Starter - Custom CSS
 */

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

a {
    text-decoration: none;
}

/* Navbar */
.navbar {
    z-index: 1030; /* Ensure navbar stays above sidebar */
    position: relative;
}

/* Admin Dashboard */
.sidebar {
    position: fixed;
    top: 56px; /* Height of the navbar */
    bottom: 0;
    left: 0;
    z-index: 99; /* Lower than navbar z-index */
    padding: 20px 0 0;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.1);
}

.sidebar .nav-link {
    font-weight: 500;
    color: #333;
    padding: 0.75rem 1rem;
    margin-bottom: 0.2rem;
    border-radius: 0.25rem;
}

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

.sidebar .nav-link.active {
    color: #007bff;
    background-color: rgba(0, 123, 255, 0.1);
}

/* Hero Section */
.hero {
    background-color: #f8f9fa;
    padding: 4rem 0;
    margin-bottom: 2rem;
    border-radius: 0.3rem;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 300;
    line-height: 1.2;
}

/* Features Section */
.feature-icon {
    font-size: 2.5rem;
    color: #007bff;
    margin-bottom: 1rem;
}

/* Call to Action */
.cta-section {
    background-color: #007bff;
    color: white;
    padding: 3rem 0;
    margin: 3rem 0;
    border-radius: 0.3rem;
}

/* Form Styles */
.form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Card Styles */
.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 1.5rem;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

/* Table Styles */
.table th {
    border-top: none;
    background-color: #f8f9fa;
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
    .sidebar {
        position: static;
        height: auto;
        padding-top: 0;
    }
    
    main {
        margin-left: 0 !important;
    }
}
