/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary-color: #64748b;
    --secondary-hover: #475569;
    --danger-color: #dc2626;
    --danger-hover: #b91c1c;
    --success-color: #16a34a;
    --background: #f8fafc;
    --surface: #ffffff;
    --border: #e2e8f0;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navigation */
.navbar {
    background-color: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

.nav-user {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Profile Dropdown Styling */
.user-profile-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background: none;
    border: none;
    padding: 0.375rem 0.625rem;
    cursor: pointer;
    border-radius: 0.5rem;
    transition: all 0.2s ease-in-out;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
}

.dropdown-toggle:hover {
    background-color: var(--background);
}

.dropdown-toggle:focus {
    outline: none;
}

.avatar-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #3b82f6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.25);
    border: 2px solid white;
}

.username {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-arrow {
    color: var(--text-secondary);
    transition: transform 0.2s ease-in-out;
}

.user-profile-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 0.5rem);
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    display: none;
    flex-direction: column;
    padding: 0.5rem 0;
    z-index: 110;
    animation: dropdownFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.user-profile-dropdown.open .dropdown-menu {
    display: flex;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
}

.dropdown-item:hover {
    background-color: var(--background);
    color: var(--primary-color);
}

.dropdown-item svg {
    color: var(--text-secondary);
    transition: color 0.15s ease;
}

.dropdown-item:hover svg {
    color: var(--primary-color);
}

.dropdown-item.logout-btn {
    border-top: 1px solid var(--border);
    margin-top: 0.25rem;
    padding-top: 0.75rem;
    color: var(--danger-color);
}

.dropdown-item.logout-btn:hover {
    background-color: #fef2f2;
    color: var(--danger-hover);
}

.dropdown-item.logout-btn:hover svg {
    color: var(--danger-hover);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    flex: 1;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--secondary-hover);
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background-color: var(--danger-hover);
}

.btn-link {
    background: none;
    color: var(--primary-color);
    padding: 0;
}

.btn-link:hover {
    text-decoration: underline;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Forms */
.form-control {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.375rem;
    font-size: 0.875rem;
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.form-container {
    background: var(--surface);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
}

.form-modal {
    background: var(--background);
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    border: 1px solid var(--border);
}

/* Login Page */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
}

.login-card {
    background: var(--surface);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 400px;
}

.login-card h1 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.login-card h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.login-info {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--background);
    border-radius: 0.375rem;
    font-size: 0.875rem;
}

.login-info code {
    background: var(--surface);
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-family: monospace;
}

/* Dashboard */
.dashboard h1 {
    margin-bottom: 2rem;
}

.dashboard-stats-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

@media (max-width: 1024px) {
    .dashboard-stats-wrapper {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.stats-column-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-left: 0.5rem;
    border-left: 4px solid var(--primary-color);
}

.stats-column:last-child .stats-column-title {
    border-left-color: var(--success-color);
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-bottom: 0;
}

.text-success {
    color: var(--success-color) !important;
}

.stat-card {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
    text-align: center;
}

.stat-card h3 {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.dashboard-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.action-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.action-card {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
}

.action-card h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.action-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 2rem;
}

.header-actions {
    display: flex;
    gap: 1rem;
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border);
    padding-bottom: 0.5rem;
}

.filter-tab {
    background: none;
    border: none;
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
    position: relative;
}

.filter-tab:hover {
    color: var(--primary-color);
    background-color: var(--background);
}

.filter-tab.active {
    color: var(--primary-color);
    background-color: rgba(37, 99, 235, 0.08);
    font-weight: 600;
}

.filter-tab.active::after {
    content: '';
    position: absolute;
    bottom: -0.52rem;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--primary-color);
}

/* Search and Sort */
.search-bar {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.search-bar input {
    margin-bottom: 1rem;
}

.sort-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.sort-controls label {
    font-weight: 500;
}

.sort-controls select {
    flex: 1;
    max-width: 200px;
}

/* Family Cards */
.families-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.family-card {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
    transition: box-shadow 0.2s;
}

.family-card:hover {
    box-shadow: var(--shadow-lg);
}

.family-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.family-header h3 {
    margin: 0;
}

.family-title-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
}

.family-thumbnail {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 0.375rem;
    border: 1px solid var(--border);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
}

.family-thumbnail:hover {
    transform: scale(1.05);
}

.family-header h3 a {
    color: var(--text-primary);
    text-decoration: none;
}

.family-header h3 a:hover {
    color: var(--primary-color);
}

.family-actions {
    display: flex;
    gap: 0.5rem;
}

.family-info {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--background);
    border-radius: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Detail Page Sections */
.section {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.section-header h2 {
    font-size: 1.5rem;
    margin: 0;
}

/* Members List */
.members-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.member-card {
    background: var(--background);
    padding: 1rem;
    border-radius: 0.375rem;
    border: 1px solid var(--border);
}

.member-card h4 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.member-card p {
    margin: 0.25rem 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Contacts List */
.contacts-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-card {
    background: var(--background);
    padding: 1rem;
    border-radius: 0.375rem;
    border: 1px solid var(--border);
}

/* Photos List */
.photos-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.photo-card {
    background: var(--background);
    border-radius: 0.375rem;
    border: 1px solid var(--border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.photo-thumbnail {
    width: 100%;
    max-width: 300px;
    height: auto;
    max-height: 200px;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.2s;
    display: block;
    margin: 0 auto;
}

.photo-thumbnail:hover {
    transform: scale(1.02);
}

.photo-info {
    padding: 1rem;
}

.photo-filename {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.photo-note {
    margin: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
    white-space: pre-wrap;
}

.photo-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

/* Notes List */
.notes-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.note-card {
    background: var(--background);
    padding: 1rem;
    border-radius: 0.375rem;
    border: 1px solid var(--border);
}

.note-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.note-card p {
    margin: 0;
    white-space: pre-wrap;
}

/* Pagination */
.pagination {
    margin-top: 2rem;
    text-align: center;
}

.pagination-info {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.pagination-buttons {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Messages */
.error-message {
    background: #fee2e2;
    color: #991b1b;
    padding: 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
    border: 1px solid #fecaca;
}

.success-message {
    background: #dcfce7;
    color: #166534;
    padding: 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
    border: 1px solid #bbf7d0;
}

.loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}

.no-results, .no-data {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}

/* Utility Classes */
.text-muted {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.text-secondary {
    color: var(--text-secondary);
}

/* Footer */
.footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 1.5rem 2rem;
    text-align: center;
    color: var(--text-secondary);
    margin-top: auto;
}

/* Error Page */
.error-page {
    text-align: center;
    padding: 4rem 2rem;
}

.error-page h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.error-page p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .sort-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .sort-controls select {
        max-width: none;
    }
    
    .family-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .members-list {
        grid-template-columns: 1fr;
    }
}

/* Photo Modal */
.photo-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.photo-modal-content {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    animation: zoom 0.3s;
}

@keyframes zoom {
    from {transform: scale(0.8)}
    to {transform: scale(1)}
}

.photo-modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.photo-modal-close:hover,
.photo-modal-close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

#photo-modal-caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #ccc;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 5px;
    max-width: 80%;
}

/* Deceased and Edit controls */
.member-card {
    position: relative;
    transition: all 0.2s ease-in-out;
}

.member-card.deceased {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
    opacity: 0.85;
}

.member-card .edit-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.member-card .edit-btn:hover {
    color: var(--primary-color);
    background-color: var(--border);
}

.deceased-grave {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    margin-left: 0.35rem;
    color: #475569;
}

.deceased-grave svg {
    display: inline-block;
}

.deceased-date {
    font-size: 0.85rem;
    color: #475569;
    font-weight: 500;
    margin-top: 0.35rem;
}

/* Deacon Banner Styles */
.deacon-banner {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: right;
}

.deacon-banner.assigned {
    background-color: #e0f2fe; /* Soft light blue/sky */
    color: #0369a1; /* Dark blue/sky text */
    border-left: 4px solid #0ea5e9;
}

.deacon-banner.unassigned {
    background-color: #f1f5f9; /* Soft gray */
    color: #64748b; /* Gray text */
    border-left: 4px solid #cbd5e1;
}

/* Deacon Admin Custom Styles */
.admin-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-top: 1.5rem;
    align-items: start;
}

@media (max-width: 1024px) {
    .admin-layout {
        grid-template-columns: 1fr;
    }
}

.admin-main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.admin-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.deacons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.deacon-card {
    background-color: #ffffff;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border, #e2e8f0);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s, box-shadow 0.2s;
}

.deacon-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.deacon-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.deacon-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.4);
}

.deacon-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.deacon-card-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary, #1e293b);
    margin: 0;
}

.deacon-card-status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    width: fit-content;
}

.badge-active {
    background-color: #dcfce7;
    color: #15803d;
    padding: 0.125rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

.badge-inactive {
    background-color: #fee2e2;
    color: #b91c1c;
    padding: 0.125rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

.deacon-card-stats {
    background-color: #f8fafc;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
    color: #475569;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.deacon-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.deacon-card-actions .btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

/* Modal and dialog style password reset styling */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.admin-modal {
    background-color: #ffffff;
    border-radius: 0.75rem;
    width: 100%;
    max-width: 450px;
    padding: 2rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-backdrop.open .admin-modal {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
}

.modal-close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #64748b;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.25rem;
    line-height: 1;
}

.modal-close-btn:hover {
    background-color: #f1f5f9;
    color: #1e293b;
}

/* Map View Styles */
.view-toggles {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.75rem;
}

.view-toggle-btn {
    background: transparent;
    border: 1px solid transparent;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.view-toggle-btn:hover {
    background-color: var(--border);
    color: var(--text-primary);
}

.view-toggle-btn.active {
    background-color: var(--primary-color);
    color: #ffffff;
    box-shadow: var(--shadow);
}

.map-view-container {
    background: var(--surface);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    margin-bottom: 1.5rem;
    position: relative;
}

.map-unconfigured {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    text-align: center;
    color: var(--text-secondary);
}

.map-unconfigured-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.map-unconfigured h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.map-unconfigured p {
    margin-bottom: 1rem;
    max-width: 500px;
}

.map-unconfigured code {
    background-color: var(--background);
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    border: 1px solid var(--border);
    font-family: monospace;
}

/* Made with Bob */

