/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #ffffff;
    color: #000000;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

/* Flash messages */
.flash-messages {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: 90%;
    max-width: 400px;
}

.flash {
    padding: 12px 20px;
    margin-bottom: 10px;
    border-radius: 4px;
    background-color: #f8f9fa;
    border: 1px solid #000000;
    color: #000000;
}

.flash.error {
    background-color: #ffe6e6;
    border-color: #cc0000;
    color: #cc0000;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: 2px solid #000000;
    background-color: #ffffff;
    color: #000000;
    font-size: 16px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn:hover {
    background-color: #000000;
    color: #ffffff;
}

.btn-primary {
    background-color: #000000;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #333333;
    border-color: #333333;
}

.btn-secondary {
    background-color: #ffffff;
    color: #000000;
}

.btn-logout {
    padding: 8px 16px;
    font-size: 14px;
}

.btn-nav {
    padding: 8px 16px;
    font-size: 14px;
}

.btn-delete {
    padding: 6px 12px;
    font-size: 12px;
    background-color: #ffffff;
    border-color: #cc0000;
    color: #cc0000;
}

.btn-delete:hover {
    background-color: #cc0000;
    color: #ffffff;
}

.btn-edit {
    padding: 6px 12px;
    font-size: 12px;
    background-color: #ffffff;
    border-color: #000000;
    color: #000000;
}

.btn-edit:hover {
    background-color: #000000;
    color: #ffffff;
}

/* Form elements */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #000000;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #000000;
    border-radius: 4px;
    font-size: 16px;
    background-color: #ffffff;
    color: #000000;
}

.form-group input:focus {
    outline: none;
    border-color: #333333;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

/* Login page */
.login-container {
    padding: 40px 20px;
    max-width: 400px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-container h1 {
    font-size: 32px;
    margin-bottom: 10px;
    text-align: center;
    color: #000000;
}

.login-container h2 {
    font-size: 24px;
    margin-bottom: 30px;
    text-align: center;
    color: #000000;
}

.login-form {
    width: 100%;
}

/* Calendar page */
.calendar-container {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #000000;
}

.app-header h1 {
    font-size: 24px;
    color: #000000;
}

/* Calendar section */
.calendar-section {
    margin-bottom: 40px;
}

.calendar-section h2 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #000000;
}

.calendar-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 10px;
}

.calendar-controls h3 {
    font-size: 18px;
    flex: 1;
    text-align: center;
    color: #000000;
}

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

.calendar-day {
    min-height: 80px;
    border: 2px solid #000000;
    padding: 4px;
    cursor: pointer;
    background-color: #ffffff;
    transition: background-color 0.2s ease;
    display: flex;
    flex-direction: column;
}

.calendar-day:hover {
    background-color: #f5f5f5;
}

.calendar-day.empty {
    border: 1px solid #cccccc;
    cursor: default;
    background-color: #f9f9f9;
}

.calendar-day.empty:hover {
    background-color: #f9f9f9;
}

.calendar-day.today {
    background-color: #e6e6e6;
    font-weight: 600;
}

.calendar-day.booked {
    background-color: #d9d9d9;
    border-color: #000000;
}

.calendar-day.past {
    opacity: 0.5;
    cursor: not-allowed;
}

.calendar-day.past:hover {
    background-color: #ffffff;
}

.day-number {
    font-weight: 600;
    margin-bottom: 4px;
    color: #000000;
}

.booking-info {
    font-size: 10px;
    line-height: 1.2;
    color: #000000;
    flex: 1;
    overflow: hidden;
}

.booking-item-mini {
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.booking-more {
    font-style: italic;
    color: #666666;
    margin-top: 2px;
}

.booking-capacity {
    font-weight: 600;
    margin-top: 4px;
    color: #000000;
    font-size: 11px;
}

.calendar-day.full {
    background-color: #ffcccc;
    border-color: #cc0000;
}

.calendar-day.full:hover {
    background-color: #ffb3b3;
}

.booking-name {
    font-weight: 600;
    margin-bottom: 2px;
}

.booking-guests {
    color: #333333;
}

/* Draft booking styles */
.booking-draft {
    opacity: 0.7;
    font-style: italic;
}

.draft-badge {
    font-size: 9px;
    background-color: #ffeb3b;
    color: #000000;
    padding: 1px 4px;
    border-radius: 2px;
    font-weight: 600;
    text-transform: uppercase;
}

.draft-badge-large {
    display: inline-block;
    font-size: 11px;
    background-color: #ffeb3b;
    color: #000000;
    padding: 2px 8px;
    border-radius: 3px;
    font-weight: 600;
    text-transform: uppercase;
    margin-left: 8px;
}

.booking-draft-item {
    border-color: #ffeb3b;
    background-color: #fffef0;
}

.btn-confirm {
    padding: 6px 12px;
    font-size: 12px;
    background-color: #4caf50;
    border-color: #4caf50;
    color: #ffffff;
}

.btn-confirm:hover {
    background-color: #45a049;
    border-color: #45a049;
}

.info-message {
    color: #666666;
    font-style: italic;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
    cursor: pointer;
}

.checkbox-label span {
    font-size: 14px;
}

/* Bookings section */
.bookings-section h2 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #000000;
}

.bookings-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.booking-item {
    padding: 16px;
    border: 2px solid #000000;
    border-radius: 4px;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

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

.booking-date {
    font-weight: 600;
    font-size: 14px;
    color: #000000;
}

.booking-details {
    font-size: 14px;
    color: #333333;
}

.no-bookings {
    text-align: center;
    padding: 40px 20px;
    color: #666666;
    font-style: italic;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #ffffff;
    margin: 10% auto;
    padding: 30px;
    border: 2px solid #000000;
    width: 90%;
    max-width: 500px;
    border-radius: 4px;
    position: relative;
}

.close {
    color: #000000;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 20px;
}

.close:hover {
    color: #666666;
}

.modal-content h2 {
    margin-bottom: 20px;
    color: #000000;
}

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

/* Day details modal */
.day-summary {
    padding: 15px;
    background-color: #f5f5f5;
    border: 2px solid #000000;
    border-radius: 4px;
    margin-bottom: 20px;
}

.day-summary p {
    margin: 0;
    color: #000000;
}

.day-bookings-list {
    margin-bottom: 20px;
}

.day-bookings-list h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #000000;
}

.day-booking-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border: 2px solid #000000;
    border-radius: 4px;
    margin-bottom: 10px;
    background-color: #ffffff;
    flex-wrap: wrap;
    gap: 8px;
}

.day-booking-item > div:first-child {
    flex: 1;
    min-width: 200px;
}

.capacity-info {
    padding: 15px;
    background-color: #f5f5f5;
    border: 2px solid #000000;
    border-radius: 4px;
    margin-bottom: 20px;
}

.capacity-info p {
    margin: 5px 0;
    color: #000000;
}

/* Tablet and larger screens */
@media (min-width: 768px) {
    .calendar-container {
        padding: 30px;
    }
    
    .app-header h1 {
        font-size: 32px;
    }
    
    .calendar-section h2,
    .bookings-section h2 {
        font-size: 24px;
    }
    
    .calendar-day {
        min-height: 100px;
        padding: 8px;
    }
    
    .day-number {
        font-size: 16px;
    }
    
    .booking-info {
        font-size: 11px;
    }
    
    .booking-capacity {
        font-size: 12px;
    }
    
    .weekday {
        font-size: 14px;
        padding: 10px;
    }
    
    .booking-item {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    
    .booking-date {
        font-size: 16px;
    }
    
    .booking-details {
        flex: 1;
        margin-left: 20px;
        font-size: 16px;
    }
}

/* Desktop screens */
@media (min-width: 1024px) {
    .calendar-day {
        min-height: 120px;
        padding: 10px;
    }
    
    .booking-info {
        font-size: 12px;
    }
    
    .booking-capacity {
        font-size: 13px;
    }
    
    .modal-content {
        margin: 5% auto;
    }
}
