:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --background-color: #f8f9fa;
    --text-color: #2c3e50;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navbar Styling */
.navbar {
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.4rem;
    color: var(--primary-color) !important;
}

.nav-link {
    font-weight: 500;
    color: var(--text-color) !important;
    padding: 0.5rem 1rem !important;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--secondary-color) !important;
}

/* Card Styling */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.card-title {
    color: var(--primary-color);
    font-weight: 600;
}

/* Button Styling */
.btn {
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    border-radius: 6px;
}

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

.btn-primary:hover {
    background-color: #2980b9;
    border-color: #2980b9;
}

/* Form Styling */
.form-control {
    border-radius: 6px;
    border: 1px solid #dee2e6;
    padding: 0.75rem 1rem;
}

.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.form-label {
    font-weight: 500;
    color: var(--text-color);
}

/* Table Styling */
.table {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
}

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

/* Badge Styling */
.badge {
    padding: 0.5em 1em;
    font-weight: 500;
    border-radius: 6px;
}

/* Alert Styling */
.alert {
    border: none;
    border-radius: 10px;
    padding: 1rem;
}

.alert-danger {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Dashboard Cards */
.dashboard-card {
    min-height: 160px;
    background-color: #fff;
    transition: box-shadow 0.2s ease;
}

.dashboard-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.dashboard-card .card-title {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.dashboard-card .card-text {
    font-size: 0.875rem;
}

.dashboard-stat {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-top: 1rem;
}

/* Footer */
.footer {
    margin-top: auto;
    background-color: white;
}

/* Utilities */
.shadow-sm {
    box-shadow: 0 1px 3px rgba(0,0,0,0.05) !important;
}

/* Admin Table Features */
.sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
}

.sortable:hover {
    background-color: #f8f9fa;
}

.sortable .bi {
    opacity: 0.3;
    transition: opacity 0.2s;
}

.sortable:hover .bi,
.sortable .bi-arrow-up-short,
.sortable .bi-arrow-down-short {
    opacity: 1;
}

.filter-btn {
    font-size: 0.875rem;
    opacity: 0;
    transition: opacity 0.2s, color 0.2s;
    color: #0d6efd !important;
    padding: 0.125rem 0.25rem !important;
    visibility: hidden;
}

th.sortable:hover .filter-btn,
th:hover .filter-btn {
    opacity: 1;
    visibility: visible;
}

.filter-btn:hover {
    opacity: 1;
    color: #0056b3 !important;
}

.filter-btn.text-primary {
    opacity: 1;
    visibility: visible;
    color: #0d6efd !important;
}

.filter-checkbox-item {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.2s;
    user-select: none;
}

.filter-checkbox-item:hover {
    background-color: #f8f9fa;
}

.filter-checkbox-item input[type="checkbox"] {
    cursor: pointer;
}

.filter-checkbox-item label {
    cursor: pointer;
    margin-bottom: 0;
}

#activeFiltersBar .badge {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
}

#activeFiltersBar .btn-close {
    margin-left: 0.25rem;
}

/* Full width table */
.container.table-full-width {
    max-width: 100% !important;
    padding-left: 1em !important;
    padding-right: 1em !important;
}

.card.table-full-width {
    margin-left: 0 !important;
    margin-right: 0 !important;
    border-radius: 0;
    border-left: none;
    border-right: none;
}

.card.table-full-width .card-body {
    padding-left: 1rem;
    padding-right: 1rem;
}

.table th {
    white-space: nowrap;
}

.table th .filter-btn {
    margin-left: 0.25rem;
}

/* Action buttons in tables */
.view-members-btn,
button.edit-org-btn {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    white-space: nowrap;
}

.view-members-btn i,
button.edit-org-btn i {
    font-size: 0.875rem;
}

/* Ensure dropdown items maintain consistent styling */
.dropdown-menu .dropdown-item {
    font-size: 1rem;
    padding: 0.5rem 1rem;
}

.dropdown-menu .dropdown-item i {
    font-size: 1rem;
}

/* Fix dropdown menus being cut off in tables */
.table-responsive {
    overflow-x: auto;
    overflow-y: visible !important;
}

/* Ensure dropdowns can escape table containers */
.table-responsive .dropdown,
.table .dropdown {
    position: static;
}

.table-responsive .dropdown-menu,
.table .dropdown-menu {
    position: absolute;
    z-index: 1050;
    max-height: none;
}

/* Allow dropdown to overflow table boundaries */
.card-body {
    overflow: visible;
}

.card {
    overflow: visible;
}

/* Compact buttons for tables with 10+ rows */
table.compact-buttons .btn-group .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    line-height: 1.3;
}

table.compact-buttons .btn-group .btn i {
    font-size: 0.875rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .navbar {
        padding: 0.5rem 0;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }

    .dashboard-stat {
        font-size: 1.5rem;
    }
} 