/* Custom styles for DCE Services */

:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --gray-color: #95a5a6;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f8f9fa;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 56px;
}

/* Header & Navigation */
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar-brand span {
    color: var(--primary-color);
}

.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    width: 100%;
}

/* Sidebar */
.sidebar {
    background-color: var(--secondary-color);
    min-height: calc(100vh - 56px);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    position: fixed;
    top: 56px;
    left: 0;
    width: 250px;
    max-width: 250px;
    height: calc(100vh - 56px);
    overflow-y: auto;
    z-index: 1020;
    flex-shrink: 0;
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    border-radius: 0;
    padding: 0.75rem 1.25rem;
    transition: all 0.2s;
}

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

.sidebar .nav-link.active {
    color: #fff;
    background-color: var(--primary-color);
}

.sidebar .nav-link i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* Cards */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 20px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.card-header {
    border-radius: 10px 10px 0 0 !important;
    font-weight: 600;
}

/* Dashboard cards */
.dashboard-card {
    text-align: center;
    padding: 1.5rem;
}

.dashboard-card i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.dashboard-card h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.dashboard-card p {
    color: var(--gray-color);
    margin-bottom: 0;
}

/* Status badges */
.badge {
    padding: 0.5em 0.8em;
    font-weight: 500;
    border-radius: 30px;
}

/* Forms */
.form-control, .form-select {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(52, 152, 219, 0.25);
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Buttons */
.btn {
    border-radius: 8px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s;
}

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

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

/* Timeline for request activity */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline-item {
    position: relative;
    margin-bottom: 25px;
}

.timeline-marker {
    position: absolute;
    left: -30px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    top: 5px;
}

.timeline-content {
    padding: 15px;
    border-radius: 5px;
    border-left: 3px solid #dee2e6;
    background-color: #f8f9fa;
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: #fff;
    padding: 2.5rem 0 0 0;
    margin-top: auto;
    /* offset entire footer to clear the fixed sidebar on desktop */
    margin-left: 250px;
    width: calc(100% - 250px);
}

/* Footer layout fixes to avoid sidebar overlap */
/* inner container spacing and offset to clear fixed sidebar */
.footer-inner {
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (max-width: 768px) {
    footer {
        margin-left: 0;
        width: 100%;
    }
}

/* Ensure footer content wraps and is readable */
footer .list-unstyled li {
    word-wrap: break-word;
    white-space: normal;
}

footer .alert {
    border-radius: 6px;
}

/* Prevent Bootstrap row negative margins from pushing content under sidebar */
.footer-inner .row {
    margin-left: 0;
    margin-right: 0;
}

/* Home page */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1abc9c 100%);
    color: white;
    padding: 5rem 0;
    text-align: center;
}

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

.hero-section p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 2rem;
}

.service-card {
    text-align: center;
    padding: 2rem;
}

.service-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.why-us-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.why-us-icon {
    background-color: rgba(52, 152, 219, 0.1);
    color: var(--primary-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

/* Main content adjustment for fixed sidebar and header */
.col-md-9, .col-lg-10 {
    margin-left: 250px;
    width: calc(100% - 250px);
    max-width: calc(100% - 250px);
    margin-top: 0;
    padding-top: 20px;
}

/* Ensure container-fluid doesn't interfere with sticky positioning */
.container-fluid {
    padding-left: 0;
    padding-right: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    body {
        padding-top: 56px;
    }
    
    .sidebar {
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
        height: auto;
        min-height: auto;
    }
    
    .col-md-9, .col-lg-10 {
        margin-left: 0;
        width: 100%;
        max-width: 100%;
        padding-top: 20px;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .dashboard-card h2 {
        font-size: 2rem;
    }
    
    .service-card i {
        font-size: 2.5rem;
    }
}

/* Flash messages */
.alert-dismissible {
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-state i {
    font-size: 4rem;
    color: var(--gray-color);
    margin-bottom: 1.5rem;
}

.empty-state .lead {
    color: var(--gray-color);
    margin-bottom: 1.5rem;
}