/* Calendar Styles */
.desk-calendar {
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.desk-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.desk-calendar-month {
    font-weight: 600;
    font-size: 16px;
}

.desk-calendar-prev,
.desk-calendar-next {
    background: #f5f5f5;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
}

.desk-calendar-prev:hover,
.desk-calendar-next:hover {
    background: #e0e0e0;
}

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

.desk-calendar-day-header {
    text-align: center;
    font-weight: 600;
    font-size: 12px;
    color: #666;
    padding: 5px;
}

.desk-calendar-day {
    text-align: center;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid transparent;
}

.desk-calendar-day:hover:not(.empty):not(.disabled) {
    background: #e3f2fd;
    border-color: #2196f3;
}

.desk-calendar-day.selected {
    background: #2196f3;
    color: white;
}

.desk-calendar-day.empty {
    background: transparent;
    cursor: default;
}

.desk-calendar-day.disabled {
    color: #ccc;
    cursor: not-allowed;
    background: #f9f9f9;
}

/* Time Slots */
.desk-time-slots {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.desk-time-slot {
    padding: 10px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.desk-time-slot:hover {
    background: #e3f2fd;
    border-color: #2196f3;
}

.desk-time-slot.selected {
    background: #2196f3;
    color: white;
    border-color: #1976d2;
}

.desk-loading {
    text-align: center;
    color: #666;
    font-style: italic;
}

.desk-no-slots,
.desk-error {
    text-align: center;
    color: #666;
    padding: 20px;
}

/* Time Slots - 30 minute version */
.desk-time-slots {
    display: grid;
    gap: 6px;
    margin-top: 10px;
    max-height: 300px;
    overflow-y: auto;
}

.desk-time-slot {
    padding: 12px 8px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 13px;
    font-weight: 500;
}

.desk-time-slot:hover {
    background: #e3f2fd;
    border-color: #2196f3;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.desk-time-slot.selected {
    background: #2196f3;
    color: white;
    border-color: #1976d2;
    font-weight: 600;
}

/* Make calendar more compact for more slots */
.desk-calendar-day {
    padding: 6px 2px;
    font-size: 13px;
}

.desk-calendar-day-header {
    padding: 6px 2px;
    font-size: 11px;
}

/* Desk Booking Modal Styles - COMPACT TWO-COLUMN DESIGN */
.desk-booking-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    z-index: 999999;
    padding: 40px 20px 20px;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Compact Horizontal Modal */
.desk-booking-modal.landscape-modal {
    max-width: 750px;
    width: 90%;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modal Header - Compact */
.desk-modal-header {
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    color: white;
    padding: 15px 25px;
    position: relative;
}

.desk-modal-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: white;
    letter-spacing: 0.3px;
}

.desk-modal-close {
    position: absolute;
    top: 12px;
    right: 15px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.desk-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Two Column Layout */
.desk-modal-content {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 0;
    max-height: 75vh;
}

/* Left Column - Booking Details */
.desk-booking-details {
    background: #f8fafc;
    padding: 20px;
    border-right: 1px solid #e2e8f0;
}

.detail-item {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.detail-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.detail-label {
    display: block;
    font-weight: 600;
    color: #64748b;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.detail-value {
    display: block;
    color: #1e293b;
    font-weight: 500;
    font-size: 13px;
    line-height: 1.4;
}

/* Right Column - Form */
.desk-custom-form {
    padding: 20px 25px;
    overflow-y: auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.form-field {
    margin-bottom: 12px;
}

.form-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #334155;
    font-size: 12px;
}

.desk-form-input,
.desk-form-textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1.5px solid #e2e8f0;
    border-radius: 5px;
    font-size: 13px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.desk-form-input:focus,
.desk-form-textarea:focus {
    outline: none;
    border-color: #4A90E2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.desk-form-input::placeholder,
.desk-form-textarea::placeholder {
    color: #94a3b8;
    font-size: 12px;
}

.desk-form-textarea {
    resize: vertical;
    min-height: 65px;
}

/* Form Actions - Compact */
.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e2e8f0;
}

.desk-cancel-btn {
    background: #f1f5f9;
    color: #475569;
    border: 1.5px solid #cbd5e1;
    padding: 9px 18px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    flex: 1;
    transition: all 0.2s ease;
}

.desk-cancel-btn:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
}

.desk-booking-submit {
    background: linear-gradient(135deg, #668fbb 0%, #668fbb 100%);
    color: white;
    border: none;
    padding: 9px 18px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    flex: 2;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(74, 144, 226, 0.3);
}

.desk-booking-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(74, 144, 226, 0.4);
}

.desk-booking-submit:active {
    transform: translateY(0);
}

.desk-booking-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Success Modal - Compact */
.desk-success-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    z-index: 999999;
    padding: 60px 20px 20px;
    animation: fadeIn 0.2s ease;
}

.desk-success-modal.landscape-modal {
    max-width: 450px;
    background: white;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: slideDown 0.3s ease;
}

.desk-success-icon {
    font-size: 48px;
    color: #10b981;
    margin-bottom: 15px;
    line-height: 1;
}

.desk-success-modal h3 {
    margin: 0 0 15px;
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
}

.success-content {
    margin-bottom: 20px;
}

.success-content p {
    margin: 0 0 10px;
    line-height: 1.5;
    color: #475569;
    font-size: 13px;
}

.success-note {
    background: #eff6ff;
    padding: 12px 14px;
    border-radius: 5px;
    border-left: 3px solid #668fbb;
    margin-top: 15px;
    text-align: left;
}

.success-note strong {
    color: #334155;
    font-size: 12px;
}

.success-note p {
    margin: 5px 0 0;
    font-size: 12px;
}

.desk-meeting-link {
    display: inline-block;
    background: #10b981;
    color: white;
    padding: 9px 20px;
    border-radius: 5px;
    text-decoration: none;
    margin: 12px 0;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
}

.desk-meeting-link:hover {
    background: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(16, 185, 129, 0.4);
}

.desk-success-close {
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(74, 144, 226, 0.3);
}

.desk-success-close:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(74, 144, 226, 0.4);
}

/* Scrollbar Styling */
.desk-custom-form::-webkit-scrollbar {
    width: 5px;
}

.desk-custom-form::-webkit-scrollbar-track {
    background: #f8fafc;
}

.desk-custom-form::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.desk-custom-form::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .desk-modal-content {
        grid-template-columns: 1fr;
        max-height: 75vh;
    }
    
    .desk-booking-details {
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        padding: 15px 20px;
    }
    
    .desk-custom-form {
        padding: 15px 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .desk-booking-modal.landscape-modal {
        width: 95%;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .desk-cancel-btn,
    .desk-booking-submit {
        flex: 1;
    }
}

@media (max-width: 480px) {
    .desk-booking-modal-overlay {
        padding: 20px 10px 10px;
    }
    
    .desk-modal-header {
        padding: 12px 20px;
    }
    
    .desk-modal-header h3 {
        font-size: 15px;
    }
    
    .form-field label {
        font-size: 11px;
    }
    
    .desk-form-input,
    .desk-form-textarea {
        font-size: 12px;
        padding: 7px 10px;
    }
}