﻿.management-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ========================================
   NAVIGATION TAB STYLING
   ======================================== */

/* Default navbar styling */
.navbar {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Extension Lakes Admin - Home Tab (white/gray with darker contrast) */
.navbar-brand {
    background: #dadbde;
    color: #111827 !important;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    border: 2px solid #cbd5e1;
    transition: all 0.2s ease;
}

    .navbar-brand:hover {
        background: #e5e7eb;
        border-color: #9ca3af;
        transform: translateY(-1px);
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    }

    .navbar-brand .brand-text {
        color: #111827;
        font-weight: 700;
    }

/* Wisconsin Lake List Directory Tab - Green Theme */
.navbar-nav .nav-item:nth-child(1) .nav-link {
    background: linear-gradient(135deg, #206b3b 0%, #22a04f 100%);
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    margin-right: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

    .navbar-nav .nav-item:nth-child(1) .nav-link::before {
        content: "";
        display: inline-block;
        width: 18px;
        height: 18px;
        background-image: url("/images/Partnership-logo-white.png");
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.25));
    }

    .navbar-nav .nav-item:nth-child(1) .nav-link:hover {
        background: linear-gradient(135deg, #22a04f 0%, #1e9045 100%);
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(39, 179, 90, 0.3);
    }

/* Lake Tides Subscription Tab - Blue Theme */
.navbar-nav .nav-item:nth-child(2) .nav-link {
    background: linear-gradient(135deg, #5c76cb 0%, #4a5fb8 100%);
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

    .navbar-nav .nav-item:nth-child(2) .nav-link:hover {
        background: linear-gradient(135deg, #4a5fb8 0%, #3d4fa0 100%);
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(92, 118, 203, 0.3);
    }

    /* Heron icon styling for Lake Tides tab */
    .navbar-nav .nav-item:nth-child(2) .nav-link .heron-icon {
        height: 1.2em;
        width: auto;
        vertical-align: middle;
        filter: brightness(0) invert(1); /* Makes the icon white */
    }

/* Active state for current page */
.navbar-nav .nav-item .nav-link.active {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
    font-weight: 700;
}

/* Responsive adjustments for navigation */
@media (max-width: 768px) {
    .navbar-brand {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .navbar-nav .nav-item .nav-link {
        padding: 0.5rem 1rem;
        margin-bottom: 0.5rem;
        font-size: 0.9rem;
    }

    .navbar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .navbar-brand,
    .navbar-nav .nav-item .nav-link {
        width: 100%;
        justify-content: center;
        text-align: center;
        padding: 0.75rem 1rem;
        border-radius: 10px;
        margin-right: 0;
    }

    /* Tighten logo/icon spacing on the green tab */
    .navbar-nav .nav-item:nth-child(1) .nav-link {
        gap: 0.4rem;
        padding: 0.7rem 1rem;
    }

        .navbar-nav .nav-item:nth-child(1) .nav-link::before {
            width: 16px;
            height: 16px;
        }

    /* Ensure the blue tab stays consistent */
    .navbar-nav .nav-item:nth-child(2) .nav-link {
        gap: 0.4rem;
        padding: 0.7rem 1rem;
    }

    .navbar-nav {
        width: 100%;
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Fix wrapping issues for medium-small screens (680-768px) */
@media (min-width: 680px) and (max-width: 768px) {
    .navbar {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .navbar-brand,
    .navbar-nav .nav-item .nav-link {
        width: auto;
        min-width: 200px;
        flex: 0 1 auto;
    }

    .navbar-nav {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        width: auto;
    }
}

/* ========================================
   PAGE HEADER STYLING
   ======================================== */

.page-header {
    background: #206b3b;
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* NEW: Specific styling for Subscriptions Management page header */
.subscription-management-header {
    background: linear-gradient(135deg, #5c76cb 0%, #1e3a8a 100%) !important;
    color: white;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

    .subscription-management-header .header-content h1,
    .subscription-management-header .header-content p {
        color: white;
    }

    .subscription-management-header .mode-badge {
        background: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.35);
    }

    .subscription-management-header .mode-text,
    .subscription-management-header .admin-greeting,
    .subscription-management-header .sign-in-link {
        color: white;
    }

    .subscription-management-header .sign-in-link {
        background: rgba(255, 255, 255, 0.15);
        border-color: rgba(255, 255, 255, 0.4);
    }

        .subscription-management-header .sign-in-link:hover {
            background: rgba(255, 255, 255, 0.25);
            border-color: rgba(255, 255, 255, 0.6);
        }

    .subscription-management-header .btn-primary {
        background: rgba(255, 255, 255, 0.15);
        border: 1px solid rgba(255, 255, 255, 0.35);
        color: white;
    }

        .subscription-management-header .btn-primary:hover {
            background: rgba(255, 255, 255, 0.25);
            border-color: rgba(255, 255, 255, 0.5);
            transform: translateY(-1px);
        }

.header-content {
    flex: 1;
}

    .header-content h1 {
        margin: 0 0 0.5rem 0;
        font-size: 2.5rem;
        font-weight: 700;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .header-content p {
        margin: 0;
        font-size: 1.2rem;
        opacity: 0.9;
    }

.header-logo {
    height: 32px;
    width: auto;
    vertical-align: middle;
}

/* Mode Indicator Styles */
.mode-indicator {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    margin-left: 2rem;
}

.mode-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
}

    .mode-badge.admin {
        background: rgba(34, 197, 94, 0.2);
        border-color: rgba(34, 197, 94, 0.4);
    }

.mode-icon {
    font-size: 1rem;
}

.mode-text {
    color: white;
    font-weight: 600;
}

.sign-in-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.8rem;
    padding: 0.25rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.1);
}

    .sign-in-link:hover {
        background: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.5);
        color: white;
        text-decoration: none;
    }

.admin-greeting {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
}

/* Subtle Information Banner (replaces prominent sign-in section) */
.info-banner {
    background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
}

.banner-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.banner-text {
    flex: 1;
    color: #1e40af;
    font-size: 0.9rem;
    line-height: 1.5;
}

    .banner-text strong {
        font-weight: 600;
    }

.inline-sign-in-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

    .inline-sign-in-link:hover {
        color: #1d4ed8;
        text-decoration: none;
        border-bottom-color: #1d4ed8;
    }

.banner-close {
    background: none;
    border: none;
    color: #6b7280;
    font-size: 1.25rem;
    font-weight: bold;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    transition: color 0.2s ease;
    flex-shrink: 0;
}

    .banner-close:hover {
        color: #374151;
    }

    /* Enhanced Search Form Styles */
.search-form-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.search-primary {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid #e0e7ff;
}

.search-group-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #4338ca;
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e0e7ff;
}

.search-grid-primary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.search-advanced {
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.advanced-toggle {
    width: 100%;
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .advanced-toggle:hover {
        background: #f1f5f9;
    }

.toggle-icon {
    font-size: 0.875rem;
    transition: transform 0.2s ease;
}

.advanced-toggle.expanded .toggle-icon {
    transform: rotate(90deg);
}

.toggle-text {
    flex: 1;
    text-align: left;
}

.toggle-count {
    background: #3b82f6;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    min-width: 1.5rem;
    text-align: center;
}

.advanced-content {
    display: none;
    padding: 0 1.5rem 1.5rem 1.5rem;
}

    .advanced-content.expanded {
        display: block;
    }

.search-grid-advanced {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.admin-options {
    border-top: 1px solid #e2e8f0;
    padding-top: 1.5rem;
}

.admin-options-title {
    font-size: 1rem;
    font-weight: 600;
    color: #dc2626;
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .admin-options-title:before {
        content: "🔐";
        font-size: 1rem;
    }

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .checkbox-item input[type="checkbox"] {
        margin: 0;
        transform: scale(1.1);
    }

    .checkbox-item label {
        margin: 0;
        font-size: 0.9rem;
        cursor: pointer;
        line-height: 1.4;
    }

.organization-types {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0.5rem;
    background: #f9f9f9;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: white;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

    .checkbox-item:hover {
        border-color: #c7d2fe;
        background: #f8faff;
    }

    .checkbox-item input[type="checkbox"] {
        transform: scale(1.2);
        accent-color: #3b82f6;
    }

    .checkbox-item label {
        margin: 0;
        font-weight: 500;
        color: #374151;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        flex: 1;
    }

.checkbox-icon {
    font-size: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

    .form-group label {
        font-weight: 600;
        margin-bottom: 0.5rem;
        color: #374151;
    }

.form-control {
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: white;
}

    .form-control:focus {
        outline: none;
        border-color: #3b82f6;
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    }

.form-text {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
    justify-content: center;
}

.btn-icon {
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
}

    .btn-primary:hover:not(:disabled) {
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
    }

    .btn-primary:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }

.btn-secondary {
    background: #6b7280;
    color: white;
}

    .btn-secondary:hover {
        background: #4b5563;
        transform: translateY(-1px);
    }

.search-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.results-section {
    margin-top: 2rem;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #eee;
}

.results-count {
    font-size: 1.1rem;
    color: #666;
}

.organization-grid {
    display: grid;
    gap: 1rem;
}

.organization-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

    .organization-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    }

.organization-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.organization-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c5aa0;
    margin: 0;
}

.organization-type {
    background: #e3f2fd;
    color: #1565c0;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.organization-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.detail-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 6px;
}

    .detail-row .detail-item {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
        min-height: 2.5rem;
        justify-content: center;
        text-align: center;
    }

    .detail-row .detail-label {
        font-size: 0.65rem;
        color: #666;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        line-height: 1;
    }

    .detail-row .detail-value {
        font-size: 0.8rem;
        color: #333;
        line-height: 1.3;
        word-break: break-word;
        font-weight: 500;
    }

    .detail-row .contact-link {
        color: #1976d2;
        text-decoration: none;
        font-weight: 500;
        transition: color 0.2s ease;
    }

        .detail-row .contact-link:hover {
            color: #1565c0;
            text-decoration: underline;
        }

    .detail-row .not-available {
        color: #9e9e9e;
        font-style: italic;
        font-size: 0.75rem;
        font-weight: 400;
    }

    /* Remove the old three-column layout styles */
    /* Remove or comment out these old styles:
.detail-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 0.75rem;
    border-radius: 6px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}
*/

    /* Keep the specialized background colors for different sections */
    .detail-row.primary-info {
        background: linear-gradient(135deg, #e3f2fd 0%, #f0f8ff 100%);
        border-color: #90caf9;
    }

    .detail-row.location-info {
        background: linear-gradient(135deg, #f3e5f5 0%, #fce4ec 100%);
        border-color: #ce93d8;
    }

    .detail-row.contact-info {
        background: linear-gradient(135deg, #e8f5e8 0%, #f1f8e9 100%);
        border-color: #a5d6a7;
    }

    /* Remove old three-column layout styles */
    @media (max-width: 1200px) {
        .detail-row {
            grid-template-columns: repeat(6, 1fr);
        }
    }

    @media (max-width: 900px) {
        .detail-row {
            grid-template-columns: repeat(4, 1fr);
            gap: 0.5rem;
        }
    }

    @media (max-width: 600px) {
        .detail-row {
            grid-template-columns: repeat(3, 1fr);
        }

            .detail-row .detail-item {
                min-height: 2rem;
            }

            .detail-row .detail-label {
                font-size: 0.6rem;
            }

            .detail-row .detail-value {
                font-size: 0.75rem;
            }
    }

    @media (max-width: 480px) {
        .detail-row {
            grid-template-columns: repeat(2, 1fr);
        }
    }

.export-section {
    position: relative;
}

.export-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #28a745;
    border: none;
    color: white;
    font-weight: 500;
    transition: all 0.2s ease;
}

    .export-toggle:hover {
        background: #218838;
        transform: translateY(-1px);
    }

.export-arrow {
    transition: transform 0.2s ease;
}

.export-toggle.expanded .export-arrow {
    transform: rotate(180deg);
}

.export-options {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 20px;
    min-width: 480px;
    z-index: 1000;
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.export-header h4 {
    margin: 0 0 4px 0;
    color: #2c5aa0;
    font-size: 16px;
}

.export-subtitle {
    margin: 0 0 16px 0;
    color: #666;
    font-size: 14px;
}

.format-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}

.export-format-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 8px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

    .export-format-btn:hover {
        border-color: #2c5aa0;
        background: #f8f9ff;
    }

    .export-format-btn.selected {
        border-color: #2c5aa0;
        background: #e3f2fd;
    }

.format-icon {
    font-size: 20px;
    margin-bottom: 4px;
}

.format-name {
    font-weight: 600;
    font-size: 12px;
    color: #333;
    margin-bottom: 2px;
}

.format-desc {
    font-size: 10px;
    color: #666;
    line-height: 1.2;
}

.export-customization {
    border-top: 1px solid #e9ecef;
    padding-top: 16px;
}

.customization-section h5 {
    margin: 0 0 12px 0;
    color: #333;
    font-size: 14px;
    font-weight: 600;
}

.column-checkboxes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 16px;
    margin-bottom: 12px;
}

.column-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    cursor: pointer;
    padding: 4px 0;
}

    .column-checkbox input[type="checkbox"] {
        margin: 0;
        transform: scale(1.1);
    }

.column-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.btn-link {
    background: none;
    border: none;
    color: #2c5aa0;
    text-decoration: underline;
    cursor: pointer;
    font-size: 12px;
    padding: 0;
}

    .btn-link:hover {
        color: #1e3d6f;
    }

.export-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid #e9ecef;
}

/* Export loading state */
.export-loading {
    position: relative;
    overflow: hidden;
}

    .export-loading::after {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
        animation: shimmer 1.5s infinite;
    }

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .export-options {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        right: auto;
        min-width: 320px;
        max-width: 90vw;
        max-height: 80vh;
        overflow-y: auto;
    }

    .format-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .column-checkboxes {
        grid-template-columns: 1fr;
    }
}

.filter-group {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    background: #f8f9fa;
}

.filter-group-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-only {
    border-color: #ffc107;
    background: #fff3cd;
}

.admin-badge {
    background: #dc3545;
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-weight: 500;
}

.admin-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.admin-options-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Add these new styles to management.css */

/* Search with Sidebar Layout */
.search-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
    align-items: start;
}

.search-main {
    min-width: 0; /* Prevents grid overflow */
}

.map-sidebar {
    position: sticky;
    top: 20px; /* Keeps sidebar visible when scrolling */
    height: fit-content;
}

/* County Map Widget Styles */
.county-map-widget {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.county-map-header {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-bottom: 1px solid #dee2e6;
}

.county-map-toggle {
    width: 100%;
    background: transparent;
    border: none;
    padding: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background-color 0.2s ease;
}

    .county-map-toggle:hover {
        background: rgba(0, 0, 0, 0.05);
    }

.toggle-content {
    text-align: left;
    flex: 1;
}

    .toggle-content h4 {
        margin: 0 0 0.25rem 0;
        color: #495057;
        font-size: 1rem;
        font-weight: 600;
    }

    .toggle-content p {
        margin: 0;
        color: #6c757d;
        font-size: 0.875rem;
    }

.toggle-indicator {
    font-size: 1.25rem;
    color: #6c757d;
    transition: transform 0.3s ease;
    line-height: 1;
}

.county-map-toggle.expanded .toggle-indicator {
    transform: rotate(180deg);
}

.county-map-content {
    transition: all 0.3s ease;
    overflow: hidden;
    min-height: 0; /* Allow proper transition */
    display: none; /* Default hidden */
}

    .county-map-content.show {
        display: block !important;
        min-height: 280px; /* Maintain height when visible */
    }

#wisconsinCountyMap {
    height: 280px;
    width: 100%;
    border: none;
    min-height: 280px; /* Ensure minimum height */
    position: relative;
}

/* Sign-in section styles */
.sign-in-section {
    display: none;
}

/* Enhanced admin panel styles */
.admin-welcome {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

    .admin-welcome h3 {
        margin: 0 0 0.5rem 0;
        font-size: 1.3rem;
    }

    .admin-welcome p {
        margin: 0;
        opacity: 0.9;
    }

.admin-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.admin-action-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

    .admin-action-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
        text-decoration: none;
        color: inherit;
    }

.admin-action-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.admin-action-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2c5aa0;
}

.admin-action-description {
    font-size: 0.875rem;
    color: #666;
    margin: 0;
}

/* Organization Modal Styles - FIXED */
.organization-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none; /* Changed from flex to none */
    align-items: center;
    justify-content: center;
    z-index: 1200;
    backdrop-filter: blur(4px);
}

    .organization-modal.show {
        display: flex; /* Show when .show class is added */
        opacity: 1;
        visibility: visible;
    }

.organization-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.organization-modal-content {
    position: relative;
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(30px) scale(0.95);
    transition: transform 0.3s ease;
}

.organization-modal.show .organization-modal-content {
    transform: translateY(0) scale(1);
}

.organization-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

    .organization-modal-header h2 {
        margin: 0;
        font-size: 1.5rem;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

.organization-modal-close {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

    .organization-modal-close:hover {
        background: rgba(255, 255, 255, 0.3);
        border-color: rgba(255, 255, 255, 0.5);
    }

.organization-modal-body {
    padding: 2rem;
    max-height: calc(90vh - 160px);
    overflow-y: auto;
}

.organization-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-sections {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.organization-modal .section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #495057;
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #dee2e6;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

    .form-row:last-child {
        margin-bottom: 0;
    }

.form-group.required label:after {
    content: " *";
    color: #dc3545;
}

.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #495057;
    display: block;
}

.text-danger {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

.organization-modal-footer {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding: 1.5rem 2rem;
    border-top: 1px solid #e5e7eb;
    background: #f8f9fa;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.alert {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.alert-danger {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.alert h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
}

.alert ul {
    margin: 0;
    padding-left: 1.25rem;
}

.expired-organization {
    opacity: 0.7;
    border-left: 4px solid #dc3545;
}

.expired-badge {
    background: #dc3545;
    color: white;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
    margin-left: 0.5rem;
}

/* Toast notification styles */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1300;
    min-width: 300px;
    max-width: 500px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

    .toast.show {
        opacity: 1;
        transform: translateY(0);
    }

    .toast.hide {
        opacity: 0;
        transform: translateY(-10px);
    }

.toast-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.toast-message {
    flex: 1;
    font-size: 0.9rem;
    color: #333;
}

.toast-button {
    background: none;
    border: none;
    color: #667eea;
    font-weight: 500;
    cursor: pointer;
    font-size: 0.9rem;
}

    .toast-button:hover {
        text-decoration: underline;
    }

.search-section {
    margin-bottom: 3rem; /* Add spacing after the search section */
}

/* Also ensure admin panel has proper spacing */
.admin-panel {
    margin-top: 2rem; /* Add spacing before the admin panel */
}

.sticky-search-actions {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border: 1px solid #e5e7eb;
    padding: 1rem;
    display: flex;
    gap: 0.75rem;
    z-index: 100;
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    pointer-events: none;
}

    .sticky-search-actions.visible {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .sticky-search-actions .btn {
        font-size: 0.95rem;
        padding: 0.75rem 1.25rem;
        border-radius: 8px;
        font-weight: 600;
        white-space: nowrap;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        display: flex;
        align-items: center;
        gap: 0.5rem;
        min-width: 120px;
        justify-content: center;
    }

        .sticky-search-actions .btn:hover:not(:disabled) {
            transform: translateY(-1px);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
        }

        .sticky-search-actions .btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }

    .sticky-search-actions .btn-icon {
        font-size: 1rem;
    }

    /* Enhanced original search actions */
.search-actions.enhanced {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    margin-top: 2rem;
    position: relative;
}

    .search-actions.enhanced::before {
        content: '';
        position: absolute;
        top: -10px;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 0;
        border-left: 10px solid transparent;
        border-right: 10px solid transparent;
        border-bottom: 10px solid #e2e8f0;
    }

    .search-actions.enhanced .btn {
        font-size: 1rem;
        padding: 1rem 1.5rem;
        border-radius: 10px;
        font-weight: 600;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
    }

        .search-actions.enhanced .btn:hover:not(:disabled) {
            transform: translateY(-2px);
            box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
        }

/* Keyboard shortcuts hint */
.keyboard-shortcuts-hint {
    text-align: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

    .keyboard-shortcuts-hint small {
        color: #6b7280;
        font-size: 0.8rem;
        font-style: italic;
    }

/* Mobile specific improvements - ENHANCED for button text visibility */
@media (max-width: 768px) {
    .sticky-search-actions {
        bottom: 10px;
        right: 10px;
        left: 10px;
        justify-content: center;
        border-radius: 8px;
        padding: 0.75rem;
        gap: 0.5rem;
    }

        .sticky-search-actions .btn {
            flex: 1;
            padding: 0.75rem 1rem;
            font-size: 0.9rem;
            min-width: auto;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.375rem;
            white-space: nowrap;
        }

            .sticky-search-actions .btn .btn-icon {
                font-size: 0.9rem;
                flex-shrink: 0;
            }

            /* Ensure button text is ALWAYS visible */
            .sticky-search-actions .btn .btn-text {
                display: inline-block !important;
                font-weight: 500;
            }

    /* Main search actions styling for mobile */
    .search-actions {
        padding: 1rem;
        gap: 0.75rem;
        flex-direction: column;
    }

        .search-actions .btn {
            width: 100%;
            padding: 1rem 1.5rem;
            font-size: 1rem;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            min-height: 48px;
        }

            .search-actions .btn .btn-icon {
                font-size: 1.1rem;
                flex-shrink: 0;
            }
}

/* Small screens - keep text visible but more compact */
@media (max-width: 480px) {
    /* Override any rules that might hide button text */
    .sticky-search-actions .btn .btn-text {
        display: inline-block !important; /* Force visibility */
        font-size: 0.8rem !important;
        font-weight: 500;
    }

    .sticky-search-actions .btn {
        padding: 0.625rem 0.75rem;
        font-size: 0.8rem;
        gap: 0.25rem;
        min-height: 44px;
        min-width: 80px; /* Ensure minimum width for text */
    }

        .sticky-search-actions .btn .btn-icon {
            font-size: 0.85rem;
            margin-right: 0; /* Reset any icon-only styling */
        }

    /* Main search actions for small screens */
    .search-actions .btn {
        padding: 1rem;
        font-size: 0.9rem;
        gap: 0.5rem;
    }

        .search-actions .btn .btn-icon {
            font-size: 1rem;
        }
}

/* Extra small screens - vertical stacking but keep text */
@media (max-width: 360px) {
    .search-actions .btn {
        flex-direction: column;
        gap: 0.375rem;
        padding: 1rem 0.75rem;
    }

        .search-actions .btn .btn-icon {
            font-size: 1.2rem;
        }

    .sticky-search-actions {
        flex-direction: column;
        gap: 0.375rem;
        padding: 0.5rem;
    }

        .sticky-search-actions .btn {
            width: 100%;
            padding: 0.75rem;
            gap: 0.375rem;
            min-width: auto;
        }

            .sticky-search-actions .btn .btn-text {
                display: inline-block !important;
                font-size: 0.8rem !important;
            }
}

/* Ensure HTML structure includes both icon and text */
/* This comment is for developers - make sure buttons have this structure:
   <button>
     <span class="btn-icon">🗑️</span>
     <span class="btn-text">Clear</span>
   </button>
*/

/* Score My Shore Button Styles - Small secondary button to the right */
.btn-score-my-shore {
    background: white;
    color: #10b981;
    border: 1px solid #d1d5db;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    white-space: nowrap;
    justify-content: center;
}

.btn-score-my-shore:hover {
    background: #f0fdf4;
    border-color: #10b981;
    color: #059669;
    text-decoration: none;
}

.btn-score-my-shore .icon-chart::before {
    content: "📊";
    font-size: 0.8rem;
}

/* Action row button layout - View Full Details takes most space, Score My Shore on the right */
.action-row .detail-item.full-width {
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
}

/* View Full Details button - primary, takes most of the space */
.action-row .btn-view-details {
    flex: 1;
    margin: 0;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    justify-content: center;
}

/* Keep other primary buttons consistent */
.action-row .btn-primary:not(.btn-score-my-shore) {
    flex: 1;
    margin: 0;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    justify-content: center;
}

/* Enhanced Organization Types styling */
.organization-types .checkbox-item {
    transition: all 0.2s ease;
    padding: 0.75rem;
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

    .organization-types .checkbox-item:hover {
        background-color: #f8fafc;
        border: 1px solid #e2e8f0;
    }

    .organization-types .checkbox-item input[type="checkbox"]:checked + label {
        font-weight: 600;
        color: #2563eb;
    }

    .organization-types .checkbox-item:has(input[type="checkbox"]:checked) {
        background-color: #eff6ff;
        border: 1px solid #bfdbfe;
    }

/* Status badge styling - improved visibility on dark backgrounds */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    background: white;
    color: #059669;
    border: 2px solid #059669;
}

.status-badge.active {
    background: white;
    color: #059669;
    border-color: #059669;
}

.status-badge.expired {
    background: white;
    color: #dc2626;
    border-color: #dc2626;
}

/* Organization type badge - improved visibility on dark backgrounds */
.org-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    background: white;
    color: #2563eb;
    border: 2px solid #2563eb;
}

/* ID badge styling */
.id-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Search Summary Banner Styles */
.search-summary-banner {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #0ea5e9;
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.15);
    animation: slideInDown 0.4s ease-out;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-summary-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.summary-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #0369a1;
    white-space: nowrap;
}

.summary-icon {
    font-size: 1.25rem;
}

.summary-title {
    font-size: 1rem;
}

.filter-chips {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    flex: 1;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: white;
    padding: 0.5rem 0.875rem;
    border-radius: 20px;
    border: 1px solid #bae6fd;
    font-size: 0.875rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

    .filter-chip:hover {
        transform: translateY(-1px);
        box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    }

    /* Highlight chip (for Business Types Only) */
    .filter-chip.highlight {
        background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
        border-color: #d97706;
        color: white;
        font-weight: 600;
        box-shadow: 0 4px 8px rgba(251, 191, 36, 0.3);
    }

        .filter-chip.highlight .filter-icon,
        .filter-chip.highlight .filter-label,
        .filter-chip.highlight .filter-value {
            color: white;
        }

    /* Warning chip (for Include Expired) */
    .filter-chip.warning {
        background: #fef3c7;
        border-color: #fbbf24;
        color: #92400e;
    }

    /* Admin chip */
    .filter-chip.admin {
        background: #f3e8ff;
        border-color: #c084fc;
        color: #6b21a8;
    }

.filter-icon {
    font-size: 1rem;
    line-height: 1;
}

.filter-label {
    font-weight: 600;
    color: #0369a1;
}

.filter-chip.highlight .filter-label,
.filter-chip.warning .filter-label,
.filter-chip.admin .filter-label {
    color: inherit;
}

.filter-value {
    color: #475569;
    font-weight: 500;
}

    .filter-value::before {
        content: ':';
        margin-right: 0.25rem;
    }

.clear-filters-btn {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #dc2626;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
}

    .clear-filters-btn:hover {
        background: rgba(239, 68, 68, 0.2);
        border-color: rgba(239, 68, 68, 0.5);
        transform: scale(1.05);
    }

    .clear-filters-btn span {
        font-size: 1.25rem;
        line-height: 1;
    }

/* Responsive adjustments */
@media (max-width: 768px) {
    .search-summary-banner {
        padding: 1rem;
    }

    .search-summary-content {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .summary-header {
        justify-content: center;
    }

    .filter-chips {
        justify-content: center;
    }

    .filter-chip {
        font-size: 0.8rem;
        padding: 0.4rem 0.7rem;
    }

    .clear-filters-btn {
        align-self: center;
        padding: 0.625rem 1rem;
    }
}

/* Animation for filter chips */
.filter-chip {
    animation: fadeInScale 0.3s ease-out backwards;
}

    .filter-chip:nth-child(1) {
        animation-delay: 0.1s;
    }

    .filter-chip:nth-child(2) {
        animation-delay: 0.15s;
    }

    .filter-chip:nth-child(3) {
        animation-delay: 0.2s;
    }

    .filter-chip:nth-child(4) {
        animation-delay: 0.25s;
    }

    .filter-chip:nth-child(5) {
        animation-delay: 0.3s;
    }

    .filter-chip:nth-child(6) {
        animation-delay: 0.35s;
    }

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}
