﻿body {
}

* {
    font-family: 'Inter', sans-serif;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #a8a8a8;
    }

.custom-input:focus,
.custom-select:focus,
.custom-textarea:focus {
    border-color: #00a651;
    box-shadow: 0 0 0 3px rgba(0, 166, 81, 0.1);
}

.form-label {
    font-weight: 500;
    color: #00294d;
}

.required:after {
    content: '*';
    color: #e11d48;
    margin-left: 4px;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-active {
    background: #e1f5ed;
    color: #00a651;
}

.status-inactive {
    background: #fee2e2;
    color: #dc2626;
}

.status-pending {
    background: #fff6e0;
    color: #b58104;
}

.role-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.role-super-admin {
    background: #fee2e2;
    color: #dc2626;
}

.role-admin {
    background: #fef3c7;
    color: #d97706;
}

.role-manager {
    background: #dbeafe;
    color: #1d4ed8;
}

.role-coordinator {
    background: #f3e8ff;
    color: #7c3aed;
}

.role-volunteer {
    background: #ecfdf5;
    color: #059669;
}

.permission-badge {
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.625rem;
    font-weight: 600;
    background: #f0f9ff;
    color: #0369a1;
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    right: 0;
    top: 100%;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 50;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

    .dropdown-menu.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    color: #374151;
    text-decoration: none;
    transition: background-color 0.2s ease;
    cursor: pointer;
}

    .dropdown-item:hover {
        background-color: #f3f4f6;
    }

    .dropdown-item.danger:hover {
        background-color: #fee2e2;
        color: #dc2626;
    }

.action-btn {
    transition: all 0.2s ease;
}

    .action-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

.modal {
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

    .modal.show {
        display: flex !important;
    }

.modal-content {
    transform: scale(0.7);
    opacity: 0;
    transition: all 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.modal.show .modal-content {
    transform: scale(1);
    opacity: 1;
}

.stats-card {
    transition: all 0.3s ease;
}

    .stats-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    }

.table-row {
    transition: all 0.2s ease;
}

    .table-row:hover {
        background-color: #f8fffe;
        transform: scale(1.002);
    }

.tab-button {
    transition: all 0.3s ease;
    position: relative;
}

    .tab-button.active {
        background-color: #00a651;
        color: white;
    }

        .tab-button.active::after {
            content: '';
            position: absolute;
            bottom: -1px;
            left: 0;
            right: 0;
            height: 3px;
            background-color: #00a651;
            border-radius: 2px 2px 0 0;
        }

    .tab-button:not(.active):hover {
        background-color: #e1f5ed;
        color: #00a651;
    }

.permission-matrix {
    display: grid;
    gap: 1px;
    background-color: #e5e7eb;
    border-radius: 0.5rem;
    overflow: hidden;
}

.permission-header {
    background-color: #f9fafb;
    padding: 0.75rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
}

.permission-cell {
    background-color: white;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
}

.permission-checkbox {
    width: 18px;
    height: 18px;
    accent-color: #00a651;
}

.role-card {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

    .role-card:hover {
        border-color: #00a651;
        transform: translateY(-2px);
    }

    .role-card.selected {
        border-color: #00a651;
        background-color: #f0fdf4;
    }

/* Color scheme classes */
.color-red {
    background: #fee2e2;
    color: #dc2626;
}

.color-yellow {
    background: #fef3c7;
    color: #d97706;
}

.color-blue {
    background: #dbeafe;
    color: #1d4ed8;
}

.color-purple {
    background: #f3e8ff;
    color: #7c3aed;
}

.color-green {
    background: #ecfdf5;
    color: #059669;
}

.color-indigo {
    background: #e0e7ff;
    color: #4338ca;
}

.icon-red {
    color: #dc2626;
}

.icon-yellow {
    color: #d97706;
}

.icon-blue {
    color: #1d4ed8;
}

.icon-purple {
    color: #7c3aed;
}

.icon-green {
    color: #059669;
}

.icon-indigo {
    color: #4338ca;
}

.bg-red {
    background: #fef2f2;
}

.bg-yellow {
    background: #fffbeb;
}

.bg-blue {
    background: #eff6ff;
}

.bg-purple {
    background: #faf5ff;
}

.bg-green {
    background: #f0fdf4;
}

.bg-indigo {
    background: #eef2ff;
}

@media (max-width: 768px) {
    #sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

        #sidebar.mobile-open {
            transform: translateX(0);
        }

    #main-section {
        margin-left: 0;
    }

    .mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 25;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

        .mobile-overlay.show {
            opacity: 1;
            visibility: visible;
        }
}

.error-message {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

main#main-section {
    overflow: scroll;
}


 