body.login-page {
    background: linear-gradient(rgba(242, 240, 230, 0.6), rgba(242, 240, 230, 0.6)), url('https://www.animalhotel.ro/pensiune/fundal.jpg') no-repeat center center fixed;
    background-size: cover;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

/* Variables for common values */
:root {
    --primary-gradient: linear-gradient(135deg, #222831 0%, #222831 100%);
    --success-gradient: linear-gradient(45deg, #28a745, #20c997);
    --warning-gradient: linear-gradient(45deg, #222831, #222831);
    --danger-gradient: linear-gradient(45deg, #dc3545, #c82333);
    --info-gradient: linear-gradient(45deg, #17a2b8, #138496);
    --border-radius: 8px;
    --border-radius-large: 15px;
    --border-radius-small: 6px;
    --shadow: 0 5px 15px rgba(0,0,0,0.1);
    --shadow-hover: 0 10px 25px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
    --color-primary: #222831;
    --color-secondary: #6c757d;
    --border-color: #222831;
    --hover-transform: translateY(-2px);
}

/* Shared button styles */

.btn, .btn-small, .add-btn, .submit-btn, .profile-btn, .logout-btn, 
    .refresh-btn, .contact-btn, .calendar-nav-btn, .collapse-btn, 
    .delete-reservation-btn, .gdpr-close-btn, .rezervare-fara-cont-btn {
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 14px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: rgba(255,255,255,0.25);
    box-shadow: 0 4px 16px rgba(245,166,35,0.2), 0 2px 8px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
}


.btn:hover, .btn-small:hover, .add-btn:hover, .submit-btn:hover,
    .profile-btn:hover, .logout-btn:hover, .refresh-btn:hover, .contact-btn:hover {
    transform: translateY(-2px) scale(1.02);
    background: rgba(255,255,255,0.35);
    box-shadow: 0 8px 28px rgba(245,166,35,0.35), 0 4px 16px rgba(245,166,35,0.25), 0 0 0 1px rgba(245,166,35,0.15), inset 0 1px 0 rgba(255,255,255,0.3);
    border: 1px solid rgba(255,255,255,0.5);
    animation: button-pulse 1.5s infinite;
    backdrop-filter: blur(14px) saturate(200%);
    -webkit-backdrop-filter: blur(14px) saturate(200%);
}

/* Primary buttons */

.btn, .submit-btn {
    width: 100%;
    padding: 14px;
    background: rgba(245, 166, 35, 0.35); /* semi-transparent orange */
    color: #222831;
    font-size: 16px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 4px 20px rgba(245,166,35,0.18);
}

.btn::before, .submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before, .submit-btn:hover::before {
    left: 100%;
}

.btn:hover, .submit-btn:hover {
    box-shadow: 0 8px 24px rgba(245, 166, 35, 0.25);
}

.btn:disabled, .submit-btn:disabled {
    background: #e2e8f0;
    cursor: not-allowed;
    transform: none;
    opacity: 0.6;
}

.btn:disabled:hover, .submit-btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Specialized buttons */
.rezervare-fara-cont-btn {
    width: 100%;
    padding: 14px;
    margin-bottom: 20px;
    background: rgba(245, 166, 35, 0.15);
    color: #d4881c;
    font-size: 16px;
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 4px 20px rgba(245,166,35,0.08);
}

.rezervare-fara-cont-btn:hover {
    background: linear-gradient(135deg, #ff9500 0%, #f5a623 100%);
    box-shadow: 0 8px 24px rgba(245, 166, 35, 0.25);
}

.profile-btn {
    background: rgba(40, 167, 69, 0.15);
    color: #28a745;
    padding: 10px 20px;
    gap: 8px;
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 4px 20px rgba(40,167,69,0.08);
}

.profile-btn:hover {
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.logout-btn {
    background: rgba(220, 53, 69, 0.15);
    color: #dc3545;
    padding: 10px 20px;
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 4px 20px rgba(220,53,69,0.08);
}

.logout-btn:hover {
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.refresh-btn {
    background: var(--info-gradient);
    color: white;
    padding: 8px 12px;
    min-width: 40px;
    height: 40px;
    color: #222831;
    padding: 10px 12px;
    text-align: center;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.3);
    margin-right: 0.5em;
}

.refresh-btn.spinning #refreshIcon {
    animation: spin 1s linear infinite;
}

.contact-btn {
    color: white;
    padding: 10px 12px;
    text-align: center;
}

.contact-btn:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn-small {
    padding: 8px 15px;
    font-size: 14px;
    border-radius: var(--border-radius-small);
    font-weight: 500;
}

.btn-edit {
    background: rgba(245, 166, 35, 0.15);
    color: #d4881c;
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 4px 20px rgba(245,166,35,0.08);
}

.btn-edit:hover {
    box-shadow: 0 8px 24px rgba(245, 166, 35, 0.25);
    color: #222831;
}

.btn-delete {
    background: rgba(220, 53, 69, 0.15);
    color: #dc3545;
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 4px 20px rgba(220,53,69,0.08);
}

.btn-delete:hover {
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.add-btn {
    background: var(--success-gradient);
    color: white;
    padding: 12px 25px;
    margin-top: 20px;
    width: 100%;
}

.add-btn:hover {
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    color: #222831;
}

/* Form elements */
.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label, .booking-form label {
    display: block;
    margin-bottom: 8px;
    color: #222831;
    font-weight: 600;
    font-weight: 600;
}

.required-indicator {
    color: #e53e3e;
    font-weight: bold;
}

.disabled-label {
    color: #9ca3af !important;
    opacity: 0.7;
    transition: var(--transition);
}


.form-group input, .form-group textarea, .form-group select,
    .booking-form select, .date-input-field {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 14px;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    background: rgba(255,255,255,0.18);
    color: #222831;
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus,
.booking-form select:focus, .date-input-field:focus, .date-input-field.active {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input:valid {
    border-color: #28a745;
}

/* Disabled field styles */
.disabled-field {
    background-color: #e2e8f0 !important;
    color: #718096 !important;
    cursor: not-allowed !important;
    opacity: 0.7;
    border-color: #cbd5e0 !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    transition: var(--transition) !important;
}

.disabled-field::placeholder {
    color: #9ca3af !important;
}

.disabled-field:hover {
    transform: none !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.disabled-field:focus {
    transform: none !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    border-color: #cbd5e0 !important;
}

/* Nationality Selector Styles */
.nationality-selector {
    margin: 20px 0 25px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.nationality-options {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    flex-wrap: wrap;
}

.nationality-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 15px;
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    font-size: 14px;
    color: #4a5568;
    user-select: none;
    flex: 1;
    justify-content: center;
    min-height: 45px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    position: relative;
}

.nationality-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.15);
    border-color: #667eea;
    background: rgba(255, 255, 255, 0.95);
}

.nationality-option.active {
    background: var(--primary-gradient);
    color: white;
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.25);
    transform: translateY(-2px);
    animation: pulseSelect 0.4s ease-out;
}

.nationality-option:active {
    transform: scale(0.95) translateY(0);
    animation: clickPulse 0.3s ease-out;
}

/* Animație pentru click */
@keyframes clickPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(0.95);
    }
    100% {
        transform: scale(1);
    }
}

/* Animație pentru selecție */
@keyframes pulseSelect {
    0% {
        transform: translateY(-2px) scale(1);
    }
    50% {
        transform: translateY(-2px) scale(1.05);
    }
    100% {
        transform: translateY(-2px) scale(1);
    }
}

/* Animație pentru bifă */
@keyframes checkmarkAppear {
    0% {
        opacity: 0;
        transform: scale(0) rotate(-45deg);
    }
    50% {
        transform: scale(1.2) rotate(0deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.nationality-option .flag {
    font-size: 16px;
    margin-right: 2px;
}

.nationality-option .text {
    font-weight: 600;
    font-size: 13px;
}

/* Bifă pentru opțiunea selectată */
.nationality-option.active::after {
    content: "✓";
    position: absolute;
    right: 10px;
    font-size: 18px;
    font-weight: bold;
    color: white;
    animation: checkmarkAppear 0.4s ease-out;
}

.date-input-field {
    padding-right: 45px;
    cursor: pointer;
    color: var(--color-primary);
}

.date-input-field::placeholder {
    color: var(--color-secondary);
}

.date-input-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #667eea;
    font-size: 18px;
    pointer-events: none;
}

/* Containers and cards */
.login-container, .card, .modal-content, .gdpr-modal-content {
    background: rgba(248, 247, 229, 0.50);
    backdrop-filter: blur(16px) saturate(200%);
    -webkit-backdrop-filter: blur(16px) saturate(200%);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.login-container {
    max-width: 450px;
    margin: 100px auto;
    padding: 40px;
    background: rgba(248, 247, 229, 0.50);
    backdrop-filter: blur(16px) saturate(200%);
    -webkit-backdrop-filter: blur(16px) saturate(200%);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Orange top border, shorter and rounded to follow corners */
.card::before, .header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    right: 20px;
    height: 5px;
    background: var(--primary-gradient);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    z-index: 1;
}

/* Remove previous hide rule for ::before if present */
.card::before, .header::before {
    display: none !important;
}

.card::before {
    height: 3px;
}

.login-container h1 {
    text-align: center;
    color: #222831;
    margin-bottom: 10px;
    font-size: 2.2rem;
}

.login-subtitle {
    text-align: center;
    color: var(--color-secondary);
    margin-bottom: 30px;
    font-size: 1rem;
}

.card {
    padding: 30px;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card h2 {
    margin-bottom: 20px;
    color: #222831;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-icon {
    font-size: 1.5rem;
}

/* Dashboard layout */
.dashboard {
    display: none;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    background: rgba(248, 247, 229, 0.50);
    backdrop-filter: blur(16px) saturate(200%);
    -webkit-backdrop-filter: blur(16px) saturate(200%);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 25px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h1 {
    color: #222831;
    margin-bottom: 5px;
}

.header p {
    color: var(--color-secondary);
    margin: 0;
}

.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

/* Tabs */
.auth-tabs {
    display: flex;
    margin-bottom: 30px;
    background: #f8f9fa;
    border-radius: var(--border-radius);
    padding: 4px;
}

.auth-tab {
    flex: 1;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    border-radius: var(--border-radius-small);
    transition: var(--transition);
    font-weight: 600;
}

.auth-tab.active {
    background: var(--primary-gradient);
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.register-link {
    text-align: center;
    margin-top: 20px;
    color: var(--color-secondary);
}

.register-link a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.register-link a:hover {
    text-decoration: underline;
}

/* Animal items */
.animal-item {
    background: rgba(248, 247, 229, 0.20);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.3);
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 12px;
    border-left: 4px solid #667eea;
    transition: var(--transition);
    position: relative;
}

.animal-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.animal-item h3 {
    margin-bottom: 10px;
    color: var(--color-primary);
    font-size: 1.2rem;
}

.animal-details {
    color: var(--color-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.animal-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

/* Calendar styles */
.modern-date-picker {
    position: relative;
    margin-bottom: 20px;
}

.date-input-wrapper {
    position: relative;
}

.calendar-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-width: 340px;
    margin: 5px auto 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    z-index: 1000;
    display: none;
    animation: slideDown 0.3s ease;
    overflow: hidden;
}

.calendar-dropdown.show {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: var(--primary-gradient);
    color: white;
}

.calendar-nav-btn {
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 5px 9px;
    border-radius: 5px;
    font-size: 13px;
    transition: var(--transition);
}

.calendar-nav-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.05);
}

.calendar-month-year {
    font-size: 14px;
    font-weight: 600;
    flex: 1;
    text-align: center;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #f8f9fa;
    padding: 0;
}

.calendar-weekday {
    text-align: center;
    padding: 6px 3px;
    font-weight: 600;
    color: var(--color-secondary);
    font-size: 11px;
    border-right: 1px solid var(--border-color);
}

.calendar-weekday:last-child {
    border-right: none;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    position: relative;
    min-height: 22px;
}

.calendar-day:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.calendar-day.disabled {
    color: #d6d8db;
    cursor: not-allowed;
    background: #f8f9fa;
}

.calendar-day.disabled:hover {
    background: #f8f9fa;
    color: #d6d8db;
}

.calendar-day.other-month {
    color: #d6d8db;
}

.calendar-day.today {
    background: var(--success-gradient);
    color: white;
    font-weight: 600;
}

.calendar-day.today:hover {
    background: linear-gradient(45deg, #20c997, #17a085);
    color: white;
}

.calendar-day.selected {
    background: var(--primary-gradient);
    color: white;
    font-weight: 600;
}

.calendar-day.selected:hover {
    background: linear-gradient(45deg, #5a6fd8 0%, #6a4190 100%);
    color: white;
}

.calendar-day.range-start, .calendar-day.range-end {
    background: var(--primary-gradient);
    color: white;
    font-weight: 600;
}

.calendar-day.range-middle {
    background: rgba(102, 126, 234, 0.2);
    color: #667eea;
}

.calendar-day.weekend {
    color: #dc3545;
}

.calendar-day.weekend.disabled {
    color: #f8d7da;
}

/* ✅ Ziua de check-in marcată cu verde în calendarul check-out */
.calendar-day.checkin-reference {
    background: var(--success-gradient);
    color: white;
    font-weight: 600;
    border: 2px solid #20c997;
    box-shadow: 0 0 8px rgba(32, 201, 151, 0.4);
}

.calendar-day.checkin-reference:hover {
    background: linear-gradient(45deg, #20c997, #17a085);
    color: white;
}

/* ✅ Zile blocate în calendar check-out (înainte de check-in) */
.calendar-day.blocked-before-checkin {
    position: relative;
}

.calendar-day .blocked-x {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #dc3545;
    font-size: 18px;
    font-weight: 400;
    opacity: 0.4;
    pointer-events: none;
    z-index: 2;
    text-shadow: none;
}

/* Booking form */
.booking-form {
    display: grid;
    gap: 20px;
}

/* ✅ Info box perioada cazare - subtil și compact */
.stay-period-info {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8eeff 100%);
    border-left: 3px solid #667eea;
    border-radius: 8px;
    margin-top: -5px;
    font-size: 14px;
    color: #4a5568;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.08);
}

.stay-period-info .period-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.stay-period-info .period-text {
    font-weight: 500;
    line-height: 1.4;
}

.booking-summary {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
    border: 1px solid #2196f3;
}

.booking-summary h3 {
    color: #1976d2;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.booking-summary-content {
    color: #0d47a1;
    line-height: 1.6;
}

/* Notice styles */
.important-notice, .gdpr-notice {
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    position: relative;
    overflow: hidden;
}

.important-notice::before, .gdpr-notice::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.important-notice {
    background: linear-gradient(135deg, #f5e6c6 0%, #e6cfa7 100%);
    border: 2px solid #cc8500;
}

.important-notice::before {
    background: linear-gradient(45deg, #cc8500, #b37417);
}

.gdpr-notice {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    border: 2px solid #17a2b8;
}

.gdpr-notice::before {
    background: var(--info-gradient);
}

.notice-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
}

.notice-icon {
    font-size: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.notice-text {
    line-height: 1.5;
    font-size: 14px;
}

.important-notice .notice-text {
    color: #856404;
}

.important-notice .notice-text strong {
    color: #5a4301;
    font-weight: 700;
}

.gdpr-notice .notice-icon {
    color: #0c5460;
}

.gdpr-notice .notice-text {
    color: #0c5460;
}

.gdpr-notice .notice-text strong {
    color: #0a3c47;
    font-weight: 700;
}

.gdpr-link {
    color: #17a2b8;
    cursor: pointer;
    text-decoration: underline;
    font-weight: 600;
}

.gdpr-link:hover {
    color: #138496;
}

/* Checkbox styles */
.notice-checkbox {
    margin-top: 15px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-top: 15px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    user-select: none;
}

.important-notice .checkbox-container {
    color: #5a4301;
}

.gdpr-notice .checkbox-container {
    color: #0a3c47;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    height: 20px;
    width: 20px;
    background: white;
    border: 2px solid #ffc107;
    border-radius: 4px;
    margin-right: 12px;
    position: relative;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkbox-container:hover .checkmark {
    transform: scale(1.05);
}

.important-notice .checkbox-container:hover .checkmark {
    border-color: #ff8f00;
}

.gdpr-notice .checkmark {
    border-color: #17a2b8;
}

.gdpr-notice .checkbox-container:hover .checkmark {
    border-color: #138496;
}

.checkbox-container input:checked ~ .checkmark {
    background: var(--warning-gradient);
    border-color: #ff8f00;
}

.gdpr-notice .checkbox-container input:checked ~ .checkmark {
    background: var(--info-gradient);
    border-color: #138496;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container input:focus ~ .checkmark {
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.3);
}

.gdpr-notice .checkbox-container input:focus ~ .checkmark {
    box-shadow: 0 0 0 3px rgba(23, 162, 184, 0.3);
}

.profile-warning {
    background: linear-gradient(135deg, #f5e6c6 0%, #e6cfa7 100%);
    border: 2px solid #cc8500;
    border-radius: 12px;
    padding: 15px;
    margin-top: 15px;
    position: relative;
    overflow: hidden;
}

.profile-warning::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(45deg, #cc8500, #b37417);
}

/* Reservations */
.reservations-list {
    display: grid;
    gap: 15px;
}

.reservation-item {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #ff9800;
    transition: var(--transition);
    position: relative;
}

.reservation-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.reservation-item.collapsed {
    padding: 12px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left-color: var(--color-secondary);
}

.reservation-item.collapsed:hover {
    transform: translateX(2px);
}

.reservation-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    gap: 15px;
}

.reservation-header.collapsed {
    margin-bottom: 0;
    align-items: center;
}

.reservation-title {
    flex: 1;
    margin: 0;
    color: #222831;
    font-size: 1.1rem;
    line-height: 1.4;
}

.reservation-title-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.reservation-controls {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    flex-shrink: 0;
}

.collapse-btn {
    background: rgba(108, 117, 125, 0.1);
    padding: 4px 8px;
    border-radius: var(--border-radius-small);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-secondary);
    min-width: 24px;
    min-height: 24px;
}

.collapse-btn:hover {
    background: rgba(108, 117, 125, 0.2);
    color: #495057;
    transform: scale(1.1);
}

.delete-reservation-btn {
    background: var(--danger-gradient);
    padding: 4px 8px;
    border-radius: var(--border-radius-small);
    font-size: 12px;
    font-weight: 600;
    color: white;
    min-width: 24px;
    min-height: 24px;
}

.delete-reservation-btn:hover {
    background: linear-gradient(45deg, #c82333, #a71e2a);
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.reservation-collapsed-info {
    display: none;
    color: var(--color-secondary);
    font-size: 14px;
    font-weight: 500;
}

.reservation-item.collapsed .reservation-collapsed-info {
    display: block;
}

.reservation-item.collapsed .reservation-details {
    display: none;
}

.reservation-item.collapsed .reservation-status {
    font-size: 10px;
    padding: 2px 8px;
}

.reservation-item.collapsed .reservation-collapsed-mobile {
    display: none;
}

.reservation-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-confirmed {
    background: #d1ecf1;
    color: #0c5460;
}

.status-housed {
    background: #d4edda;
    color: #155724;
}

.status-completed {
    background: #e2e3e5;
    color: #383d41;
}

.status-rejected {
    background: #f8d7da;
    color: #721c24;
}

.reservation-details {
    color: var(--color-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--color-secondary);
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* Modal */
.modal, .gdpr-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-content {
    max-width: 600px;
    margin: 50px auto;
    padding: 30px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.modal-header, .gdpr-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.modal-header h2 {
    color: var(--color-primary);
    margin: 0;
}

.close-btn {
    font-size: 28px;
    cursor: pointer;
    color: var(--color-secondary);
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #dc3545;
}

.modal-form {
    display: grid;
    gap: 20px;
}

.modal-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* GDPR Modal */
.gdpr-modal {
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gdpr-modal.show {
    display: flex;
    opacity: 1;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.gdpr-modal-content {
    padding: 40px;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.gdpr-modal.show .gdpr-modal-content {
    transform: scale(1);
}

.gdpr-modal-header {
    border-bottom-color: rgba(102, 126, 234, 0.2);
}

.gdpr-modal-title {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

.gdpr-close-btn {
    background: var(--primary-gradient);
    color: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 18px;
}

.gdpr-close-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.gdpr-modal-body {
    line-height: 1.6;
    color: #2d3748;
}

.gdpr-modal-body h2 {
    color: #000;
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.gdpr-modal-body h2:first-child {
    margin-top: 0;
}

.gdpr-modal-body p {
    margin-bottom: 15px;
}

.gdpr-modal-body ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.gdpr-modal-body li {
    margin-bottom: 8px;
}

.gdpr-modal-body strong {
    color: #222831;
}

/* Notification */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(34, 40, 49, 0.25);
    color: #fff;
    padding: 15px 25px;
    border-radius: 16px;
    display: none;
    animation: slideIn 0.3s ease;
    z-index: 10000;
    box-shadow: 0 4px 24px rgba(34,40,49,0.10);
    max-width: 350px;
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.25);
}

.notification.error {
    background: rgba(34, 40, 49, 0.25);
    color: #fff;
}

.notification.warning {
    background: rgba(34, 40, 49, 0.25);
    color: #fff;
}

.notification.info {
    background: rgba(34, 40, 49, 0.25);
    color: #fff;
}

/* Loading States */
.loading {
    display: none;
    text-align: center;
    padding: 20px;
    color: var(--color-secondary);
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

/* Animations */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes slideUp {
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

.slide-up {
    animation: slideUp 0.3s ease-out;
}

/* Desktop: hide mobile collapsed info */
@media (min-width: 769px) {
    .reservation-collapsed-mobile {
        display: none !important;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .content {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        margin: 20px;
        padding: 20px;
    }

    .gdpr-modal-content {
        margin: 15px;
        padding: 20px;
        max-height: 90vh;
    }
    
    .header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .header-actions {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .profile-btn, .logout-btn {
        width: 100%;
        justify-content: center;
    }

    .refresh-btn {
        min-width: 36px;
        height: 36px;
        padding: 6px 10px;
    }

    .reservation-controls {
        flex-direction: row;
        gap: 15px;
        flex-shrink: 0;
        align-items: flex-start;
    }

    .reservation-header {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        gap: 15px;
    }

    .reservation-header.collapsed {
        align-items: center;
    }

    .reservation-title {
        font-size: 0.95rem;
        line-height: 1.3;
        margin-bottom: 0;
    }

    .reservation-title-wrapper {
        flex: 1;
        min-width: 0;
    }

    .collapse-btn, .delete-reservation-btn {
        min-width: 40px;
        min-height: 40px;
        font-size: 14px;
        padding: 10px;
        flex-shrink: 0;
        border-radius: var(--border-radius);
    }

    .reservation-status {
        font-size: 11px;
        padding: 4px 8px;
        display: inline-block;
        margin-top: 3px;
    }

    .reservation-collapsed-mobile {
        font-size: 11px !important;
        margin-top: 6px;
        line-height: 1.3;
        display: none;
    }

    .reservation-item.collapsed .reservation-collapsed-mobile {
        display: block !important;
    }

    /* Hide desktop collapsed info on mobile */
    .reservation-collapsed-info {
        display: none !important;
    }

    .contact-btn {
        padding: 6px 8px !important;
        font-size: 0.8rem !important;
    }

    .contact-btn div:first-child {
        font-size: 1rem !important;
        margin-bottom: 2px !important;
    }

    .contact-btn div:nth-child(2) {
        font-size: 0.8rem !important;
        font-weight: 500 !important;
    }

    .contact-btn div:last-child {
        font-size: 10px !important;
    }
    
    .modal-form .form-row {
        grid-template-columns: 1fr;
    }

    /* Responsive pentru selector nationalitate în modal */
    .nationality-options {
        flex-direction: column;
        gap: 15px;
    }
    
    .nationality-option {
        min-width: 100%;
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .nationality-option .text {
        font-size: 14px;
    }
    
    /* Ajustare poziție bifă pe mobile */
    .nationality-option.active::after {
        right: 15px;
        font-size: 20px;
    }

    .calendar-dropdown {
        position: fixed;
        z-index: 1001;
        overflow-y: auto;
    }

    .calendar-day {
        min-height: 40px;
        font-size: 14px;
    }

    .calendar-header {
        padding: 15px;
    }

    .calendar-month-year {
        font-size: 18px;
    }

    .calendar-weekday {
        padding: 12px 5px;
        font-size: 14px;
    }

    .calendar-nav-btn {
        padding: 8px 12px;
        font-size: 16px;
        border-radius: var(--border-radius-small);
    }

    .date-input-field {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Touch interactions for mobile */
@media (hover: none) {
    .calendar-day:hover {
        background: initial;
        color: initial;
    }

    .calendar-day:active {
        background: rgba(102, 126, 234, 0.2);
        color: #667eea;
    }

    .calendar-day.disabled:active {
        background: #f8f9fa;
        color: #d6d8db;
    }
}
