/* NGO MIS Custom Styles */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&family=Poppins:wght@300;400;500;600;700&display=swap');

/* Root Variables for NGO Theme */
:root {
    --ngo-primary: #28a745; /* Green for nature/environment */
    --ngo-secondary: #007bff; /* Blue for trust */
    --ngo-accent: #ffc107; /* Yellow for hope/donations */
    --ngo-dark: #343a40;
    --ngo-light: #f8f9fa;
    --ngo-success: #28a745;
    --ngo-info: #17a2b8;
    --ngo-warning: #ffc107;
    --ngo-danger: #dc3545;
    --ngo-muted: #6c757d;
    --ngo-border: #dee2e6;
    --ngo-shadow: rgba(0, 0, 0, 0.1);
    --ngo-shadow-hover: rgba(0, 0, 0, 0.15);
    --sidebar-width: 250px;
    --sidebar-collapsed-width: 70px;
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Styles */
body {
    font-family: 'Poppins', 'Roboto', sans-serif;
    background: linear-gradient(135deg, var(--ngo-light) 0%, #e9ecef 100%);
    color: var(--ngo-dark);
    line-height: 1.7;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--ngo-dark);
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}

p {
    margin-bottom: 1rem;
}

/* Navbar/Sidebar Styles */
#sidebar {
    background: linear-gradient(135deg, var(--ngo-primary) 0%, var(--ngo-secondary) 100%);
    box-shadow: 4px 0 20px var(--ngo-shadow);
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(255,255,255,0.1);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.3) transparent;
    transition: width var(--transition);
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    z-index: 1000;
}

#sidebar::-webkit-scrollbar {
    width: 6px;
}

#sidebar::-webkit-scrollbar-track {
    background: transparent;
}

#sidebar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 3px;
}

#sidebar .nav-link {
    transition: var(--transition);
    border-radius: var(--border-radius);
    margin: 4px 8px;
    padding: 12px 16px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}

#sidebar.collapsed .nav-link {
    padding: 12px 8px;
    justify-content: center;
}

#sidebar.collapsed .nav-link span {
    display: none;
}

#sidebar .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

#sidebar .nav-link:hover::before {
    left: 100%;
}

#sidebar .nav-link:hover {
    background-color: rgba(255,255,255,0.15);
    transform: translateX(8px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

#sidebar .nav-link.active {
    background-color: rgba(255,255,255,0.25);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    border-left: 3px solid white;
}

#sidebar h5 {
    font-weight: 700;
    color: white;
    text-align: center;
    padding: 24px 16px 20px;
    border-bottom: 2px solid rgba(255,255,255,0.2);
    margin-bottom: 16px;
    font-size: 1.25rem;
    position: sticky;
    top: 0;
    background: inherit;
    backdrop-filter: blur(10px);
    z-index: 1;
}

/* Collapse menu styling */
#sidebar .collapse {
    background: rgba(255,255,255,0.05);
    border-radius: var(--border-radius);
    margin: 4px 8px;
    padding: 8px 0;
}

#sidebar .collapse .nav-link {
    margin: 2px 8px;
    padding: 8px 16px;
    font-size: 0.9rem;
    border-left: 2px solid transparent;
}

#sidebar .collapse .nav-link:hover {
    border-left-color: rgba(255,255,255,0.5);
    background-color: rgba(255,255,255,0.1);
    transform: translateX(4px);
}

/* Main Content */
.flex-grow-1 {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    min-height: 100vh;
    box-shadow: -4px 0 20px var(--ngo-shadow);
    padding: 2rem;
    margin-left: var(--sidebar-width);
    transition: margin-left var(--transition);
}

#sidebar.collapsed ~ .flex-grow-1 {
    margin-left: var(--sidebar-collapsed-width);
}

/* Dashboard specific improvements */
.dashboard-header {
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(248,249,250,0.9) 100%);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.summary-cards .card {
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
}

.summary-cards .card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    border-radius: 50%;
    transform: translate(30px, -30px);
}

.summary-cards .card-body {
    position: relative;
    z-index: 1;
}

/* Chart containers */
.chart-container {
    position: relative;
    height: 400px;
    margin: auto;
}

/* Card Improvements */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 25px var(--ngo-shadow);
    transition: var(--transition);
    overflow: hidden;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px var(--ngo-shadow-hover);
}

.card-header {
    background: linear-gradient(135deg, var(--ngo-primary) 0%, var(--ngo-secondary) 100%);
    color: white;
    border-radius: var(--border-radius) var(--border-radius) 0 0 !important;
    border: none;
    padding: 1.5rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.card-body {
    padding: 2rem;
}

.card-title {
    font-weight: 600;
    color: var(--ngo-dark);
    margin-bottom: 1rem;
}

/* Button Styles */
.btn {
    border-radius: var(--border-radius);
    padding: 12px 24px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--ngo-primary) 0%, var(--ngo-secondary) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, var(--ngo-success) 0%, #20c997 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-info {
    background: linear-gradient(135deg, var(--ngo-info) 0%, #138496 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(23, 162, 184, 0.3);
}

.btn-warning {
    background: linear-gradient(135deg, var(--ngo-warning) 0%, #e0a800 100%);
    color: #212529;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, var(--ngo-danger) 0%, #c82333 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.btn-outline-primary {
    border: 2px solid var(--ngo-primary);
    color: var(--ngo-primary);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--ngo-primary);
    color: white;
}

/* Form Improvements */
.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-control {
    border-radius: var(--border-radius);
    border: 2px solid var(--ngo-border);
    padding: 14px 16px;
    font-size: 1rem;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.form-control:focus {
    border-color: var(--ngo-primary);
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.15);
    background: white;
    transform: translateY(-2px);
}

.form-control:invalid {
    border-color: var(--ngo-danger);
}

.form-control:valid {
    border-color: var(--ngo-success);
}

.form-label {
    font-weight: 600;
    color: var(--ngo-dark);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-label::after {
    content: '*';
    color: var(--ngo-danger);
    font-weight: bold;
}

.form-text {
    font-size: 0.85rem;
    color: var(--ngo-muted);
    margin-top: 0.25rem;
}

/* Validation Feedback */
.valid-feedback {
    display: block;
    color: var(--ngo-success);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.invalid-feedback {
    display: block;
    color: var(--ngo-danger);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.was-validated .form-control:valid {
    border-color: var(--ngo-success);
}

.was-validated .form-control:invalid {
    border-color: var(--ngo-danger);
}

/* Table Improvements */
.table-responsive {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.table {
    margin-bottom: 0;
}

.table thead th {
    background: linear-gradient(135deg, var(--ngo-primary), var(--ngo-secondary));
    color: white;
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.table tbody tr:hover {
    background-color: rgba(40, 167, 69, 0.05);
}

/* Alert Styles */
.alert {
    border-radius: 8px;
    border: none;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--ngo-dark), #495057);
    color: white;
    padding: 20px 0;
    text-align: center;
    margin-top: auto;
}

/* Responsive Design */
@media (max-width: 1200px) {
    :root {
        --sidebar-width: 0px;
    }

    #sidebar {
        position: fixed;
        left: -280px;
        top: 0;
        height: 100vh;
        width: 280px;
        z-index: 1050;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 4px 0 20px rgba(0,0,0,0.3);
        overflow-y: auto;
    }

    #sidebar.show {
        left: 0;
    }

    .flex-grow-1 {
        margin-left: 0;
        padding: 1.5rem;
    }

    /* Overlay for mobile sidebar */
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 1049;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .sidebar-overlay.show {
        display: block;
        opacity: 1;
    }
}

@media (max-width: 992px) {
    #sidebar {
        width: 260px;
        left: -260px;
    }

    #sidebar.show {
        left: 0;
    }

    .flex-grow-1 {
        padding: 1.25rem;
    }

    /* Improve card grid responsiveness */
    .row > .col-lg-3 {
        margin-bottom: 1.5rem;
    }

    /* Medium screen notification improvements */
    .notification-item {
        padding: 1.25rem !important;
        margin-bottom: 1.25rem !important;
    }

    .notification-item .d-flex.align-items-start {
        gap: 0.625rem !important;
    }

    .notification-item .d-flex.align-items-start .fas.fa-bell {
        font-size: 1.15rem !important;
    }

    .notification-item .mt-1 {
        font-size: 1.15rem !important;
    }

    .notification-item .badge.bg-warning.text-dark {
        padding: 0.4rem 0.8rem !important;
        font-size: 0.8rem !important;
    }

    .notifications-list {
        max-height: 350px !important;
    }
}

@media (max-width: 768px) {
    #sidebar {
        width: 280px;
        left: -280px;
    }

    #sidebar.show {
        left: 0;
    }

    .flex-grow-1 {
        padding: 1rem;
    }

    /* Stack layout vertically on mobile */
    .d-flex {
        flex-direction: column;
    }

    .card-body {
        padding: 1.5rem;
    }

    /* Full width buttons on mobile */
    .btn {
        width: 100%;
        margin-bottom: 0.75rem;
        padding: 14px 20px;
    }

    .table-responsive {
        font-size: 0.85rem;
        border-radius: var(--border-radius);
    }

    .form-control {
        padding: 12px 14px;
        font-size: 1rem;
    }

    .form-label {
        font-size: 0.9rem;
    }

    /* Adjust dashboard header for mobile */
    .d-flex.justify-content-between.align-items-center {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 1rem;
    }

    .text-end {
        text-align: left !important;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .container, .container-fluid {
        padding: 1rem 0.75rem;
    }

    h1 {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    .card-title {
        font-size: 1.1rem;
    }

    .card-body {
        padding: 1.25rem;
    }

    .flex-grow-1 {
        padding: 0.75rem;
    }

    .btn {
        font-size: 0.9rem;
        padding: 12px 18px;
    }

    /* Better spacing for summary cards on small screens */
    .col-lg-3.col-md-6.mb-3 {
        margin-bottom: 1rem !important;
    }

    /* Adjust chart containers for small screens */
    .col-lg-8, .col-lg-4 {
        margin-bottom: 1.5rem;
    }

    /* Ultra-Responsive Notification Layout */
    .notification-item {
        padding: 1rem !important;
        margin-bottom: 1rem !important;
        border-radius: 8px !important;
        transition: all 0.3s ease;
    }

    .notification-item:hover {
        transform: translateX(2px) !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
    }

    /* Desktop and tablet: Horizontal layout */
    .notification-item .d-flex.align-items-start {
        flex-direction: row !important;
        align-items: flex-start !important;
        gap: 0.75rem !important;
    }

    .notification-item .d-flex.align-items-start .fas.fa-bell {
        flex-shrink: 0 !important;
        font-size: 1.1rem !important;
        margin-top: 0.1rem !important;
        margin-right: 0.75rem !important;
        margin-bottom: 0 !important;
        align-self: flex-start !important;
    }

    .notification-item .flex-grow-1 {
        flex: 1 !important;
        min-width: 0 !important; /* Allow text to wrap */
    }

    .notification-item .badge.bg-warning.text-dark {
        flex-shrink: 0 !important;
        align-self: flex-start !important;
        margin-top: 0.1rem !important;
        padding: 0.375rem 0.75rem !important;
        font-size: 0.75rem !important;
        border-radius: 20px !important;
        font-weight: 600 !important;
    }

    /* Mobile: Stacked layout */
    @media (max-width: 576px) {
        .notification-item .d-flex.align-items-start {
            flex-direction: column !important;
            align-items: flex-start !important;
            gap: 0.5rem !important;
        }

        .notification-item .d-flex.align-items-start .fas.fa-bell {
            align-self: flex-start !important;
            margin-bottom: 0.25rem !important;
            margin-right: 0 !important;
        }

        .notification-item .flex-grow-1 {
            width: 100% !important;
        }

        .notification-item .badge.bg-warning.text-dark {
            align-self: flex-end !important;
            margin-top: 0.5rem !important;
        }
    }

    /* Small tablets and large phones */
    @media (max-width: 768px) and (min-width: 577px) {
        .notification-item .d-flex.align-items-start {
            gap: 0.5rem !important;
        }

        .notification-item .badge.bg-warning.text-dark {
            font-size: 0.7rem !important;
            padding: 0.3rem 0.6rem !important;
        }
    }

    .notification-item small.text-muted {
        font-size: 0.8rem !important;
        opacity: 0.8 !important;
        display: block !important;
        margin-top: 0.25rem !important;
    }

    .notification-item p.mb-1 {
        margin-bottom: 0.25rem !important;
        line-height: 1.4 !important;
        word-wrap: break-word !important;
    }

    .notifications-list {
        max-height: 300px !important;
        scrollbar-width: thin !important;
        scrollbar-color: var(--ngo-primary) transparent !important;
    }

    .notifications-list::-webkit-scrollbar {
        width: 4px !important;
    }

    .notifications-list::-webkit-scrollbar-thumb {
        background: var(--ngo-primary) !important;
        border-radius: 2px !important;
    }

    /* Better spacing for notification cards on mobile */
    .col-lg-6.mb-4 .card-body {
        padding: 1.25rem !important;
    }
}

/* Navigation Toggle */
.sidebar-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1051;
    background: linear-gradient(135deg, var(--ngo-primary), var(--ngo-secondary));
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: var(--transition);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.sidebar-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.3);
}

.sidebar-toggle.collapsed {
    left: 90px; /* Position when sidebar is collapsed */
}

/* Desktop responsive - sidebar can be collapsed */
@media (min-width: 1201px) {
    #sidebar {
        width: var(--sidebar-width);
    }

    #sidebar.collapsed {
        width: var(--sidebar-collapsed-width);
    }

    .sidebar-toggle {
        display: flex;
    }

    /* Extra large screen notification improvements */
    .notifications-list {
        max-height: 450px !important;
    }

    .notification-item {
        padding: 1.5rem !important;
        margin-bottom: 1.5rem !important;
    }

    .notification-item .d-flex.align-items-start {
        gap: 1rem !important;
    }

    .notification-item .d-flex.align-items-start .fas.fa-bell {
        font-size: 1.25rem !important;
    }

    .notification-item .mt-1 {
        font-size: 1.2rem !important;
    }

    .notification-item .badge.bg-warning.text-dark {
        padding: 0.5rem 1rem !important;
        font-size: 0.8rem !important;
    }

    .notification-item small.text-muted {
        font-size: 0.9rem !important;
    }
}

/* Mobile responsive - sidebar is overlay */
@media (max-width: 1200px) {
    :root {
        --sidebar-width: 0px;
    }

    #sidebar {
        position: fixed;
        left: -280px;
        top: 0;
        height: 100vh;
        width: 280px;
        z-index: 1050;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 4px 0 20px rgba(0,0,0,0.3);
        overflow-y: auto;
    }

    #sidebar.show {
        left: 0;
    }

    .flex-grow-1 {
        margin-left: 0;
        padding: 1.5rem;
    }

    /* Overlay for mobile sidebar */
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 1049;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .sidebar-overlay.show {
        display: block;
        opacity: 1;
    }

    .sidebar-toggle {
        display: flex;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.pulse-animation {
    animation: pulse 2s infinite;
}

/* Utility Classes */
.shadow-sm-custom {
    box-shadow: 0 2px 8px var(--ngo-shadow) !important;
}

.shadow-lg-custom {
    box-shadow: 0 8px 25px var(--ngo-shadow) !important;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--ngo-primary), var(--ngo-secondary)) !important;
}

.text-gradient {
    background: linear-gradient(135deg, var(--ngo-primary), var(--ngo-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Timeline Styles */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--ngo-primary), var(--ngo-secondary));
}

.timeline-item {
    position: relative;
    margin-bottom: 20px;
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.timeline-marker {
    position: absolute;
    left: -22px;
    top: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--ngo-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.timeline-content {
    background: rgba(255, 255, 255, 0.8);
    padding: 15px;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-left: 3px solid var(--ngo-primary);
}

/* Alerts Styles */
.alerts-list .alert-item {
    transition: var(--transition);
}

.alerts-list .alert-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Notifications Styles */
.notifications-list {
    max-height: 400px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--ngo-primary) transparent;
    padding-right: 0.5rem;
}

.notifications-list::-webkit-scrollbar {
    width: 6px;
}

.notifications-list::-webkit-scrollbar-track {
    background: transparent;
}

.notifications-list::-webkit-scrollbar-thumb {
    background: var(--ngo-primary);
    border-radius: 3px;
}

.notifications-list::-webkit-scrollbar-thumb:hover {
    background: var(--ngo-secondary);
}

.notification-item {
    transition: var(--transition);
    border-radius: var(--border-radius);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.notification-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--ngo-primary), var(--ngo-secondary));
    transition: width 0.3s ease;
}

.notification-item:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 25px var(--ngo-shadow-hover);
}

.notification-item:hover::before {
    width: 6px;
}

.notification-item.bg-warning.bg-opacity-10 {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 193, 7, 0.05) 100%) !important;
    border-left: 4px solid var(--ngo-warning);
}

.notification-item.bg-light {
    background: rgba(248, 249, 250, 0.8) !important;
    border-left: 4px solid var(--ngo-muted);
}

/* Event notification specific styling */
.notification-item .text-uppercase.fw-bold {
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 12px;
    display: inline-block;
    margin-bottom: 0.5rem;
    font-weight: 600 !important;
    text-transform: uppercase;
}

.notification-item .notification-type.event {
    background: linear-gradient(135deg, var(--ngo-primary), var(--ngo-secondary));
    color: white;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.notification-item .notification-type.donation {
    background: linear-gradient(135deg, var(--ngo-success), #20c997);
    color: white;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.notification-item .notification-type.deadline {
    background: linear-gradient(135deg, var(--ngo-warning), #e0a800);
    color: #212529;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
}

/* Responsive notification type badges */
@media (max-width: 768px) {
    .notification-item .text-uppercase.fw-bold {
        font-size: 0.7rem;
        padding: 2px 8px;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--ngo-light);
}

::-webkit-scrollbar-thumb {
    background: var(--ngo-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--ngo-secondary);
}

/* Print Styles */
@media print {
    #sidebar, .mobile-toggle, .btn {
        display: none !important;
    }

    .flex-grow-1 {
        margin-left: 0 !important;
    }

    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}