/* ========================================
   CSS VARIABELEN
   ======================================== */
   :root {
    --primary-color: #008f39;
    --secondary-color: #f8f9fa;
    --text-color: #212529;
    --hover-color: #007a31;
    --primary-hover-color: #007a31;
    --primary-light: rgba(0, 143, 57, 0.1);
    --link-color: #333333;
    --link-hover-color: var(--primary-color);
}

/* ========================================
   ALGEMENE BODY STYLING
   ======================================== */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    padding-top: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--text-color);
}

body.has-admin-bar {
    margin-top: 32px;
}

body.has-admin-bar .top-links {
    margin-top: 32px;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1, h2, h3, h4, h5 {
    color: #2c2c2c;
}

.display-6 {
    font-weight: 700;
}

.lead {
    font-size: 1.15rem;
    font-weight: 300;
}

.text-muted {
    color: #6c757d !important;
}

/* ========================================
   ADMIN BAR
   ======================================== */
#admin-bar {
    background-color: #23282d;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    height: 32px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    box-shadow: 0 1px 0 rgba(0,0,0,0.15);
}

.admin-bar-container {
    display: flex;
    justify-content: space-between;
    height: 100%;
    padding: 0 10px;
}

.admin-bar-left, 
.admin-bar-right {
    display: flex;
    align-items: center;
    height: 100%;
}

#admin-bar a, 
#admin-bar button {
    color: #ccc;
    text-decoration: none;
    font-size: 13px;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 8px;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out;
}

#admin-bar a:hover, 
#admin-bar button:hover {
    color: #fff;
    background-color: #32373c;
}

.site-home {
    font-weight: 600;
}

.site-home i {
    margin-right: 5px;
}

/* Admin Dropdown */
.admin-dropdown {
    position: relative;
    height: 100%;
}

.admin-dropdown-toggle {
    background: none;
    border: none;
    cursor: pointer;
    height: 100%;
    padding: 0 10px;
    white-space: nowrap;
}

.admin-dropdown-toggle i:last-child {
    margin-left: 4px;
    font-size: 10px;
}

.admin-dropdown-content {
    display: none;
    position: absolute;
    background-color: #32373c;
    min-width: 160px;
    box-shadow: 0 3px 5px rgba(0,0,0,.2);
    z-index: 1;
    left: 0;
    top: 32px;
}

.admin-dropdown-content a {
    color: #b4b9be;
    padding: 10px 12px;
    text-decoration: none;
    display: flex;
    align-items: center;
    height: auto;
}

.admin-dropdown-content a i {
    margin-right: 8px;
    width: 20px;
    text-align: center;
}

.admin-dropdown-content a:hover {
    color: #00b9eb;
    background-color: #191f25;
}

.admin-dropdown-content.show {
    display: block;
}

/* Notification en comment counters */
.notification-icon, 
.comments-icon {
    position: relative;
}

.notification-count, 
.comments-count {
    position: absolute;
    top: 4px;
    right: 2px;
    background-color: #ca4a1f;
    color: #fff;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* User dropdown */
.user-dropdown {
    margin-left: 8px;
}

.user-toggle i:first-child {
    font-size: 18px;
    margin-right: 4px;
}

.dropdown-divider {
    border-top: 1px solid #3c4349;
    margin: 5px 0;
}

/* Action buttons */
.admin-action-button {
    padding: 0 10px;
}

.admin-action-button i {
    margin-right: 5px;
}

/* ========================================
   TOP LINKS BAR
   ======================================== */
.top-links {
    background-color: #333;
    color: white;
    padding: 5px 0;
    font-size: 0.9rem;
}

.top-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.top-links a {
    color: white;
    text-decoration: none;
}

.top-links a:hover {
    text-decoration: underline;
}

/* ========================================
   NAVBAR & LOGO
   ======================================== */
.navbar-brand {
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: 15px;
}

.navbar-brand img {
    height: 60px;
    width: auto;
}

.main-navbar {
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    background-color: white;
    padding: 0;
}

/* Main navigation menu */
.main-nav {
    background-color: var(--primary-color);
    padding: 0;
}

.main-nav .nav-link {
    color: white !important;
    padding: 15px 20px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.main-nav .nav-link:hover,
.main-nav .nav-link:focus {
    background-color: var(--hover-color);
}

.main-nav .nav-item.dropdown .dropdown-menu {
    margin-top: 0;
    border-radius: 0 0 5px 5px;
    border-top: none;
}

/* ========================================
   DROPDOWN STYLING
   ======================================== */
.dropdown-menu {
    min-width: 220px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-radius: 0 0 8px 8px;
    border: 1px solid rgba(0,0,0,0.1);
    padding: 10px 0;
    margin-top: 0;
}

.dropdown-item {
    padding: 8px 20px;
    display: flex;
    align-items: center;
}

.dropdown-item:hover {
    background-color: var(--primary-light);
}

.dropdown-item i {
    width: 20px;
    text-align: center;
    margin-right: 10px;
    color: var(--primary-color);
}

/* ========================================
   SEARCH FORM
   ======================================== */
.search-form {
    display: flex;
    align-items: center;
}

.search-form .form-control {
    height: 38px;
    border-radius: 20px 0 0 20px;
    border-right: none;
}

.search-form .btn {
    border-radius: 0 20px 20px 0;
    background-color: white;
    border: 1px solid #ced4da;
    border-left: none;
    color: #777;
}

.search-form .btn:hover {
    color: var(--primary-color);
}

/* ========================================
   CONTENT SECTION
   ======================================== */
.content {
    flex: 1;
}

/* ========================================
   BUTTONS
   ======================================== */
.text-primary {
    color: var(--primary-color) !important;
}

.text-success {
    color: var(--primary-color) !important;
}

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

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

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

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

.volunteer-btn {
    position: relative;
    animation: pulse 2s infinite;
    background-color: #ff6b00 !important;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* ========================================
   ALERTS
   ======================================== */
.alert {
    border-radius: 8px;
    border-left: 4px solid;
}

.alert-success {
    border-left-color: var(--primary-color);
}

.alert-danger {
    border-left-color: #dc3545;
}

.alert-warning {
    border-left-color: #ffc107;
}

.alert-info {
    border-left-color: #0dcaf0;
}

/* ========================================
   CARDS
   ======================================== */
.card {
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Fix voor card-header text kleur */
.card-header.text-white h1,
.card-header.text-white h2,
.card-header.text-white h3,
.card-header.text-white h4,
.card-header.text-white h5,
.card-header.text-white h6,
.card-header.bg-success h1,
.card-header.bg-success h2,
.card-header.bg-success h3,
.card-header.bg-success h4,
.card-header.bg-success h5,
.card-header.bg-success h6 {
    color: white !important;
}

.card:hover {
    box-shadow: 0 10px 15px rgba(0,0,0,0.1) !important;
}

.support-card {
    transition: transform 0.3s ease, box-shadow 0.2s ease;
}

.support-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

.impact-section .card {
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
}

.contact-info .card {
    border-radius: 8px;
}

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

/* ========================================
   ICONS
   ======================================== */
.icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--primary-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
}

.icon-circle i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.check-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 12px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ========================================
   LISTS
   ======================================== */
.benefits-list li {
    font-size: 1rem;
}

.benefits-list span {
    font-weight: 500;
}

/* ========================================
   RESPONSIVE - MOBILE
   ======================================== */
@media screen and (max-width: 768px) {
    .admin-bar .site-home span {
        display: none;
    }
    
    .admin-action-button span {
        display: none;
    }
    
    .icon-circle {
        width: 70px;
        height: 70px;
    }
    
    .display-6 {
        font-size: 2rem;
    }
}

@media (max-width: 992px) {
    .navbar-brand img {
        height: 45px;
    }
    
    .main-nav .navbar-toggler {
        color: white;
        border-color: rgba(255,255,255,0.5);
    }
    
    .main-nav .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.95)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }
    
    .main-nav .navbar-collapse {
        background-color: var(--primary-color);
    }
    
    .dropdown-menu {
        background-color: rgba(255,255,255,0.1);
        border: none;
        box-shadow: none;
    }
    
    .dropdown-item {
        color: white;
    }
    
    .dropdown-item i {
        color: white;
    }
    
    .top-links ul {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }
}

@media (max-width: 767.98px) {
    .d-flex.justify-content-center.gap-3 {
        flex-direction: column;
    }
    
    .d-flex.justify-content-center.gap-3 .btn {
        margin-bottom: 10px;
    }
}