/**
 * RidePlanner Styles
 * Minimalist, mobile-responsive CSS
 */

/* === Reset & Base === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --success-color: #10b981;
    --error-color: #ef4444;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --border-color: #e5e7eb;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* === Header === */
.header {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    padding: 2rem 0;
    box-shadow: var(--shadow-lg);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.header-left {
    flex: 1;
}

.header-right {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.logo {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.tagline {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* User Menu */
.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 24px;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-profile:hover {
    background: rgba(255, 255, 255, 0.3);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid white;
}

.user-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.btn-logout {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-logout:hover {
    background: rgba(239, 68, 68, 0.3);
}

.auth-buttons {
    display: flex;
    gap: 0.75rem;
}

.auth-buttons .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
}

.auth-buttons .btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.auth-buttons .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* === Main Content === */
.main-content {
    flex: 1;
    padding: 2rem 0;
}

.section {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-title-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: #27ae60;
    font-weight: 500;
    padding: 0.3rem 0.8rem;
    background: rgba(39, 174, 96, 0.1);
    border-radius: 20px;
    cursor: help;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #27ae60;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.9);
    }
}

/* === Forms === */
.ride-form {
    max-width: 600px;
}

/* Login Prompt for Ride Creation */
.login-prompt {
    max-width: 600px;
    padding: 2rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    text-align: center;
    margin: 2rem 0;
}

.login-prompt p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.login-prompt button {
    margin: 0 0.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
}

/* Bike Type Checkboxes */
.bike-type-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.checkbox-label:hover {
    background: var(--bg-hover);
    border-color: var(--primary-color);
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.checkbox-label span {
    font-weight: 500;
    color: var(--text-primary);
}

/* === Buttons === */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--border-color);
}

.btn-tertiary {
    background: #dc2626;
    color: white;
    border: 2px solid #b91c1c;
}

.btn-tertiary:hover {
    background: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.btn-join {
    background: var(--success-color);
    color: white;
    width: 100%;
}

.btn-join:hover:not(:disabled) {
    background: #059669;
    transform: translateY(-2px);
}

.btn-ical {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    color: var(--text-primary);
    text-decoration: none;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: inherit;
}

/* === Google Sign-In Button === */
.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.75rem 1rem;
    background: white;
    color: #3c4043;
    text-decoration: none;
    border: 2px solid #dadce0;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    margin-bottom: 1rem;
}

.btn-google:hover {
    background: #f8f9fa;
    border-color: #c6c6c6;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* === Divider === */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: #9ca3af;
    font-size: 0.875rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e5e7eb;
}

.divider span {
    padding: 0 1rem;
}

/* === Helper Text === */
.helper-text {
    font-size: 0.75rem;
    color: #6b7280;
    text-align: center;
    margin: 0.5rem 0 0 0;
    line-height: 1.4;
}

.helper-text a {
    color: var(--primary-color);
    text-decoration: none;
}

.helper-text a:hover {
    text-decoration: underline;
}

.btn-ical:hover {
    background: var(--border-color);
}

.calendar-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* === Ride Cards === */
.rides-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.ride-card {
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.ride-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.ride-card-header {
    margin-bottom: 1rem;
}

.ride-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.ride-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.gpx-badge {
    background: var(--success-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.ride-card-body {
    margin-bottom: 1.5rem;
}

.ride-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Ride Info Items (starting point, speed) */
.ride-info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.75rem 0;
    padding: 0.5rem 0.75rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.ride-info-item svg {
    color: var(--primary-color);
    flex-shrink: 0;
}

.ride-info-item strong {
    color: var(--text-primary);
    margin-right: 0.25rem;
}

/* Ride Stats in Cards */
.ride-stats-compact {
    display: flex;
    gap: 1.5rem;
    margin: 1rem 0;
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
}

.stat-compact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

.stat-compact svg {
    color: var(--primary-color);
    flex-shrink: 0;
}

.stat-compact span {
    color: var(--text-primary);
}

.attendees-section {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.attendees-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.attendees-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.attendee-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.875rem;
    color: var(--text-primary);
}

.attendee-badge-img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border-color);
}

.no-attendees {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-style: italic;
}

.btn-download-gpx {
    display: inline-block;
    width: 100%;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, var(--success-color) 0%, #059669 100%);
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.btn-download-gpx:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.ride-card-footer {
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* === Loading State === */
.loading, .loading-spinner {
    text-align: center;
    padding: 3rem;
}

.spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 1rem;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.empty-state, .error-message {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.error-message {
    color: #d32f2f;
}

/* === Empty & Error States === */
.no-rides,
.error-message {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.error-message {
    background: #fee;
    color: var(--error-color);
    border-radius: 8px;
}

/* === Toast Notifications === */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    background: var(--text-primary);
    color: white;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    transform: translateY(150%);
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 1000;
    max-width: 400px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.toast.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.toast.success {
    background: var(--success-color);
}

.toast.error {
    background: var(--error-color);
}

.toast.info {
    background: var(--primary-color);
}

/* === Modal === */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    position: relative;
    margin: 2rem auto;
}

.modal-content h3 {
    margin-bottom: 1rem;
    padding-right: 2rem;
}

.modal-content input {
    width: 100%;
    padding: 0.75rem;
    margin: 1rem 0;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.modal-actions .btn {
    flex: 1;
}

.modal-content code {
    display: block;
    background: #f3f4f6;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
    word-break: break-all;
    margin: 0.5rem 0;
    font-family: 'Courier New', monospace;
}

.modal-content ol {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
    line-height: 1.8;
}

.modal-content strong {
    color: var(--text-primary);
}

.modal-content a {
    color: var(--primary-color);
    text-decoration: underline;
}

.modal-wide {
    max-width: 900px !important;
}

.modal-wide .modal-content {
    max-width: 100%;
}

/* Make modal scrollable on mobile */
@media (max-width: 768px) {
    .modal-content {
        max-height: 90vh;
        margin: 1rem auto;
        width: 95%;
    }
    
    .modal-wide {
        max-width: 95% !important;
    }
}

/* === Footer === */
.footer {
    background: var(--bg-primary);
    padding: 2rem 0;
    text-align: center;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
}

/* === Responsive Design === */
@media (max-width: 768px) {
    .logo {
        font-size: 1.5rem;
    }
    
    .section {
        padding: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .rides-container {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .toast {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 1.5rem 0;
    }
    
    .logo {
        font-size: 1.25rem;
    }
    
    .section {
        padding: 1rem;
    }
    
    .ride-card {
        padding: 1rem;
    }
}

/* ============================================================================
   RIDE DETAIL VIEW
   ============================================================================ */

.detail-view {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 1.5rem;
}

.btn-back:hover {
    background: var(--bg-primary);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.detail-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--bg-secondary);
}

.detail-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.detail-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 1rem;
}

.detail-meta .meta-item svg {
    color: var(--primary-color);
}

.gpx-indicator {
    color: var(--success-color) !important;
    font-weight: 600;
}

.detail-section {
    margin-bottom: 2.5rem;
}

.detail-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.detail-description {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* Map Styles */
.ride-map {
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
}

.route-stats {
    display: flex;
    gap: 2rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    margin-top: 1rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Attendees in Detail View */
.detail-attendees {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detail-attendee {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.detail-attendee:hover {
    background: var(--bg-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.attendee-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    overflow: hidden;
    flex-shrink: 0;
}

.attendee-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.attendee-name {
    flex: 1;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
}

.organizer-badge {
    background: var(--success-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.detail-actions {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--bg-secondary);
    display: flex;
    gap: 1rem;
}

.detail-actions .btn {
    flex: 1;
    padding: 1rem 2rem;
    font-size: 1.05rem;
}

/* Leaflet Custom Markers */
.custom-marker {
    font-size: 24px;
    text-align: center;
    background: transparent !important;
    border: none !important;
}

/* Weather Forecast Styles */
.weather-forecast-container {
    min-height: 100px;
}

.weather-loading, .weather-error, .weather-unavailable {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    color: var(--text-secondary);
}

.weather-unavailable {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(147, 197, 253, 0.05) 100%);
    border-radius: 12px;
    border: 2px dashed rgba(59, 130, 246, 0.3);
}

.weather-unavailable p {
    margin: 0.5rem 0;
}

.weather-unavailable p:first-child {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.weather-error {
    background: rgba(239, 68, 68, 0.05);
    border-radius: 12px;
    border: 2px solid rgba(239, 68, 68, 0.2);
}

.weather-error p:first-child {
    font-weight: 600;
    color: #dc2626;
}

.weather-rate-limit {
    background: rgba(251, 146, 60, 0.08) !important;
    border: 2px solid rgba(251, 146, 60, 0.3) !important;
}

.weather-rate-limit p:first-child {
    color: #ea580c !important;
    font-weight: 600;
}

.spinner-small {
    width: 30px;
    height: 30px;
    border: 3px solid var(--bg-secondary);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 1rem;
}

.weather-forecast {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 1.5rem;
}

.weather-header-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.weather-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.weather-timing {
    font-size: 0.9rem;
}

.weather-date-info {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.weather-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.weather-card-item {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.weather-card-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.weather-card-icon {
    font-size: 3rem;
    margin: 0.5rem 0;
}

.weather-card-temp {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0.5rem 0;
}

.weather-card-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.weather-card-details {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--bg-secondary);
}

.weather-detail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.weather-detail svg {
    flex-shrink: 0;
}

.weather-note {
    text-align: center;
    padding: 1rem;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 8px;
}

.weather-note small {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Mobile Responsive for Detail View */
@media (max-width: 768px) {
    .detail-view {
        padding: 1.5rem;
    }
    
    .detail-title {
        font-size: 1.5rem;
    }
    
    .detail-meta {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .ride-map {
        height: 300px;
    }
    
    .route-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .detail-actions {
        flex-direction: column;
    }
    
    .detail-actions .btn {
        width: 100%;
    }
    
    .weather-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .weather-card-item {
        padding: 1.25rem;
    }
    
    .weather-card-icon {
        font-size: 2.5rem;
    }
    
    .weather-card-temp {
        font-size: 1.75rem;
    }
    
    .weather-header-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .weather-timing {
        align-self: stretch;
        text-align: center;
        padding: 0.5rem;
        background: rgba(255, 255, 255, 0.5);
        border-radius: 6px;
    }
}

@media (max-width: 480px) {
    .detail-view {
        padding: 1rem;
        border-radius: 0;
    }
    
    .detail-header {
        margin-bottom: 1.5rem;
    }
    
    .detail-section {
        margin-bottom: 1.5rem;
    }
}

/* ============================================================================
   AUTHENTICATION MODALS & USER PROFILE
   ============================================================================ */

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.modal-footer-text {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.modal-footer-text a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.modal-footer-text a:hover {
    text-decoration: underline;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.checkbox-label span {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Profile Modal */
.profile-modal {
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}

.profile-header {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--bg-secondary);
}

.profile-avatar-large {
    flex-shrink: 0;
}

.profile-avatar-large img,
.profile-avatar-large .avatar-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-placeholder {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 700;
}

.avatar-placeholder-large {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    font-weight: 700;
}

/* Profile Picture Upload */
.profile-picture-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.current-profile-picture {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--border-color);
    position: relative;
}

.current-profile-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#profilePictureInput {
    display: none;
}

.profile-info {
    flex: 1;
}

.profile-info h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.profile-email {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.profile-quote {
    font-style: italic;
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin: 1rem 0;
    padding-left: 1rem;
    border-left: 3px solid var(--primary-color);
}

.profile-bike {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Profile Stats */
.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.profile-stat-card {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Profile Sections */
.profile-section {
    margin-bottom: 2rem;
}

.profile-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.recent-rides-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.recent-ride-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
}

.recent-ride-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.recent-ride-info strong {
    color: var(--text-primary);
    font-size: 1rem;
}

.ride-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.ride-stats-inline {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.ride-distance {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.95rem;
}

.ride-elevation {
    font-weight: 600;
    color: var(--success-color);
    font-size: 0.95rem;
}

/* Profile Actions */
.profile-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--bg-secondary);
}

.profile-actions .btn {
    flex: 1;
    padding: 1rem 2rem;
}

/* GPX Warning Section */
.gpx-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 2px solid #e67e22;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.gpx-warning strong {
    color: #d63031;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.5rem;
}

.gpx-warning p {
    color: #2d3436;
    margin: 0.5rem 0 1rem;
}

.gpx-warning form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gpx-warning input[type="file"] {
    padding: 0.5rem;
    border: 2px dashed #e67e22;
    border-radius: 8px;
    background: white;
    cursor: pointer;
}

.gpx-warning input[type="file"]:hover {
    border-color: #d35400;
    background: #fff8f0;
}

/* Mobile responsiveness for auth and profile */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .header-right {
        width: 100%;
        justify-content: center;
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .auth-buttons {
        width: 100%;
    }
    
    .auth-buttons .btn {
        flex: 1;
    }
    
    .user-menu {
        width: 100%;
        justify-content: space-between;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .profile-quote {
        border-left: none;
        border-top: 3px solid var(--primary-color);
        padding-left: 0;
        padding-top: 1rem;
    }
    
    .profile-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .profile-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .user-name {
        display: none;
    }
    
    .profile-info h2 {
        font-size: 1.5rem;
    }
    
    .profile-stats-grid {
        grid-template-columns: 1fr;
    }
}

/* === Ride Calendar === */
.ride-calendar {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-bottom: 3rem;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.calendar-container {
    flex: 0 0 auto;
    width: 600px;
}

.weather-card {
    flex: 1;
    min-width: 300px;
    background: #ffffff;
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    height: 500px;
    border: 1px solid #e2e8f0;
}

.weather-card-header {
    display: flex;
    justify-content: space-around;
    padding: 1.5rem;
    background: #03402e;
    backdrop-filter: blur(10px);
}

.weather-info {
    text-align: center;
    color: #f07063;
}

.weather-label {
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0.95;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #f07063;
}

.weather-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f07063;
}

.weather-card-footer {
    padding: 1rem 1.5rem;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
}

.forecast-box {
    flex: 1;
    padding: 0.5rem;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    text-align: center;
    min-width: 0;
}

.forecast-box.hourly {
    border-top: 3px solid #3b82f6;
    padding: 0.4rem 0.5rem;
}

.forecast-box.daily {
    border-top: 3px solid #10b981;
}

.forecast-time {
    font-size: 0.7rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hourly .forecast-time {
    font-size: 0.65rem;
    margin-bottom: 0.15rem;
}

.daily .forecast-time {
    font-size: 0.65rem;
    letter-spacing: 0px;
    word-break: break-word;
    line-height: 1.1;
}

.forecast-icon {
    font-size: 1.5rem;
    margin: 0.15rem 0;
}

.hourly .forecast-icon {
    font-size: 1.2rem;
    margin: 0.1rem 0;
}

.forecast-temp {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.15rem;
}

.hourly .forecast-temp {
    font-size: 0.95rem;
    margin-bottom: 0.1rem;
}

.forecast-condition {
    font-size: 0.7rem;
    color: #64748b;
    line-height: 1.2;
}

.hourly .forecast-condition {
    font-size: 0.6rem;
}

.wind-map-container {
    flex: 1;
    position: relative;
    background: #f8f9fa;
    border-radius: 0;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    min-height: 0;
}

#wind-map {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#wind-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2 !important;
}

.wind-map-container .maplibregl-map {
    width: 100%;
    height: 100%;
    background: #f8f9fa;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1 !important;
}

.wind-map-container .maplibregl-canvas-container {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1 !important;
}

.wind-map-container .maplibregl-canvas {
    position: absolute !important;
    z-index: 1 !important;
}

.wind-map-container .maplibregl-canvas {
    outline: none;
}

/* MapLibre control customization for light theme */
.wind-map-container .maplibregl-ctrl-attrib {
    background: rgba(255, 255, 255, 0.9);
    color: #4a5568;
    font-size: 0.7rem;
    z-index: 10 !important;
}

.wind-map-container .maplibregl-ctrl-attrib a {
    color: #2d3748;
}

.wind-map-container .maplibregl-ctrl button {
    background: rgba(255, 255, 255, 0.95);
    color: #2d3748;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.wind-map-container .maplibregl-ctrl button:hover {
    background: rgba(255, 255, 255, 1);
}

.wind-map-container .maplibregl-ctrl-group {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 10 !important;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.calendar-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-calendar-nav {
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: #475569;
}

.btn-calendar-nav:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: scale(1.05);
}

.btn-calendar-nav:active {
    transform: scale(0.95);
}

.calendar-month-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    min-width: 180px;
    text-align: center;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.75rem;
    max-width: 600px;
    margin: 0 auto 1rem auto;
}

.calendar-weekday {
    text-align: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: #64748b;
    text-transform: uppercase;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.75rem;
    max-width: 600px;
    margin: 0 auto;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
    cursor: default;
    position: relative;
}

.calendar-day.has-ride {
    cursor: pointer;
    font-weight: 700;
}

.calendar-day.has-ride:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.calendar-day.empty {
    background: transparent;
}

.calendar-day.other-month {
    opacity: 0.4;
}

.calendar-day.other-month.has-ride {
    opacity: 0.6;
}

.calendar-day.today {
    border: 3px solid #3b82f6;
    font-weight: 700;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    animation: todayPulse 2s ease-in-out infinite;
}

.calendar-day.today.has-ride {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3), 0 4px 12px rgba(0, 0, 0, 0.15);
}

@keyframes todayPulse {
    0%, 100% {
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    }
    50% {
        box-shadow: 0 0 0 5px rgba(59, 130, 246, 0.3);
    }
}

/* Calendar color will be set dynamically based on city theme */
.calendar-day.has-ride.leuven {
    background-color: #f07063;
    color: #03402e;
}

.calendar-day.has-ride.antwerpen {
    background-color: #fca5a5;
    color: #991b1b;
}

.calendar-day.has-ride.gent {
    background-color: #fde047;
    color: #854d0e;
}

.calendar-day.has-ride.brugge {
    background-color: #93c5fd;
    color: #1e3a8a;
}

/* City-specific today pulse animations */
.calendar-day.today.leuven {
    border-color: #03402e;
}

.calendar-day.today.leuven:not(.has-ride) {
    box-shadow: 0 0 0 3px rgba(3, 64, 46, 0.2);
    animation: todayPulseLeuven 2s ease-in-out infinite;
}

.calendar-day.today.has-ride.leuven {
    animation: todayPulseLeuvenRide 2s ease-in-out infinite;
}

@keyframes todayPulseLeuven {
    0%, 100% {
        box-shadow: 0 0 0 3px rgba(3, 64, 46, 0.2);
    }
    50% {
        box-shadow: 0 0 0 5px rgba(3, 64, 46, 0.3);
    }
}

@keyframes todayPulseLeuvenRide {
    0%, 100% {
        box-shadow: 0 0 0 3px rgba(3, 64, 46, 0.3), 0 4px 12px rgba(0, 0, 0, 0.15);
    }
    50% {
        box-shadow: 0 0 0 5px rgba(3, 64, 46, 0.4), 0 4px 12px rgba(0, 0, 0, 0.15);
    }
}

.calendar-day.today.antwerpen {
    border-color: #991b1b;
}

.calendar-day.today.antwerpen:not(.has-ride) {
    box-shadow: 0 0 0 3px rgba(153, 27, 27, 0.2);
    animation: todayPulseAntwerpen 2s ease-in-out infinite;
}

.calendar-day.today.has-ride.antwerpen {
    animation: todayPulseAntwerpenRide 2s ease-in-out infinite;
}

@keyframes todayPulseAntwerpen {
    0%, 100% {
        box-shadow: 0 0 0 3px rgba(153, 27, 27, 0.2);
    }
    50% {
        box-shadow: 0 0 0 5px rgba(153, 27, 27, 0.3);
    }
}

@keyframes todayPulseAntwerpenRide {
    0%, 100% {
        box-shadow: 0 0 0 3px rgba(153, 27, 27, 0.3), 0 4px 12px rgba(0, 0, 0, 0.15);
    }
    50% {
        box-shadow: 0 0 0 5px rgba(153, 27, 27, 0.4), 0 4px 12px rgba(0, 0, 0, 0.15);
    }
}

.calendar-day.today.gent {
    border-color: #854d0e;
}

.calendar-day.today.gent:not(.has-ride) {
    box-shadow: 0 0 0 3px rgba(133, 77, 14, 0.2);
    animation: todayPulseGent 2s ease-in-out infinite;
}

.calendar-day.today.has-ride.gent {
    animation: todayPulseGentRide 2s ease-in-out infinite;
}

@keyframes todayPulseGent {
    0%, 100% {
        box-shadow: 0 0 0 3px rgba(133, 77, 14, 0.2);
    }
    50% {
        box-shadow: 0 0 0 5px rgba(133, 77, 14, 0.3);
    }
}

@keyframes todayPulseGentRide {
    0%, 100% {
        box-shadow: 0 0 0 3px rgba(133, 77, 14, 0.3), 0 4px 12px rgba(0, 0, 0, 0.15);
    }
    50% {
        box-shadow: 0 0 0 5px rgba(133, 77, 14, 0.4), 0 4px 12px rgba(0, 0, 0, 0.15);
    }
}

.calendar-day.today.brugge {
    border-color: #1e3a8a;
}

.calendar-day.today.brugge:not(.has-ride) {
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.2);
    animation: todayPulseBrugge 2s ease-in-out infinite;
}

.calendar-day.today.has-ride.brugge {
    animation: todayPulseBruggeRide 2s ease-in-out infinite;
}

@keyframes todayPulseBrugge {
    0%, 100% {
        box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.2);
    }
    50% {
        box-shadow: 0 0 0 5px rgba(30, 58, 138, 0.3);
    }
}

@keyframes todayPulseBruggeRide {
    0%, 100% {
        box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.3), 0 4px 12px rgba(0, 0, 0, 0.15);
    }
    50% {
        box-shadow: 0 0 0 5px rgba(30, 58, 138, 0.4), 0 4px 12px rgba(0, 0, 0, 0.15);
    }
}

@media (max-width: 640px) {
    .ride-calendar {
        padding: 1.5rem 1rem;
        flex-direction: column;
    }
    
    .calendar-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        text-align: center;
    }
    
    .calendar-nav {
        justify-content: center;
    }
    
    .calendar-month-title {
        font-size: 1.25rem;
    }
    
    .calendar-weekdays {
        gap: 0.5rem;
    }
    
    .calendar-weekday {
        font-size: 0.75rem;
    }
    
    .calendar-grid {
        gap: 0.5rem;
    }
    
    .calendar-day {
        font-size: 0.8rem;
    }
    
    .calendar-buttons {
        justify-content: center;
    }
    
    .calendar-container {
        width: 100%;
    }
    
    .weather-card {
        width: 100%;
        min-width: unset;
        height: 400px;
    }
    
    .weather-card-header {
        padding: 1rem;
    }
    
    .weather-card-footer {
        padding: 0.5rem;
        gap: 0.25rem;
    }
    
    .forecast-box {
        padding: 0.5rem;
    }
    
    .forecast-time {
        font-size: 0.65rem;
        margin-bottom: 0.25rem;
    }
    
    .forecast-icon {
        font-size: 1.2rem;
    }
    
    .forecast-temp {
        font-size: 0.9rem;
    }
    
    .forecast-condition {
        font-size: 0.6rem;
    }
    
    .weather-label {
        font-size: 0.75rem;
    }
    
    .weather-value {
        font-size: 1.2rem;
    }
    
    .wind-map-container {
        min-height: 280px;
    }
    
    .calendar-grid {
        gap: 0.5rem;
        max-width: 100%;
    }
    
    .calendar-day {
        font-size: 0.8rem;
    }
    
    .calendar-month-title {
        font-size: 1.25rem;
    }
}

/* === Feedback Button === */
.feedback-button {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
    transition: all 0.3s;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feedback-button:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.5);
}

.feedback-button:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .feedback-button {
        bottom: 1rem;
        right: 1rem;
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
    }
}

/* === Feedback Modal === */
#feedbackModal .modal-content {
    max-width: 600px;
}

.feedback-category {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.category-btn {
    padding: 1rem;
    border: 2px solid #e5e7eb;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    font-weight: 500;
    color: #6b7280;
}

.category-btn:hover {
    border-color: #2563eb;
    color: #2563eb;
}

.category-btn.selected {
    background: #eff6ff;
    border-color: #2563eb;
    color: #2563eb;
}

.category-btn .category-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: block;
}
