* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    color: #fff;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 0;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.logo i {
    font-size: 48px;
    color: #4ade80;
}

.logo h1 {
    font-size: 48px;
    font-weight: 700;
    color: #fff;
}

header p {
    font-size: 18px;
    color: #a0aec0;
}

.booking-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.calendar-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-header h2 {
    font-size: 24px;
    color: #4ade80;
    font-weight: 600;
}

.nav-btn {
    background: #4ade80;
    color: #1a1a2e;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: #22c55e;
    transform: scale(1.05);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-bottom: 10px;
}

.day-name {
    text-align: center;
    font-weight: 600;
    color: #a0aec0;
    font-size: 14px;
    padding: 10px 0;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.day {
    text-align: center;
    padding: 15px 0;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-size: 16px;
    color: #fff;
}

.day:hover:not(.disabled):not(.empty) {
    background: rgba(74, 222, 128, 0.2);
}

.day.selected {
    background: #4ade80;
    color: #1a1a2e;
    font-weight: 700;
}

.day.today {
    border: 2px solid #4ade80;
}

.day.disabled {
    color: #4a5568;
    cursor: not-allowed;
}

.day.empty {
    cursor: default;
}

.time-slots-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px;
}

.time-slots-section h3 {
    color: #4ade80;
    margin-bottom: 15px;
    font-size: 22px;
}

.select-date-hint {
    color: #a0aec0;
    font-style: italic;
    text-align: center;
    padding: 40px 0;
}

.time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}

.time-slot {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
    padding: 15px;
    text-align: center;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    color: #fff;
}

.time-slot:hover:not(.booked) {
    background: rgba(74, 222, 128, 0.2);
    border-color: #4ade80;
    transform: translateY(-2px);
}

.time-slot.selected {
    background: #4ade80;
    color: #1a1a2e;
    font-weight: 700;
    border-color: #4ade80;
}

.time-slot.booked {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    cursor: not-allowed;
    text-decoration: line-through;
}

.booking-form-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px;
    grid-column: 1 / -1;
}

.booking-form-section h3 {
    color: #4ade80;
    margin-bottom: 20px;
    font-size: 22px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4ade80;
    background: rgba(255, 255, 255, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #a0aec0;
}

/* Style select options to be visible */
.form-group select option {
    background: #1a1a2e;
    color: #fff;
    padding: 10px;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.booking-summary {
    background: rgba(74, 222, 128, 0.1);
    border-left: 4px solid #4ade80;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 8px;
}

.booking-summary p {
    margin: 8px 0;
    color: #e2e8f0;
}

.booking-summary strong {
    color: #4ade80;
}

.submit-btn,
.cancel-btn,
.new-booking-btn,
.download-ics-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.submit-btn {
    background: #4ade80;
    color: #1a1a2e;
    width: 100%;
    margin-bottom: 10px;
}

.submit-btn:hover {
    background: #22c55e;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(74, 222, 128, 0.4);
}

.cancel-btn {
    background: transparent;
    color: #ef4444;
    border: 2px solid #ef4444;
    width: 100%;
}

.cancel-btn:hover {
    background: rgba(239, 68, 68, 0.1);
}

.confirmation-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    grid-column: 1 / -1;
}

.success-icon {
    font-size: 80px;
    color: #4ade80;
    margin-bottom: 20px;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.confirmation-section h3 {
    color: #4ade80;
    margin-bottom: 15px;
    font-size: 28px;
}

.confirmation-section > p {
    color: #e2e8f0;
    margin-bottom: 25px;
    font-size: 18px;
}

.confirmation-details {
    background: rgba(74, 222, 128, 0.1);
    border: 2px solid #4ade80;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    text-align: left;
}

.confirmation-details p {
    margin: 10px 0;
    color: #e2e8f0;
    font-size: 16px;
}

.confirmation-details strong {
    color: #4ade80;
}

.confirmation-note {
    color: #a0aec0;
    font-size: 14px;
    margin-top: 15px;
}

.new-booking-btn,
.download-ics-btn {
    margin: 10px;
    background: #4ade80;
    color: #1a1a2e;
}

.new-booking-btn:hover,
.download-ics-btn:hover {
    background: #22c55e;
    transform: translateY(-2px);
}

footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    color: #a0aec0;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .booking-container {
        grid-template-columns: 1fr;
    }

    .logo h1 {
        font-size: 36px;
    }

    .logo i {
        font-size: 36px;
    }

    header p {
        font-size: 16px;
    }

    .time-slots {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

    .day {
        padding: 10px 0;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .booking-container {
        padding: 20px;
        border-radius: 15px;
    }

    .logo h1 {
        font-size: 28px;
    }

    .logo i {
        font-size: 28px;
    }

    .calendar-section,
    .time-slots-section,
    .booking-form-section,
    .confirmation-section {
        padding: 15px;
    }

    .time-slots {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Loading animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.booking-container {
    animation: fadeIn 0.5s ease;
}

/* Button active states */
.submit-btn:active,
.new-booking-btn:active,
.download-ics-btn:active,
.nav-btn:active {
    transform: translateY(0);
}

/* Admin Login Button */
.admin-login-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(74, 222, 128, 0.1);
    border: 2px solid #4ade80;
    color: #4ade80;
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 100;
}

.admin-login-btn:hover {
    background: #4ade80;
    color: #1a1a2e;
    transform: translateY(-2px);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    margin: 5% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: rgba(74, 222, 128, 0.1);
    border-bottom: 2px solid #4ade80;
    border-radius: 20px 20px 0 0;
}

.modal-header h3 {
    color: #4ade80;
    font-size: 24px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-btn {
    background: transparent;
    border: none;
    color: #a0aec0;
    font-size: 32px;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
}

.close-btn:hover {
    color: #ef4444;
    transform: rotate(90deg);
}

/* Admin Panel Styles */
.admin-panel {
    max-width: 900px;
}

.admin-panel-content {
    padding: 25px;
    max-height: 80vh;
    overflow-y: auto;
}

.admin-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
}

.admin-section h4 {
    color: #4ade80;
    font-size: 18px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-section p {
    color: #a0aec0;
    font-size: 14px;
    margin-bottom: 15px;
}

/* Link Generator */
.link-generator {
    display: flex;
    gap: 10px;
}

.link-generator input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 14px;
}

.copy-btn {
    background: #4ade80;
    color: #1a1a2e;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.copy-btn:hover {
    background: #22c55e;
    transform: translateY(-2px);
}

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.add-btn {
    background: #4ade80;
    color: #1a1a2e;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.add-btn:hover {
    background: #22c55e;
    transform: translateY(-2px);
}

/* Bookings List */
.bookings-list {
    max-height: 400px;
    overflow-y: auto;
}

.no-bookings {
    text-align: center;
    color: #a0aec0;
    padding: 40px 0;
    font-style: italic;
}

.booking-card {
    background: rgba(255, 255, 255, 0.05);
    border-left: 4px solid #4ade80;
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.booking-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.booking-card.past {
    border-left-color: #a0aec0;
    opacity: 0.7;
}

.booking-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.booking-name {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 5px;
}

.booking-id {
    font-size: 12px;
    color: #4ade80;
    background: rgba(74, 222, 128, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

.booking-details {
    color: #a0aec0;
    font-size: 14px;
    line-height: 1.8;
}

.booking-details i {
    color: #4ade80;
    width: 20px;
    margin-right: 5px;
}

.booking-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.edit-btn {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.edit-btn:hover {
    background: rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
}

.delete-btn {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.delete-btn:hover {
    background: rgba(239, 68, 68, 0.3);
    transform: translateY(-2px);
}

/* Statistics */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.stat-card {
    background: rgba(74, 222, 128, 0.1);
    border: 2px solid #4ade80;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: #4ade80;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: #a0aec0;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10% auto;
        max-height: 90vh;
    }

    .admin-panel {
        max-width: 95%;
    }

    .modal-header h3 {
        font-size: 20px;
    }

    .link-generator {
        flex-direction: column;
    }

    .booking-actions {
        flex-direction: column;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Custom Scrollbar for Modals */
.admin-panel-content::-webkit-scrollbar,
.bookings-list::-webkit-scrollbar {
    width: 8px;
}

.admin-panel-content::-webkit-scrollbar-track,
.bookings-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.admin-panel-content::-webkit-scrollbar-thumb,
.bookings-list::-webkit-scrollbar-thumb {
    background: #4ade80;
    border-radius: 10px;
}

.admin-panel-content::-webkit-scrollbar-thumb:hover,
.bookings-list::-webkit-scrollbar-thumb:hover {
    background: #22c55e;
}
