/* Custom CSS for OKR Management System */

/* Force Light Theme - Override OS Dark Mode */
:root {
    color-scheme: light only;
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --border-radius: 0.375rem;
    --box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --transition: all 0.15s ease-in-out;
}

/* Global Styles - Force Light Theme */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa !important;
    color: #212529 !important;
    line-height: 1.6;
    padding-bottom: 0; /* Footer is no longer fixed */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Override any dark mode styles */
html {
    color-scheme: light only;
}

* {
    color-scheme: light only;
}

/* Footer Styles */
footer {
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

/* Main content should grow to fill space */
main {
    flex: 1;
}

/* Navigation with same margins as content */
.navbar .container-fluid {
    padding-left: 2rem;
    padding-right: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Container Spacing for Content */
.container-fluid {
    padding-left: 2rem;
    padding-right: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

main.container-fluid {
    padding-left: 2rem;
    padding-right: 2rem;
}

/* Navigation Enhancements */
.navbar-brand {
    font-weight: 600;
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: var(--transition);
    border-radius: var(--border-radius);
    margin: 0 0.25rem;
}



.navbar-nav .nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    font-weight: 600;
}

/* Card Enhancements */
.card {
    border: none;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border-radius: var(--border-radius);
}



.card-header {
    background-color: var(--light-color);
    border-bottom: 1px solid #dee2e6;
    font-weight: 600;
}

/* Button Enhancements */
.btn {
    font-weight: 500;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

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

.btn-group .btn {
    margin-right: 0.25rem;
}

.btn-group .btn:last-child {
    margin-right: 0;
}

/* Progress Bar Enhancements */
.progress {
    height: 1rem;
    border-radius: var(--border-radius);
    background-color: #e9ecef;
}

.progress-bar {
    border-radius: var(--border-radius);
    transition: width 1s ease-in-out;
}

.progress-sm {
    height: 0.5rem;
}

.progress-lg {
    height: 1.5rem;
}

/* Status Badges */
.status-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.375rem 0.75rem;
    border-radius: 50px;
}

.status-active {
    background-color: var(--success-color);
    color: white;
}

.status-completed {
    background-color: var(--primary-color);
    color: white;
}

.status-cancelled {
    background-color: var(--secondary-color);
    color: white;
}

.status-overdue {
    background-color: var(--danger-color);
    color: white;
}

/* Dashboard Specific Styles */
.dashboard-card {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    color: white;
    border: none;
}

.dashboard-card .card-body {
    padding: 2rem;
}

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

.dashboard-card p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 0;
}

.stats-card {
    text-align: center;
    padding: 1.5rem;
}

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

.stats-card .stats-label {
    font-size: 0.875rem;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Form Enhancements */
.form-control, .form-select {
    border-radius: var(--border-radius);
    border: 1px solid #ced4da;
    transition: var(--transition);
}

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

.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.invalid-feedback {
    font-size: 0.875rem;
}

/* Remove Bootstrap validation icons */
.form-control.is-valid,
.was-validated .form-control:valid {
    background-image: none !important;
    padding-right: 0.75rem !important;
}

.form-control.is-invalid,
.was-validated .form-control:invalid {
    background-image: none !important;
    padding-right: 0.75rem !important;
}

.form-select.is-valid,
.was-validated .form-select:valid {
    background-image: none !important;
    padding-right: 0.75rem !important;
}

.form-select.is-invalid,
.was-validated .form-select:invalid {
    background-image: none !important;
    padding-right: 0.75rem !important;
}

/* Table Enhancements */
.table {
    border-radius: var(--border-radius);
    overflow: hidden;
}

.table thead th {
    background-color: var(--light-color);
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    color: var(--dark-color);
}

.table tbody tr {
    transition: var(--transition);
}



/* Pagination Enhancements */
.pagination .page-link {
    border-radius: var(--border-radius);
    margin: 0 0.125rem;
    border: 1px solid #dee2e6;
    color: var(--primary-color);
}



.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Alert Enhancements */
.alert {
    border: none;
    border-radius: var(--border-radius);
    font-weight: 500;
}

.alert .bi {
    margin-right: 0.5rem;
}

/* Modal Enhancements */
.modal-content {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

.modal-header {
    border-bottom: 1px solid #dee2e6;
    background-color: var(--light-color);
}

.modal-footer {
    border-top: 1px solid #dee2e6;
    background-color: var(--light-color);
}

/* Login/Register Page Styles */
.auth-container {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: auto;
    padding: 2rem;
    box-sizing: border-box;
}

.auth-card {
    width: 100%;
    max-width: 400px;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 2rem 4rem rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin: 0;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
}

.auth-header {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    color: white;
    text-align: center;
    padding: 2rem;
}

.auth-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.auth-header p {
    opacity: 0.9;
    margin-bottom: 0;
}

.auth-body {
    padding: 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-card h3 {
        font-size: 2rem;
    }
    
    .stats-card .stats-number {
        font-size: 1.5rem;
    }
    
    .auth-container {
        padding: 1rem;
        height: 100vh;
    }
    
    .auth-card {
        margin: 0;
        max-width: none;
        width: 100%;
        max-height: calc(100vh - 1rem);
    }
    
    .auth-header {
        padding: 1.5rem 1rem;
    }
    
    .auth-header h1 {
        font-size: 1.5rem;
    }
    
    .auth-body {
        padding: 0.75rem;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
}

@media (max-width: 768px) {
    .navbar .container-fluid {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .container-fluid {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    main.container-fluid {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (max-width: 576px) {
    .navbar .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    main.container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .btn-group {
        flex-direction: column;
    }
    
    .btn-group .btn {
        margin-right: 0;
        margin-bottom: 0.25rem;
    }
    
    .auth-container {
        padding: 0.75rem;
        align-items: flex-start;
        padding-top: 1.5rem;
        height: 100vh;
    }
    
    .auth-card {
        margin: 0;
        width: 100%;
        border-radius: 0.5rem;
        max-height: calc(100vh - 1.5rem);
    }
    
    .auth-header {
        padding: 1rem;
    }
    
    .auth-header h1 {
        font-size: 1.25rem;
    }
    
    .auth-header p {
        font-size: 0.875rem;
    }
    
    .auth-body {
        padding: 1rem;
    }
    
    .form-label {
        font-size: 0.875rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }
    
    .mb-4 {
        margin-bottom: 1.5rem !important;
    }
    
    .form-text small {
        font-size: 0.75rem;
    }
}

/* Statistics Icons */
.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-icon-large {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
    position: relative;
}

.stat-icon-large i,
.stat-icon-large .bi {
    font-size: 2rem !important;
    line-height: 1 !important;
    display: inline-block !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    -webkit-font-smoothing: antialiased !important;
    font-weight: normal !important;
    font-family: "bootstrap-icons" !important;
}

/* Ensure icons are visible and properly styled */
.stat-icon-large .bi::before {
    display: inline-block !important;
    font-family: "bootstrap-icons" !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    line-height: 1 !important;
    -webkit-font-smoothing: antialiased !important;
}

/* Force icon visibility */
.stat-icon-large .bi {
    opacity: 1 !important;
    visibility: visible !important;
    color: inherit !important;
}

/* Specific icon content for Bootstrap Icons */
.stat-icon-large .bi-bullseye::before {
    content: "\f1a1" !important;
}

.stat-icon-large .bi-people::before {
    content: "\f4d6" !important;
}

.stat-icon-large .bi-collection::before {
    content: "\f2a5" !important;
}

/* Ensure all Bootstrap icons display properly */
.stat-icon-large .bi {
    font-family: "bootstrap-icons" !important;
    speak: none !important;
    font-style: normal !important;
    font-weight: normal !important;
    font-variant: normal !important;
    text-transform: none !important;
    line-height: 1 !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

/* Utility Classes */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.border-start-primary {
    border-left: 4px solid var(--primary-color) !important;
}

.border-start-success {
    border-left: 4px solid var(--success-color) !important;
}

.border-start-warning {
    border-left: 4px solid var(--warning-color) !important;
}

.border-start-danger {
    border-left: 4px solid var(--danger-color) !important;
}

/* Loading Spinner */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spinner-border-lg {
    width: 3rem;
    height: 3rem;
}

/* Print Styles */
@media print {
    .navbar,
    .btn,
    .pagination,
    .modal,
    .alert {
        display: none !important;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #dee2e6;
    }
    
    body {
        background-color: white;
    }
}

/* Dark Mode Support (Disabled - Always use light theme) */
/*
@media (prefers-color-scheme: dark) {
    :root {
        --light-color: #343a40;
        --dark-color: #f8f9fa;
    }
    
    body {
        background-color: #212529;
        color: #f8f9fa;
    }
    
    .card {
        background-color: #343a40;
        color: #f8f9fa;
    }
    
    .table {
        color: #f8f9fa;
    }
    
    .form-control,
    .form-select {
        background-color: #495057;
        border-color: #6c757d;
        color: #f8f9fa;
    }
    
    .form-control:focus,
    .form-select:focus {
        background-color: #495057;
        border-color: var(--primary-color);
        color: #f8f9fa;
    }
}
*/