/* Admin Styles */

/* Dashboard Stats */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.admin-stat-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.admin-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.admin-stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-right: 15px;
}

.admin-stat-info {
    flex: 1;
}

.admin-stat-info h3 {
    margin: 0 0 5px 0;
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.admin-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--admin-primary);
    margin-bottom: 8px;
}

.admin-stat-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.admin-stat-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.admin-stat-label {
    color: #888;
    font-weight: 500;
}

.admin-stat-sub-value {
    color: var(--admin-primary);
    font-weight: 600;
}

/* Dashboard Charts */
.admin-charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.admin-chart-container {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.admin-chart-container canvas {
    max-width: 100%;
    height: auto;
}

/* Status badges */
.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.status-pending {
    background-color: rgba(255, 206, 86, 0.2);
    color: #856404;
}

.status-confirmed {
    background-color: rgba(75, 192, 192, 0.2);
    color: #0c5460;
}

.status-completed {
    background-color: rgba(54, 162, 235, 0.2);
    color: #004085;
}

.status-cancelled {
    background-color: rgba(255, 99, 132, 0.2);
    color: #721c24;
}

/* View booking link */
.view-booking {
    color: #2c5aa0;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.view-booking:hover {
    background-color: rgba(44, 90, 160, 0.1);
}
:root {
    --admin-primary: #2c5aa0;
    --admin-secondary: #c8a45c;
    --admin-dark: #1a3c6d;
    --admin-light: #f5f5f5;
    --admin-gray: #e0e0e0;
    --admin-text: #333;
    --admin-danger: #dc3545;
    --admin-success: #28a745;
    --admin-warning: #ffc107;
}

.admin-body {
    background: linear-gradient(135deg, var(--admin-dark) 0%, var(--admin-primary) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.admin-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Login Page */
.admin-login-box {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 40px;
    max-width: 400px;
    margin: 0 auto;
    text-align: center;
}

.admin-logo {
    margin-bottom: 20px;
}

.admin-logo img {
    max-width: 150px;
    height: auto;
}

.admin-login-box h2 {
    color: var(--admin-primary);
    margin-bottom: 30px;
    font-weight: 600;
}

.admin-login-box .form-group {
    margin-bottom: 20px;
    text-align: left;
}

.admin-login-box label {
    display: block;
    margin-bottom: 8px;
    color: var(--admin-text);
    font-weight: 500;
}

.admin-login-box input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--admin-gray);
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.admin-login-box input:focus {
    border-color: var(--admin-primary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(44, 90, 160, 0.2);
}

.admin-login-box .btn {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    margin-top: 10px;
    background-color: var(--admin-primary);
    border: none;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.admin-login-box .btn:hover {
    background-color: var(--admin-dark);
}

.admin-login-footer {
    margin-top: 20px;
}

.admin-login-footer a {
    color: var(--admin-primary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.admin-login-footer a:hover {
    color: var(--admin-secondary);
}

/* Dashboard Styles */
.admin-header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.admin-header-logo img {
    height: 40px;
}

.admin-header-actions {
    display: flex;
    align-items: center;
}

.admin-user-info {
    margin-right: 20px;
    text-align: right;
}

.admin-user-name {
    font-weight: 600;
    color: var(--admin-text);
}

.admin-user-role {
    font-size: 12px;
    color: #777;
}

.admin-logout-btn {
    background-color: transparent;
    border: 1px solid var(--admin-primary);
    color: var(--admin-primary);
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.admin-logout-btn:hover {
    background-color: var(--admin-primary);
    color: white;
}

.admin-dashboard {
    display: flex;
    min-height: 100vh;
    padding-top: 70px;
}

.admin-sidebar {
    width: 250px;
    background-color: white;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
    position: fixed;
    top: 70px;
    left: 0;
    bottom: 0;
    overflow-y: auto;
}

.admin-sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.admin-sidebar-menu li {
    margin-bottom: 5px;
}

.admin-sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: var(--admin-text);
    text-decoration: none;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.admin-sidebar-menu a:hover,
.admin-sidebar-menu a.active {
    background-color: rgba(44, 90, 160, 0.1);
    border-left-color: var(--admin-primary);
    color: var(--admin-primary);
}

.admin-sidebar-menu i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.admin-main-content {
    flex: 1;
    padding: 30px;
    margin-left: 250px;
    background-color: var(--admin-light);
}

.admin-page-title {
    margin-top: 0;
    margin-bottom: 30px;
    color: var(--admin-primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-page-title button {
    background-color: var(--admin-primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background-color 0.3s;
}

.admin-page-title button:hover {
    background-color: var(--admin-dark);
}

.admin-page-title button i {
    margin-right: 8px;
}

/* Car Management */
.admin-cars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.admin-car-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.admin-car-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

/* Car Status Button */
.admin-car-status {
    margin-top: 10px;
    display: flex;
    justify-content: center;
}

.toggle-status {
    padding: 6px 12px;
    border-radius: 20px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.status-available {
    background-color: #e6f7e6;
    color: #28a745;
    border: 1px solid #28a745;
}

.status-available:hover {
    background-color: #d4f3d4;
}

.status-booked {
    background-color: #ffecec;
    color: #dc3545;
    border: 1px solid #dc3545;
}

.status-booked:hover {
    background-color: #ffdada;
}

.admin-car-image {
    height: 180px;
    overflow: hidden;
    position: relative;
}

.admin-car-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.admin-car-card:hover .admin-car-image img {
    transform: scale(1.05);
}

.admin-car-category {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--admin-primary);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.admin-car-info {
    padding: 20px;
}

.admin-car-title {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--admin-text);
    font-weight: 600;
}

.admin-car-price {
    color: var(--admin-primary);
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 15px;
}

.admin-car-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.admin-car-btn {
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.admin-car-btn.edit {
    background-color: var(--admin-warning);
    color: #333;
    border: none;
}

.admin-car-btn.edit:hover {
    background-color: #e0a800;
}

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

.admin-car-btn.delete:hover {
    background-color: #c82333;
}

/* Nuovi stili per i pulsanti di modifica ed eliminazione */
.edit-car-btn {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 5px;
    background-color: #ffc107;
    color: #333;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.edit-car-btn:hover {
    background-color: #e0a800;
    transform: translateY(-1px);
}

.delete-car-btn {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 5px;
    background-color: #dc3545;
    color: white;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.delete-car-btn:hover {
    background-color: #c82333;
    transform: translateY(-1px);
}

/* Action Bar */
.admin-action-bar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.admin-btn {
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.admin-btn.primary {
    background-color: var(--admin-primary);
    color: white;
}

.admin-btn.primary:hover {
    background-color: var(--admin-dark);
}

.admin-btn.secondary {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    color: #333;
}

.admin-btn.secondary:hover {
    background-color: #e2e6ea;
}

/* Car Form Modal */
.admin-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

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

.admin-modal-content {
    background-color: white;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s;
}

.admin-modal.active .admin-modal-content {
    transform: translateY(0);
}

.admin-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 20px;
    color: #777;
    cursor: pointer;
    transition: color 0.3s;
}

.admin-modal-close:hover {
    color: var(--admin-danger);
}

.admin-modal-title {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--admin-primary);
}

.admin-form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.admin-form-group {
    flex: 1;
}

.admin-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.admin-form-group input,
.admin-form-group select,
.admin-form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--admin-gray);
    border-radius: 5px;
    font-size: 14px;
}

.admin-form-group input[type="file"] {
    padding: 8px;
    border: 1px dashed var(--admin-gray);
    background-color: #f9f9f9;
    cursor: pointer;
}

.admin-form-group input[type="file"]:hover {
    border-color: var(--admin-primary);
    background-color: #f0f7ff;
}

.admin-form-help {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
    font-style: italic;
}

.admin-form-group input:focus,
.admin-form-group select:focus,
.admin-form-group textarea:focus {
    border-color: var(--admin-primary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(44, 90, 160, 0.2);
}

.admin-form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.admin-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.admin-form-actions button {
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.admin-form-actions .cancel {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    color: #333;
}

.admin-form-actions .cancel:hover {
    background-color: #e2e6ea;
}

.admin-form-actions .save {
    background-color: var(--admin-primary);
    border: none;
    color: white;
}

.admin-form-actions .save:hover {
    background-color: var(--admin-dark);
}

/* Notification */
.admin-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 5px;
    color: white;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    z-index: 1100;
    transform: translateX(120%);
    transition: transform 0.3s;
}

.admin-notification.show {
    transform: translateX(0);
}

.admin-notification.success {
    background-color: var(--admin-success);
}

.admin-notification.error {
    background-color: var(--admin-danger);
}

.admin-notification.warning {
    background-color: var(--admin-warning);
}

/* Calendar Styles - Enhanced */
.calendar-container {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    padding: 24px;
    border: 1px solid rgba(44, 90, 160, 0.1);
    position: relative;
    overflow: hidden;
}

.calendar-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2c5aa0, #c8a45c, #2c5aa0);
    background-size: 200% 100%;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(44, 90, 160, 0.1);
    position: relative;
}

.calendar-nav-btn {
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3d6f 100%);
    color: white;
    border: none;
    border-radius: 12px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(44, 90, 160, 0.3);
    position: relative;
    overflow: hidden;
}

.calendar-nav-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;
}

.calendar-nav-btn:hover {
    background: linear-gradient(135deg, #1e3d6f 0%, #2c5aa0 100%);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(44, 90, 160, 0.4);
}

.calendar-nav-btn:hover::before {
    left: 100%;
}

.calendar-nav-btn:active {
    transform: translateY(0) scale(0.98);
}

#currentMonth {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: #2c5aa0;
    text-shadow: 0 2px 4px rgba(44, 90, 160, 0.1);
    letter-spacing: -0.5px;
    position: relative;
}

#currentMonth::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #c8a45c, #2c5aa0);
    border-radius: 1px;
}

.calendar-grid {
    margin-bottom: 24px;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-bottom: 16px;
    padding: 0 4px;
}

.calendar-weekday {
    padding: 12px 8px;
    text-align: center;
    font-weight: 700;
    color: #2c5aa0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: 1px solid rgba(44, 90, 160, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-template-rows: repeat(6, 1fr);
    gap: 8px;
    min-height: 520px;
    padding: 4px;
}

.calendar-day {
    min-height: 85px;
    padding: 10px;
    border: 2px solid transparent;
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.calendar-day::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 90, 160, 0.05) 0%, rgba(200, 164, 92, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.calendar-day:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(44, 90, 160, 0.15);
    border-color: rgba(44, 90, 160, 0.2);
}

.calendar-day:hover::before {
    opacity: 1;
}

.calendar-day.other-month {
    color: #bbb;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    opacity: 0.6;
}

.calendar-day.other-month:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.calendar-day.today {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-color: #2196f3;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(33, 150, 243, 0.3);
    position: relative;
}

.calendar-day.today::after {
    content: '';
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    background: #2196f3;
    border-radius: 50%;
    box-shadow: 0 0 0 2px white;
    z-index: 2;
}

.calendar-day-number {
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 16px;
    color: #2c5aa0;
    z-index: 2;
    position: relative;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.calendar-day.other-month .calendar-day-number {
    color: #bbb;
}

.calendar-day.today .calendar-day-number {
    color: #1976d2;
    font-weight: 700;
}

.calendar-day-bookings {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    z-index: 2;
    position: relative;
}

.booking-indicator {
    height: 6px;
    border-radius: 3px;
    margin-bottom: 2px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.booking-indicator::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 2s infinite;
}

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

.booking-indicator.booking-start {
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
    border-left: 3px solid #2e7d32;
}

.booking-indicator.booking-active {
    background: linear-gradient(135deg, #ff9800 0%, #ffb74d 100%);
    border-left: 3px solid #f57c00;
}

.booking-indicator.booking-end {
    background: linear-gradient(135deg, #f44336 0%, #ef5350 100%);
    border-left: 3px solid #c62828;
}

.booking-indicator:hover {
    transform: scaleY(1.2);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.booking-count {
    font-size: 11px;
    color: #666;
    margin-top: auto;
    font-weight: 600;
    background: rgba(44, 90, 160, 0.1);
    padding: 2px 6px;
    border-radius: 8px;
    text-align: center;
    z-index: 2;
    position: relative;
    border: 1px solid rgba(44, 90, 160, 0.2);
}

.calendar-day.today .booking-count {
    background: rgba(33, 150, 243, 0.2);
    border-color: rgba(33, 150, 243, 0.3);
    color: #1976d2;
}

.calendar-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 20px 0;
    margin-top: 20px;
    border-top: 2px solid rgba(44, 90, 160, 0.1);
    flex-wrap: wrap;
    position: relative;
}

.calendar-filters::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, #c8a45c, #2c5aa0);
    border-radius: 1px;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border: 2px solid transparent;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
    font-weight: 600;
    color: #666;
    min-width: 130px;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(44, 90, 160, 0.1), transparent);
    transition: left 0.6s ease;
}

.filter-btn:hover {
    border-color: rgba(44, 90, 160, 0.3);
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(44, 90, 160, 0.2);
    color: #2c5aa0;
}

.filter-btn:hover::before {
    left: 100%;
}

.filter-btn.active {
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3d6f 100%);
    border-color: #2c5aa0;
    color: white;
    box-shadow: 0 6px 20px rgba(44, 90, 160, 0.4);
    transform: translateY(-2px);
}

.filter-btn.active::before {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.filter-btn:active {
    transform: translateY(0) scale(0.98);
}

/* Calendar Legend */
.calendar-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    padding: 16px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 1px solid rgba(44, 90, 160, 0.1);
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #666;
}

.legend-color {
    width: 16px;
    height: 6px;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.legend-color.booking-start {
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
    border-left: 3px solid #2e7d32;
}

.legend-color.booking-active {
    background: linear-gradient(135deg, #ff9800 0%, #ffb74d 100%);
    border-left: 3px solid #f57c00;
}

.legend-color.booking-end {
    background: linear-gradient(135deg, #f44336 0%, #ef5350 100%);
    border-left: 3px solid #c62828;
}

/* Calendar Animations */
@keyframes calendarFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes dayPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.calendar-day.has-bookings {
    animation: dayPulse 2s ease-in-out infinite;
}

.calendar-day.has-bookings:hover {
    animation: none;
}

/* Calendar Loading State */
.calendar-loading {
    position: relative;
    pointer-events: none;
}

.calendar-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    z-index: 10;
}

.calendar-loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2c5aa0;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 11;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.filter-icon {
    font-size: 16px;
    display: flex;
    align-items: center;
}

.filter-icon.pending {
    filter: grayscale(0.3);
}

.filter-icon.confirmed {
    filter: hue-rotate(120deg);
}

.filter-icon.completed {
    filter: hue-rotate(240deg);
}

.filter-btn.active .filter-icon {
    filter: brightness(1.2);
}

/* Calendar Mobile Optimizations */
@media (max-width: 992px) {
    .calendar-container {
        padding: 20px;
        border-radius: 12px;
    }
    
    .calendar-nav-btn {
        width: 40px;
        height: 40px;
    }
    
    #currentMonth {
        font-size: 24px;
    }
    
    .calendar-days {
        min-height: 450px;
        gap: 6px;
    }
    
    .calendar-day {
        min-height: 75px;
        padding: 8px;
    }
}

@media (max-width: 768px) {
    .calendar-container {
        padding: 16px;
        margin: 10px;
    }
    
    .calendar-header {
        margin-bottom: 20px;
        padding-bottom: 16px;
    }
    
    .calendar-nav-btn {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }
    
    #currentMonth {
        font-size: 20px;
    }
    
    .calendar-weekdays {
        gap: 4px;
        margin-bottom: 12px;
    }
    
    .calendar-weekday {
        padding: 8px 4px;
        font-size: 12px;
        border-radius: 8px;
    }
    
    .calendar-days {
        gap: 4px;
        min-height: 380px;
    }
    
    .calendar-day {
        min-height: 60px;
        padding: 6px;
        border-radius: 8px;
    }
    
    .calendar-day-number {
        font-size: 14px;
        margin-bottom: 4px;
    }
    
    .booking-indicator {
        height: 4px;
        border-radius: 2px;
        margin-bottom: 1px;
    }
    
    .booking-count {
        font-size: 9px;
        padding: 1px 4px;
        border-radius: 6px;
    }
    
    .calendar-filters {
        gap: 8px;
        padding: 16px 0;
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        min-width: 100px;
        padding: 10px 16px;
        font-size: 12px;
        border-radius: 20px;
    }
    
    .filter-btn span:last-child {
        display: none;
    }
    
    .calendar-legend {
        gap: 12px;
        padding: 12px;
        margin-top: 16px;
    }
    
    .legend-item {
        font-size: 12px;
    }
    
    .legend-color {
        width: 14px;
        height: 5px;
    }
}

@media (max-width: 480px) {
    .calendar-container {
        padding: 12px;
        margin: 5px;
        border-radius: 10px;
    }
    
    .calendar-header {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .calendar-nav-btn {
        width: 32px;
        height: 32px;
        border-radius: 8px;
    }
    
    #currentMonth {
        font-size: 18px;
        order: -1;
    }
    
    .calendar-weekday {
        padding: 6px 2px;
        font-size: 10px;
    }
    
    .calendar-days {
        gap: 2px;
        min-height: 320px;
    }
    
    .calendar-day {
        min-height: 50px;
        padding: 4px;
        border-radius: 6px;
    }
    
    .calendar-day-number {
        font-size: 12px;
        margin-bottom: 2px;
    }
    
    .booking-indicator {
        height: 3px;
        border-radius: 1px;
        margin-bottom: 1px;
    }
    
    .booking-count {
        font-size: 8px;
        padding: 1px 3px;
        border-radius: 4px;
    }
    
    .calendar-filters {
        gap: 6px;
        padding: 12px 0;
    }
    
    .filter-btn {
        min-width: 80px;
        padding: 8px 12px;
        font-size: 11px;
        gap: 6px;
    }
    
    .calendar-legend {
        gap: 8px;
        padding: 10px;
        margin-top: 12px;
        flex-direction: column;
        align-items: center;
    }
    
    .legend-item {
        font-size: 11px;
        gap: 6px;
    }
    
    .legend-color {
        width: 12px;
        height: 4px;
    }
}

/* Responsive */
@media (max-width: 992px) {
    .admin-sidebar {
        width: 200px;
    }
    
    .admin-main-content {
        margin-left: 200px;
    }
}

@media (max-width: 768px) {
    .admin-header {
        padding: 10px 15px;
    }
    
    .admin-sidebar {
        width: 0;
        transition: width 0.3s;
    }
    
    .admin-sidebar.active {
        width: 250px;
    }
    
    .admin-main-content {
        margin-left: 0;
        padding: 20px;
    }
    
    .admin-form-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .admin-cars-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .calendar-legend {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .calendar-day {
        min-height: 60px;
        padding: 5px;
    }
    
    #currentMonth {
        font-size: 18px;
    }
}