/**
 * Dashboard Styles
 * 
 * Additional styles specific to the dashboard pages.
 * Complements the main style.css file.
 * 
 * @package Meeting_Scheduler
 */

/* ============================================
   Dashboard Specific Styles
   ============================================ */

.dashboard-container {
    min-height: 600px;
}

/* Form Enhancements */
.meeting-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-control:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

/* Button Sizes */
.btn-sm {
    padding: 6px 12px;
    font-size: 14px;
}

.btn-lg {
    padding: 15px 30px;
    font-size: 18px;
}

/* Meetings List */
.meetings-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.meeting-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.meeting-link {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.meeting-link a {
    margin-top: 10px;
    display: inline-block;
}

.meeting-created {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
    color: #666;
}

/* Filter Section */
.meetings-filter {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.meetings-filter label {
    font-weight: 600;
}

.meetings-filter select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

/* Table Enhancements */
.meetings-table {
    margin-top: 20px;
}

.meetings-table .btn-sm {
    white-space: nowrap;
}

/* Status Badge Enhancements */
.status-badge {
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Calendar Enhancements */
.calendar-container {
    margin: 30px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 6px;
}

.calendar-grid {
    margin-top: 15px;
}

.calendar-day-header {
    font-weight: 600;
    text-align: center;
    padding: 10px;
    background: #f0f0f0;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

/* Loading States */
.loading {
    margin: 20px auto;
    display: block;
}

/* Message Styles */
#booking-messages,
#status-messages,
#admin-messages {
    margin-bottom: 20px;
}

.alert {
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.alert p {
    margin: 0;
}

.alert p + p {
    margin-top: 10px;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .meetings-table {
        font-size: 12px;
    }

    .meetings-table th,
    .meetings-table td {
        padding: 8px 4px;
    }

    .action-buttons {
        flex-direction: column;
        gap: 5px;
    }

    .action-buttons .btn {
        width: 100%;
    }

    .meeting-meta {
        flex-direction: column;
        gap: 10px;
    }

    .calendar-grid {
        gap: 2px;
    }

    .calendar-day {
        padding: 5px 2px;
        font-size: 11px;
    }
}

/* Animation for tab switching */
.tab-content {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Success/Error States */
.form-group.success input,
.form-group.success select,
.form-group.success textarea {
    border-color: #46b450;
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #dc3232;
}

.form-group .error-message {
    color: #dc3232;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

/* Disabled States */
.btn:disabled,
.btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

/* ============================================
   Slot Management Styles
   ============================================ */

.slot-management-section {
    max-width: 1000px;
    margin: 0 auto;
}

.section-description {
    color: #666;
    margin-bottom: 30px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 4px;
}

.slot-calendar-container {
    margin: 30px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 6px;
}

.busy-dates-list {
    margin-top: 40px;
    padding: 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
}

.busy-dates-list h3 {
    margin-bottom: 15px;
    color: #0073aa;
}

.busy-dates-ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.busy-dates-ul li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    margin-bottom: 10px;
    background: #f9f9f9;
    border-radius: 4px;
    border-left: 3px solid #dc3232;
}

.busy-dates-ul li span {
    font-weight: 600;
    color: #333;
}

.no-busy-dates {
    color: #666;
    font-style: italic;
    padding: 20px;
    text-align: center;
}

.empty-state h3 {
    margin-bottom: 10px;
    color: #333;
}

.empty-state p {
    margin-bottom: 20px;
}

