/* Global Styles */
:root {
    --police-blue: #003366;
    --police-gold: #FFD700;
    --police-red: #DC3545;
    --police-gray: #6C757D;
    --police-light: #F8F9FA;
}

/* Global Styles */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

main {
    flex: 1 0 auto;
}

/* Navigation Styles */
.navbar {
    background-color: var(--police-blue) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo-img {
    width: 120px !important;
    height: auto !important;
    max-height: 100px;
    object-fit: contain;
    margin-right: 15px;
    transform: scale(1.5);
    transform-origin: left center;
}

.navbar-brand {
    display: flex;
    align-items: center;
    overflow: visible;
}

.nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--police-gold) !important;
}

.nav-link.active {
    color: var(--police-gold) !important;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.9), rgba(0, 51, 102, 0.7));
    padding: 100px 0;
    color: white;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

/* Cards and Sections */
.card {
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card-header {
    background-color: var(--police-blue);
    color: white;
    font-weight: 600;
}

.section-title {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--police-gold);
}

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

.btn-primary:hover {
    background-color: #004080;
    border-color: #004080;
}

.btn-outline-primary {
    color: var(--police-blue);
    border-color: var(--police-blue);
}

.btn-outline-primary:hover {
    background-color: var(--police-blue);
    border-color: var(--police-blue);
}

/* Stats Cards */
.stats-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
}

.stats-card i {
    font-size: 2.5rem;
    color: var(--police-blue);
    margin-bottom: 15px;
}

.stats-card h3 {
    color: var(--police-gray);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.stats-card .number {
    color: var(--police-blue);
    font-size: 2rem;
    font-weight: 700;
}

/* Tables */
.table thead th {
    background-color: var(--police-blue);
    color: white;
    font-weight: 600;
    border: none;
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 51, 102, 0.05);
}

/* Forms */
.form-control:focus {
    border-color: var(--police-blue);
    box-shadow: 0 0 0 0.2rem rgba(0, 51, 102, 0.25);
}

.form-label {
    font-weight: 500;
    color: var(--police-gray);
}

/* Alerts */
.alert {
    border: none;
    border-radius: 5px;
}

.alert-success {
    background-color: #D4EDDA;
    color: #155724;
}

.alert-danger {
    background-color: #F8D7DA;
    color: #721C24;
}

/* Footer */
.footer {
    background-color: var(--police-blue) !important;
    padding: 40px 0 20px;
}

.footer h5 {
    color: var(--police-gold);
    margin-bottom: 20px;
    font-weight: 600;
}

.footer ul li {
    margin-bottom: 10px;
}

.footer a {
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--police-gold) !important;
}

.social-links a {
    display: inline-block;
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--police-gold);
    color: var(--police-blue) !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .stats-card {
        margin-bottom: 15px;
    }
    
    .section-title {
        text-align: center;
    }
    
    .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Custom styles for Police Duty Management System */

/* Add a fallback logo using CSS in case the image doesn't load */
.logo-fallback {
    display: inline-block;
    width: 40px;
    height: 40px;
    /* background-color: white; */
    border-radius: 50%;
    position: relative;
    margin-right: 10px;
}

.logo-fallback:before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    width: 20px;
    height: 20px;
    background-color: #0d6efd;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
} 

/* Search highlighting */
mark.bg-warning {
    background-color: #fff3cd !important;
    color: #856404;
    padding: 0.1em 0.2em;
    border-radius: 0.2em;
}

/* Search box styling */
.search-highlight {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 0.25rem;
}

/* Search results summary */
.search-results-summary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

/* Sub-duty styling */
.sub-duty-row {
    background-color: rgba(0, 123, 255, 0.05);
}

.sub-sub-duty-row {
    background-color: rgba(0, 123, 255, 0.1);
}

/* Nested list styling */
.nested-sub-duties .list-group-item {
    padding: 0.5rem 1rem;
    border-left: 2px solid #dee2e6;
}

/* Hover effect for duty rows */
.duty-row:hover {
    background-color: rgba(0, 123, 255, 0.1);
}

/* Bulk Actions Styles */
.bulk-actions {
    transition: all 0.3s ease;
}

.bulk-actions .btn-group {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.bulk-actions .btn {
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
}

.form-check-input:checked {
    background-color: var(--police-blue);
    border-color: var(--police-blue);
}

.form-check-input:focus {
    border-color: var(--police-blue);
    box-shadow: 0 0 0 0.2rem rgba(0, 51, 102, 0.25);
}

.table tbody tr.selected {
    background-color: rgba(0, 51, 102, 0.1) !important;
    border-left: 4px solid var(--police-blue);
}

.table tbody tr:hover .form-check-input {
    opacity: 1;
}

.form-check-input {
    transition: all 0.2s ease;
} 