/**
 * Fiji Police Clearance System
 * Main stylesheet
 * Primary branding color: #1a2942 (dark blue)
 */

:root {
    --primary-color: #0d6efd;
    --dark-blue: #1a2942;
    --navy-blue: #1a2942;
    --text-color: #333;
    --light-gray: #f5f7fa;
    --white: #ffffff;
    --sidebar-width: 250px;
}

/* Base styles */
body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: #f5f7fa;
    margin: 0;
    padding: 0;
}

/* Header styles */
.top-header {
    background-color: var(--dark-blue);
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 56px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand img {
    height: 36px;
}

.user-dropdown {
    cursor: pointer;
}

/* Main container styles */
.main-container {
    display: flex;
    min-height: calc(100vh - 56px);
    margin-top: 56px;
}

/* Sidebar styles */
.sidebar {
    width: var(--sidebar-width);
    background-color: white;
    border-right: 1px solid #e9ecef;
    padding: 0;
    position: fixed;
    top: 56px;
    bottom: 0;
    overflow-y: auto;
}

.sidebar-header {
    background-color: #0d6efd;
    color: white;
    padding: 10px 15px;
    font-weight: 500;
}

.user-profile {
    text-align: center;
    padding: 20px 15px;
}

.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--dark-blue);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    margin: 0 auto 10px;
}

.user-info {
    margin-bottom: 0;
}

.user-info p {
    line-height: 1.2;
    margin: 0;
    font-size: 13px;
}

.user-account {
    font-size: 12px;
    color: #6c757d;
}

.menu-item {
    padding: 12px 15px;
    display: flex;
    align-items: center;
    color: var(--text-color);
    text-decoration: none;
    border-left: 3px solid transparent;
}

.menu-item i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.menu-item:hover, .menu-item.active {
    background-color: #f8f9fa;
    border-left-color: var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
}

.menu-item.active {
    background-color: #f0f4ff;
}

/* Content area styles */
.content-area {
    flex-grow: 1;
    margin-left: var(--sidebar-width);
    padding: 20px;
}

.page-title {
    font-weight: 600;
    margin-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 10px;
    color: var(--dark-blue);
}

/* Card styles */
.card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.card .card-header {
    background-color: var(--white);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 12px 15px;
    font-weight: 500;
}

.card .card-header h5 {
    margin-bottom: 0;
    font-size: 16px;
    font-weight: 600;
}

/* Status badges */
.badge {
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 4px;
}

/* Application status colors */
.bg-secondary { background-color: #6c757d; }  /* Pending */
.bg-info { background-color: #0dcaf0; }      /* Submitted */
.bg-warning { background-color: #ffc107; }   /* In Review */
.bg-primary { background-color: #0d6efd; }   /* Additional Info Required */
.bg-success { background-color: #198754; }   /* Approved */
.bg-danger { background-color: #dc3545; }    /* Rejected */
.bg-dark { background-color: #212529; }      /* Completed */

/* Form styles */
.form-label {
    font-weight: 500;
    color: #555;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

/* Table styles */
.table {
    margin-bottom: 0;
}

.table th {
    font-weight: 600;
    color: #555;
    border-top: none;
}

/* Stats cards */
.stats-card {
    color: white;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}

.stats-card .title {
    font-size: 13px;
    margin-bottom: 0;
    font-weight: normal;
}

.stats-card .count {
    font-size: 24px;
    font-weight: 500;
    margin: 0 0 5px 0;
    line-height: 1;
}

.stats-card.pending { background-color: #0d6efd; }
.stats-card.approved { background-color: #198754; }
.stats-card.rejected { background-color: #dc3545; }

/* Process steps */
.process-step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.process-step .step-number {
    width: 26px;
    height: 26px;
    background-color: #e9ecef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
}

.process-step .step-number.active {
    background-color: #0d6efd;
    color: white;
}

/* Alert styles */
.alert-info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

/* Button customizations */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

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

/* Media queries for responsiveness */
@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
        z-index: 1010;
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .content-area {
        margin-left: 0;
    }
    
    .toggle-sidebar {
        display: block;
    }
}

@media (max-width: 767.98px) {
    .top-header {
        padding: 10px;
    }
    
    .content-area {
        padding: 15px;
    }
}

/* Hero section for public pages */
.hero-section {
    background-color: var(--dark-blue);
    color: white;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.hero-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

/* Footer styles */
.footer {
    background-color: var(--dark-blue);
    color: white;
    padding: 30px 0;
    font-size: 14px;
}

.footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.footer a:hover {
    color: white;
    text-decoration: underline;
}
