/* Settings Page Styles */
.settings-container {
    min-height: 100vh;
    background-color: #f8f9fa;
    padding: 20px 0;
}

/* Settings Sidebar */
.settings-sidebar {
    margin-bottom: 30px;
}

.settings-nav {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    position: sticky;
    top: 20px;
}

.settings-nav-title {
    color: #2c3e50;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.settings-nav-title i {
    margin-right: 10px;
    color: #007bff;
}

.settings-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.settings-nav-item {
    margin-bottom: 8px;
}

.settings-nav-link {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: #6c757d;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.settings-nav-link:hover {
    background-color: #f8f9fa;
    color: #007bff;
    text-decoration: none;
    transform: translateX(5px);
}

.settings-nav-item.active .settings-nav-link {
    background-color: #007bff;
    color: white;
}

.settings-nav-link i {
    margin-right: 12px;
    width: 18px;
    text-align: center;
}

/* Settings Content */
.settings-content {
    padding-left: 20px;
}

.settings-section {
    margin-bottom: 40px;
}

.settings-section-header {
    margin-bottom: 20px;
}

.settings-section-title {
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.settings-section-title i {
    margin-right: 12px;
    color: #007bff;
}

.settings-section-description {
    color: #6c757d;
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* Settings Cards */
.settings-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    overflow: hidden;
    transition: transform 0.2s ease;
}

.settings-card:hover {
    transform: translateY(-2px);
}

.settings-card-header {
    background-color: #f8f9fa;
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
}

.settings-card-title {
    margin: 0;
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
}

.settings-card-body {
    padding: 25px;
}

/* Form Controls */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

.form-control-static {
    padding: 10px 15px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    color: #495057;
}

.form-select, .form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 15px;
    transition: border-color 0.3s ease;
    font-size: 0.95rem;
}

.form-select:focus, .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* County Display */
.current-county-display {
    margin-bottom: 15px;
}

.county-info {
    display: flex;
    align-items: center;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    margin-bottom: 10px;
}

.county-info i {
    margin-right: 10px;
    font-size: 1.1rem;
}

.county-name {
    flex: 1;
    font-weight: 600;
    font-size: 1.05rem;
}

.county-badge {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* County Memberships */
.county-memberships {
    margin-bottom: 20px;
}

.county-membership-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.county-membership-item:hover {
    background-color: #e9ecef;
    transform: translateX(5px);
}

.county-membership-item .county-info {
    background: none;
    color: #495057;
    padding: 0;
    margin: 0;
}

.county-membership-item .county-info i {
    margin-right: 10px;
}

.county-membership-item .county-badge {
    background-color: #007bff;
    color: white;
}

.county-actions {
    display: flex;
    gap: 10px;
}

/* County Selection Form */
.county-selection-form {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.form-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Privacy Options */
.privacy-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: background-color 0.3s ease;
}

.privacy-option:hover {
    background-color: #e9ecef;
}

.privacy-info h6 {
    margin: 0 0 5px 0;
    color: #2c3e50;
    font-weight: 600;
}

.privacy-info p {
    margin: 0;
    font-size: 0.9rem;
}

.privacy-control {
    flex-shrink: 0;
}

/* Buttons */
.btn {
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 500;
    border: none;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    color: white;
}

.btn-outline-primary {
    border: 2px solid #007bff;
    color: #007bff;
    background: white;
}

.btn-outline-primary:hover {
    background-color: #007bff;
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    color: white;
}

.btn-success:hover {
    background: linear-gradient(135deg, #1e7e34 0%, #155724 100%);
    color: white;
}

.btn-outline-success {
    border: 2px solid #28a745;
    color: #28a745;
    background: white;
}

.btn-outline-success:hover {
    background-color: #28a745;
    color: white;
}

.btn-outline-danger {
    border: 2px solid #dc3545;
    color: #dc3545;
    background: white;
}

.btn-outline-danger:hover {
    background-color: #dc3545;
    color: white;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #545b62;
    color: white;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.875rem;
}

/* Alerts */
.alert {
    border-radius: 8px;
    border: none;
    padding: 15px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert i {
    font-size: 1.1rem;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

.btn-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    margin-left: auto;
    opacity: 0.5;
    cursor: pointer;
}

.btn-close:hover {
    opacity: 1;
}

/* Mobile Responsive */
@@media (max-width: 768px) {
    .settings-container {
        padding: 10px 0;
    }
    
    .settings-content {
        padding-left: 0;
        margin-top: 20px;
    }
    
    .settings-nav {
        position: relative;
        top: auto;
    }
    
    .county-membership-item {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .county-actions {
        justify-content: center;
    }
    
    .form-actions {
        justify-content: center;
    }
    
    .privacy-option {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 15px;
    }
    
    .county-info {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

@@media (max-width: 576px) {
    .settings-section-title {
        font-size: 1.25rem;
    }
    
    .settings-card-body {
        padding: 20px 15px;
    }
    
    .county-selection-form {
        padding: 15px;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}
