/* ╔══════════════════════════════════════════════════════════╗
   ║  NGO Cloud System — Brand Identity System               ║
   ╚══════════════════════════════════════════════════════════╝ */

:root {
    /* ── The Palette ── */
    --crushed-berry: #880d1e;
    --raspberry: #dd2d4a;
    --bubblegum-pink: #f26a8d;
    --pine-blue: #4a6c6f;
    --golden-sand: #e3d26f;
    --bone: #ece2d0;
    --jet-black: #1e3231;

    /* ── Native BS5 Mapping ── */
    --bs-primary: var(--crushed-berry);
    --bs-primary-rgb: 136, 13, 30;
    --bs-danger: var(--raspberry);
    --bs-danger-rgb: 221, 45, 74;
    --bs-dark: var(--jet-black);
    --bs-dark-rgb: 30, 50, 49;
    --bs-light: var(--bone);
    --bs-success: var(--pine-blue);
    --bs-info: #17a2b8;
    --bs-warning: #ffc107;
    --bs-secondary: #6c757d;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

body { 
    font-family: var(--font-body); 
    color: var(--bs-dark); 
}
h1, h2, h3, h4, h5, h6 { 
    font-family: var(--font-heading); 
    font-weight: 700; 
}

/* Essential Native-Compatible Utilities */
.bg-fixed { background-attachment: fixed; }
.backdrop-blur { backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); }
.ls-1 { letter-spacing: 1px; }
.fw-800 { font-weight: 800; }

/* Premium Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bs-light); }
::-webkit-scrollbar-thumb { background: var(--bs-primary); border-radius: 10px; }

/* ── Consistent Text Colors (Black and White Only) ── */
.text-primary, .text-secondary, .text-success, .text-info, .text-warning, .text-danger, 
.text-light, .text-dark, .text-body, .text-muted, .text-white, .text-black {
    color: var(--bs-dark) !important;
}

.text-white {
    color: white !important;
}

/* ── Prevent 'Sneaking Colors' (Bootstrap Overrides) ── */
.accordion-button:not(.collapsed) {
    background-color: rgba(136, 13, 30, 0.05) !important;
    color: var(--crushed-berry) !important;
    box-shadow: inset 0 -1px 0 rgba(0,0,0,.125) !important;
}
.accordion-button:focus {
    border-color: var(--raspberry) !important;
    box-shadow: 0 0 0 0.25rem rgba(136, 13, 30, 0.25) !important;
}
.form-control:focus, .form-select:focus {
    border-color: var(--raspberry) !important;
    box-shadow: 0 0 0 0.25rem rgba(136, 13, 30, 0.15) !important;
}
.nav-pills .nav-link.active {
    background-color: var(--crushed-berry) !important;
}
.dropdown-item:active {
    background-color: var(--crushed-berry) !important;
}

/* ── Dashboard Specific Styles ── */
.dashboard-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.dashboard-sidebar {
    background: linear-gradient(180deg, var(--crushed-berry) 0%, var(--jet-black) 100%);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.sidebar-brand {
    background: rgba(0, 0, 0, 0.2);
}

.nav-link {
    color: rgba(255, 255, 255, 0.7) !important;
    padding: 0.75rem 1rem !important;
    border-radius: 0.5rem;
    margin: 0.25rem 0;
    transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
    color: white !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

.sidebar-heading {
    padding-left: 1rem;
}

.dashboard-card {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.dashboard-stat-icon {
    min-width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Badge Status Styles */
.badge-status {
    font-size: 0.75em;
}

.badge-planning {
    background-color: rgba(255, 193, 7, 0.2);
    color: #ff9900;
    border: 1px solid rgba(255, 193, 7, 0.5);
}

.badge-implementation {
    background-color: rgba(0, 123, 255, 0.2);
    color: #007bff;
    border: 1px solid rgba(0, 123, 255, 0.5);
}

.badge-completed {
    background-color: rgba(40, 167, 69, 0.2);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.5);
}

/* Responsive adjustments for dashboard */
@media (max-width: 991.98px) {
    .dashboard-main {
        margin-top: 0 !important;
        padding-top: 1rem;
    }
}

/* Ensure proper spacing on mobile devices */
@media (max-width: 991.98px) {
    .dashboard-wrapper .row > div:first-child {
        padding-top: 0;
    }
}

/* Offcanvas adjustments */
.offcanvas.offcanvas-start {
    max-width: 80%; /* Ensure offcanvas doesn't take up entire screen on mobile */
}

/* Adjust sidebar for different screen sizes */
@media (min-width: 992px) {
    .dashboard-sidebar {
        position: sticky;
        top: 0;
        height: calc(100vh - 70px); /* Account for header height */
        overflow-y: auto;
    }
}

/* Ensure content area fills remaining space */
.dashboard-main {
    min-height: calc(100vh - 70px); /* Account for header height */
}

/* Toast notification customizations */
.toast {
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 0.5rem;
}

/* Button enhancements - Standardized Hierarchy */
.btn {
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    font-weight: 500;
    border: none;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

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

.btn-primary:hover {
    background-color: #6a0a17; /* Darker shade of crushed berry */
}

.btn-secondary {
    background-color: var(--bs-secondary);
}

.btn-success {
    background-color: var(--bs-success);
}

.btn-outline-primary {
    border: 1px solid var(--bs-primary);
    color: var(--bs-primary);
}

.btn-outline-primary:hover {
    background-color: var(--bs-primary);
    color: white;
}

/* Card enhancements */
.card {
    border: none;
    border-radius: 0.75rem;
    overflow: hidden;
}

.card-header {
    background-color: transparent;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem 1.25rem;
}

.card-body {
    padding: 1.25rem;
}

.list-group-item {
    border: none;
    border-radius: 0.5rem !important;
    margin-bottom: 0.5rem;
    padding: 0.75rem 1rem;
}

.list-group-item:first-child {
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
}

.list-group-item:last-child {
    border-bottom-left-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
}

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

.table th {
    border-top: none;
    font-weight: 600;
    color: var(--bs-dark);
}

.table-hover tbody tr:hover {
    background-color: rgba(136, 13, 30, 0.03);
}

/* Form controls */
.form-control, .form-select {
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
}

.form-control:focus, .form-select:focus {
    box-shadow: 0 0 0 0.25rem rgba(136, 13, 30, 0.15);
}

/* Alert enhancements */
.alert {
    border-radius: 0.75rem;
    border: none;
}

/* Progress bar enhancements */
.progress {
    border-radius: 1rem;
    height: 1rem;
}

.progress-bar {
    border-radius: 1rem;
}

.hover-danger:hover {
    color: var(--bs-danger) !important;
    transition: 0.2s;
}

/* ── Login / Logout Page Styles ── */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bone) 0%, var(--pine-blue) 100%);
    position: relative;
    overflow: hidden;
    padding: 2rem;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    filter: blur(60px);
    z-index: 0;
}

.hero-shape-1 {
    width: 400px;
    height: 400px;
    background: var(--crushed-berry);
    top: -100px;
    left: -100px;
    animation: float 6s ease-in-out infinite;
}

.hero-shape-2 {
    width: 300px;
    height: 300px;
    background: var(--raspberry);
    bottom: -50px;
    right: -50px;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

.login-card {
    background: white;
    border-radius: 1.5rem;
    padding: 3rem;
    max-width: 450px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.login-card h2 {
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--jet-black);
    font-size: 1.75rem;
}

.login-card .subtitle {
    text-align: center;
    color: var(--pine-blue);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.btn-primary-custom {
    background: linear-gradient(135deg, var(--crushed-berry) 0%, var(--raspberry) 100%);
    color: white;
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(136, 13, 30, 0.4);
    color: white;
}

.text-gradient {
    background: linear-gradient(135deg, var(--crushed-berry) 0%, var(--raspberry) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Prevent 'Sneaking Colors' (Bootstrap Overrides) ── */

