/* EuroPlan - European Travel Planner Styles */

/* CSS Variables */
:root {
    --navy: #1A2744;
    --dark-bg: #0c1220;
    --darker-bg: #080d16;
    --gold: #F2CC8F;
    --coral: #E07A5F;
    --green: #81B29A;
    --blue: #3D85C6;
    --purple: #9B5DE5;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    --border-color: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(26, 39, 68, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
}

/* Login Page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--darker-bg) 0%, var(--navy) 100%);
    padding: 20px;
}

.login-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 48px;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow);
}

.login-logo {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.05em;
}

.login-logo p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-top: 8px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(242, 204, 143, 0.1);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.pin-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
}

.pin-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
    transition: var(--transition);
}

.pin-dot.filled {
    background: var(--gold);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    min-height: 44px;
    min-width: 44px;
}

.btn-primary {
    width: 100%;
    background: var(--coral);
    color: white;
}

.btn-primary:hover {
    background: #c96a52;
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-success {
    background: var(--green);
    color: white;
}

.btn-success:hover {
    background: #6a9c84;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

.login-error {
    color: var(--coral);
    font-size: 0.875rem;
    text-align: center;
    margin-top: 16px;
    min-height: 20px;
}

/* Shake animation for errors */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.shake {
    animation: shake 0.5s ease-in-out;
}

/* Main App Layout */
.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--dark-bg);
}

.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: var(--navy);
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gold);
}

.user-name {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 0.875rem;
}

.app-main {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Left Panel - Calendar & Itinerary */
.left-panel {
    width: 400px;
    min-width: 360px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border-color);
    background: var(--darker-bg);
    overflow-y: auto;
}

.panel-section {
    padding: 24px;
}

.panel-section + .panel-section {
    border-top: 1px solid var(--border-color);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Calendar */
.calendar-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.calendar-month {
    font-size: 1rem;
    font-weight: 600;
}

.calendar-nav-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
}

.calendar-nav-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.calendar-weekday {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    padding: 8px 0;
    font-weight: 500;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.calendar-day:hover {
    background: rgba(255, 255, 255, 0.1);
}

.calendar-day.empty {
    cursor: default;
}

.calendar-day.empty:hover {
    background: transparent;
}

.calendar-day.today {
    border: 2px solid var(--gold);
}

.calendar-day.has-trip {
    color: white;
    font-weight: 600;
}

/* Travel day with diagonal split */
.calendar-day.travel-day {
    background: linear-gradient(
        135deg,
        var(--from-color) 0%,
        var(--from-color) 50%,
        var(--to-color) 50%,
        var(--to-color) 100%
    );
}

.calendar-day .day-number {
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Itinerary */
.itinerary-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.itinerary-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: var(--glass-bg);
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.itinerary-item:hover {
    background: rgba(26, 39, 68, 0.8);
}

.itinerary-item.transit {
    opacity: 0.7;
    border-left: 2px dashed var(--gold);
}

.itinerary-item.transit .itinerary-dates {
    color: var(--gold);
}

.itinerary-color {
    width: 4px;
    min-height: 48px;
    border-radius: 4px;
    flex-shrink: 0;
}

.itinerary-content {
    flex: 1;
    min-width: 0;
}

.itinerary-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.itinerary-dates {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.itinerary-notes {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 8px;
    font-style: italic;
}

.itinerary-actions {
    display: flex;
    gap: 8px;
    opacity: 0;
    transition: var(--transition);
}

.itinerary-item:hover .itinerary-actions {
    opacity: 1;
}

.itinerary-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 6px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.itinerary-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

.itinerary-btn.delete:hover {
    background: rgba(220, 53, 69, 0.3);
    color: #dc3545;
}

.empty-state {
    text-align: center;
    padding: 32px;
    color: var(--text-muted);
}

/* Right Panel - Map */
.right-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--dark-bg);
    overflow: hidden;
    position: relative;
}

.map-container {
    flex: 1;
    position: relative;
    overflow: hidden;
    min-height: 400px;
}

#leaflet-map {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    min-height: 400px;
    background: var(--dark-bg);
    z-index: 1;
}

/* Leaflet dark theme overrides */
.leaflet-container {
    background: var(--dark-bg);
    font-family: inherit;
}

.leaflet-control-zoom {
    border: none !important;
    box-shadow: var(--shadow) !important;
}

.leaflet-control-zoom a {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border) !important;
    color: var(--text-primary) !important;
    width: 36px !important;
    height: 36px !important;
    line-height: 36px !important;
    font-size: 18px !important;
}

.leaflet-control-zoom a:hover {
    background: rgba(26, 39, 68, 0.9) !important;
}

.leaflet-control-zoom-in {
    border-radius: 8px 8px 0 0 !important;
}

.leaflet-control-zoom-out {
    border-radius: 0 0 8px 8px !important;
}

.leaflet-control-attribution {
    background: rgba(12, 18, 32, 0.8) !important;
    color: var(--text-muted) !important;
    font-size: 10px !important;
}

.leaflet-control-attribution a {
    color: var(--text-secondary) !important;
}

/* Custom map markers */
.trip-marker {
    background: var(--coral);
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.trip-marker-label {
    background: var(--navy);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 8px 12px;
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: var(--shadow);
}

.trip-marker-label .city {
    font-weight: 600;
}

.trip-marker-label .days {
    color: var(--text-secondary);
    font-size: 0.75rem;
}

/* Flight arc plane marker */
.plane-marker {
    background: transparent !important;
    border: none !important;
}

.plane-marker div {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.plane-marker:hover div {
    transform: scale(1.2);
}

.country-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 12px 20px;
    min-width: 120px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    z-index: 1000;
    gap: 8px;
}

.country-count {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
}

.country-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Play Animation Button */
.play-badge {
    position: absolute;
    right: 24px;
    z-index: 1000;
    top: 175px;
    transition: top 0.3s ease;
}

/* Animation popup styling for dark theme */
.animation-popup .leaflet-popup-content-wrapper {
    background: var(--navy);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.animation-popup .leaflet-popup-content {
    margin: 0;
    color: var(--text-primary);
}

.animation-popup .leaflet-popup-tip {
    background: var(--navy);
}

.play-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: var(--gold);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.play-btn:hover {
    background: rgba(242, 204, 143, 0.2);
    transform: scale(1.1);
}

.play-btn.playing {
    background: rgba(224, 122, 95, 0.3);
    border-color: var(--coral);
}

.play-btn.playing .play-icon {
    color: var(--coral);
}

/* Friends Badges */
.friends-badges {
    position: absolute;
    top: 175px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 1000;
}

.friends-badge {
    background: rgba(155, 93, 229, 0.9);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(155, 93, 229, 0.6);
    border-radius: 12px;
    padding: 10px 16px;
    min-width: 120px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    cursor: help;
}

.friends-badge.satisfied {
    background: rgba(129, 178, 154, 0.9);
    border-color: rgba(129, 178, 154, 0.6);
}

.friends-badge-icon {
    font-size: 1.25rem;
}

.friends-badge-content {
    display: flex;
    flex-direction: column;
}

.friends-badge-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.friends-badge-location {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
}

.friends-badge-date {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.map-tooltip {
    position: absolute;
    background: var(--navy);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.875rem;
    pointer-events: none;
    z-index: 100;
    box-shadow: var(--shadow);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.map-tooltip.visible {
    opacity: 1;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--navy);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.95);
    transition: var(--transition);
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 8px;
    transition: var(--transition);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    display: flex;
    gap: 12px;
    padding: 24px;
    border-top: 1px solid var(--border-color);
}

.modal-footer .btn {
    flex: 1;
}

/* Form elements */
select {
    width: 100%;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' fill-opacity='0.5' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

select:focus {
    outline: none;
    border-color: var(--gold);
}

select option {
    background: var(--navy);
    color: var(--text-primary);
}

textarea {
    width: 100%;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
    transition: var(--transition);
}

textarea:focus {
    outline: none;
    border-color: var(--gold);
}

/* Day stepper */
.day-stepper {
    display: flex;
    align-items: center;
    gap: 16px;
}

.stepper-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 12px;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 1.25rem;
    transition: var(--transition);
}

.stepper-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.stepper-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.stepper-value {
    flex: 1;
    text-align: center;
}

.stepper-number {
    font-size: 1.5rem;
    font-weight: 600;
}

.stepper-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Color preview */
.color-preview {
    display: flex;
    align-items: center;
    gap: 12px;
}

.color-swatch {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.color-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Confirm dialog */
.confirm-dialog {
    text-align: center;
}

.confirm-dialog p {
    margin-bottom: 24px;
    color: var(--text-secondary);
}

.confirm-actions {
    display: flex;
    gap: 12px;
}

.confirm-actions .btn {
    flex: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .app-main {
        flex-direction: column;
    }

    .left-panel {
        width: 100%;
        min-width: unset;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        max-height: 50vh;
    }

    .right-panel {
        min-height: 50vh;
    }

    .app-header {
        padding: 12px 16px;
    }

    .header-logo {
        font-size: 1rem;
    }

    .user-name {
        display: none;
    }

    .btn-icon span {
        display: none;
    }

    .btn-icon {
        padding: 10px;
    }

    .panel-section {
        padding: 16px;
    }

    .login-card {
        padding: 32px 24px;
    }

    .country-badge {
        top: 16px;
        right: 16px;
        padding: 8px 16px;
    }

    .map-controls {
        bottom: 16px;
        right: 16px;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Utility classes */
.hidden {
    display: none !important;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Settings Page */
.settings-main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 20px;
    overflow-y: auto;
    background: var(--darker-bg);
}

.settings-container {
    width: 100%;
    max-width: 600px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 32px;
}

.settings-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 32px;
    text-align: center;
}

.settings-section {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.settings-section:last-of-type {
    border-bottom: none;
    margin-bottom: 24px;
}

.settings-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.form-help {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    margin-top: -4px;
}

/* Toggle Switch */
.toggle-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.toggle-label input {
    display: none;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    flex-shrink: 0;
    width: 48px;
    height: 26px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 13px;
    transition: var(--transition);
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.toggle-label input:checked + .toggle-switch {
    background: var(--green);
}

.toggle-label input:checked + .toggle-switch::after {
    left: 24px;
}

.toggle-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Travel Method Selector */
.travel-method-selector {
    display: flex;
    gap: 12px;
}

.travel-method-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    flex: 1;
}

.travel-method-option:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.travel-method-option.selected {
    background: rgba(242, 204, 143, 0.15);
    border-color: var(--gold);
}

.travel-method-option input {
    display: none;
}

.travel-icon {
    font-size: 28px;
    line-height: 1;
}

.travel-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.travel-method-option.selected .travel-label {
    color: var(--gold);
}

.settings-actions {
    display: flex;
    justify-content: center;
}

.settings-message {
    text-align: center;
    margin-top: 16px;
    font-size: 0.875rem;
    min-height: 20px;
}

.settings-message.success {
    color: var(--green);
}

.settings-message.error {
    color: var(--coral);
}

/* Rendezvous Section */
.rendezvous-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.rendezvous-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.rendezvous-icon {
    font-size: 24px;
}

.rendezvous-content {
    flex: 1;
}

.rendezvous-title {
    font-weight: 500;
    color: var(--text-primary);
}

.rendezvous-date {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.add-rendezvous-form {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 16px;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.75rem;
}

.btn-danger {
    background: var(--coral);
    color: white;
    border: none;
}

.btn-danger:hover {
    background: #c56a52;
}

.empty-state-text {
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-align: center;
    padding: 16px;
}

/* Days Remaining Badge */
.days-remaining-badge {
    position: absolute;
    top: 100px;
    right: 24px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 12px 20px;
    min-width: 120px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 1000;
    transition: var(--transition);
}

.days-remaining-badge.overdue {
    background: rgba(220, 53, 69, 0.8);
    border-color: rgba(220, 53, 69, 0.5);
}

.days-remaining-count {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
}

.days-remaining-badge.overdue .days-remaining-count {
    color: white;
}

.days-remaining-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.days-remaining-badge.overdue .days-remaining-label {
    color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 768px) {
    .settings-container {
        padding: 24px 16px;
    }

    .days-remaining-badge {
        top: 72px;
        right: 16px;
        padding: 8px 16px;
    }
}

/* Admin Badge */
.admin-badge {
    background: var(--coral);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 12px;
}

.admin-badge-sm {
    background: var(--coral);
    color: white;
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: 600;
    margin-left: 8px;
}

/* User Management */
.users-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.user-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 12px 16px;
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.user-name {
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
}

.user-status {
    font-size: 0.8rem;
}

.user-status.active {
    color: var(--green);
}

.user-status.inactive {
    color: var(--text-secondary);
}

.user-actions {
    display: flex;
    gap: 8px;
}

.add-user-form {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}

/* Activity Log */
.activity-log {
    max-height: 400px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.activity-item {
    display: grid;
    grid-template-columns: 140px 100px 120px 1fr;
    gap: 12px;
    padding: 10px 12px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    font-size: 0.85rem;
    align-items: center;
}

.activity-time {
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.activity-user {
    color: var(--gold);
    font-weight: 500;
}

.activity-action {
    color: var(--green);
}

.activity-details {
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .activity-item {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .user-item {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .user-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

/* Reader Badge */
.reader-badge {
    background: var(--blue);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 12px;
}

.reader-badge-sm {
    background: var(--blue);
    color: white;
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: 600;
    margin-left: 8px;
}
