/* Calendar System Styles */

/* ============================================
   Event Types Page Styles
   ============================================ */

.event-type-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-left: 4px solid #0d6efd;
}

.event-type-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.event-type-card .card-body {
    padding: 1.5rem;
}

.event-type-card .event-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.5rem;
}

.event-type-card .event-slug {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: #6c757d;
    padding: 0.25rem 0.5rem;
    background-color: #f8f9fa;
    border-radius: 0.25rem;
    display: inline-block;
    margin-bottom: 1rem;
}

.event-type-card .event-details {
    font-size: 0.9rem;
    color: #495057;
}

.event-type-card .event-details-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.event-type-card .event-details-label {
    font-weight: 500;
    color: #6c757d;
    min-width: 100px;
}

.event-type-card .event-details-value {
    color: #212529;
}

.event-type-card .card-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
    display: flex;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
}

.event-type-card .card-footer .btn-sm {
    font-size: 0.85rem;
    padding: 0.375rem 0.75rem;
}

.event-type-status-badge {
    display: inline-block;
    padding: 0.35rem 0.65rem;
    border-radius: 0.375rem;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.event-type-status-active {
    background-color: #d1e7dd;
    color: #0f5132;
}

.event-type-status-inactive {
    background-color: #f8d7da;
    color: #842029;
}

/* ============================================
   Form Styles
   ============================================ */

.calendar-form {
    max-width: 900px;
}

.calendar-form .form-section {
    margin-bottom: 2rem;
}

.calendar-form .form-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e9ecef;
}

.calendar-form .form-group {
    margin-bottom: 1.25rem;
}

.calendar-form .form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
    display: block;
}

.calendar-form .form-label .text-danger {
    margin-left: 0.25rem;
}

.calendar-form .form-text {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 0.35rem;
    display: block;
}

.calendar-form .tips-sidebar {
    background-color: #e7f3ff;
    border-left: 4px solid #0d6efd;
    padding: 1.5rem;
    border-radius: 0.375rem;
    margin-top: 2rem;
}

.calendar-form .tips-sidebar h5 {
    font-size: 1rem;
    font-weight: 600;
    color: #0043b6;
    margin-bottom: 1rem;
}

.calendar-form .tips-sidebar ul {
    margin-bottom: 0;
    padding-left: 1.25rem;
}

.calendar-form .tips-sidebar li {
    margin-bottom: 0.5rem;
    color: #495057;
    font-size: 0.9rem;
}

/* ============================================
   Timezone Selector
   ============================================ */

.timezone-selector {
    border: 1px solid #ced4da;
    padding: 0.375rem 0.75rem;
    font-size: 0.95rem;
}

.timezone-selector:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* ============================================
   Availability Grid
   ============================================ */

.availability-grid-container {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid #dee2e6;
}

.availability-table {
    margin-bottom: 0;
    background-color: white;
}

.availability-table thead {
    background-color: #e9ecef;
}

.availability-table thead th {
    font-weight: 600;
    color: #495057;
    padding: 0.75rem;
    border-color: #dee2e6;
}

.availability-table tbody td {
    padding: 0.75rem;
    vertical-align: middle;
    border-color: #dee2e6;
}

.availability-row:hover {
    background-color: #f8f9fa;
}

.availability-table .badge {
    font-weight: 500;
    font-size: 0.85rem;
    padding: 0.4rem 0.6rem;
}

.availability-table .form-check-input {
    margin-top: 0;
    cursor: pointer;
}

.availability-table .form-control-sm {
    font-size: 0.85rem;
    padding: 0.375rem 0.5rem;
}

.availability-table input[type="time"]:disabled {
    background-color: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
}

.btn-group.btn-group-sm .btn {
    font-size: 0.8rem;
    padding: 0.375rem 0.75rem;
}

/* ============================================
   Schedules Page Styles
   ============================================ */

.schedule-card {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    background-color: white;
    transition: box-shadow 0.2s ease;
}

.schedule-card:hover {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.schedule-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.schedule-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #212529;
}

.schedule-default-badge {
    display: inline-block;
    padding: 0.35rem 0.65rem;
    background-color: #cfe2ff;
    color: #084298;
    border-radius: 0.375rem;
    font-size: 0.8rem;
    font-weight: 500;
}

.schedule-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.schedule-info-item {
    display: flex;
    flex-direction: column;
}

.schedule-info-label {
    font-weight: 500;
    color: #6c757d;
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
}

.schedule-info-value {
    color: #212529;
    font-weight: 500;
}

.schedule-availability-summary {
    background-color: #e8f4f8;
    padding: 0.75rem 1rem;
    border-left: 3px solid #0dcaf0;
    border-radius: 0.25rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #084c7e;
}

.schedule-no-availability-warning {
    background-color: #fff3cd;
    border-left-color: #ffc107;
    color: #856404;
}

.schedule-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.schedule-actions .btn-sm {
    font-size: 0.85rem;
    padding: 0.375rem 0.75rem;
}

/* ============================================
   Data Tables
   ============================================ */

.data-table {
    font-size: 0.9rem;
}

.data-table thead {
    background-color: #f8f9fa;
}

.data-table thead th {
    font-weight: 600;
    color: #495057;
    border-color: #dee2e6;
    padding: 0.75rem;
}

.data-table tbody td {
    padding: 0.75rem;
    border-color: #dee2e6;
    vertical-align: middle;
}

.data-table tbody tr:hover {
    background-color: #f8f9fa;
}

/* ============================================
   Alert Boxes
   ============================================ */

.alert-sm {
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
}

.alert-info {
    background-color: #cfe2ff;
    border-color: #b6d4fe;
    color: #084298;
}

.alert-warning {
    background-color: #fff3cd;
    border-color: #ffecb5;
    color: #664d03;
}

/* ============================================
   Buttons
   ============================================ */

.btn-primary,
.btn-secondary,
.btn-danger,
.btn-success {
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.25rem 0.5rem rgba(13, 110, 253, 0.25);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 0.125rem 0.25rem rgba(13, 110, 253, 0.25);
}

.btn-outline-secondary {
    border-color: #dee2e6;
}

.btn-outline-secondary:hover {
    background-color: #e9ecef;
    border-color: #dee2e6;
    color: #495057;
}

/* ============================================
   Empty State
   ============================================ */

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    border: 2px dashed #dee2e6;
}

.empty-state-icon {
    font-size: 3rem;
    color: #adb5bd;
    margin-bottom: 1rem;
}

.empty-state-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

.empty-state-text {
    color: #6c757d;
    margin-bottom: 1.5rem;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
    .event-type-card {
        margin-bottom: 1rem;
    }

    .schedule-info {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .schedule-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .schedule-default-badge {
        margin-top: 0.5rem;
    }

    .schedule-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .calendar-form .tips-sidebar {
        margin-top: 1.5rem;
    }

    .availability-table {
        font-size: 0.85rem;
    }

    .availability-table thead th,
    .availability-table tbody td {
        padding: 0.5rem;
    }

    .btn-group.btn-group-sm {
        width: 100%;
        margin-bottom: 1rem;
    }

    .btn-group.btn-group-sm .btn {
        flex: 1;
    }
}

@media (max-width: 576px) {
    .event-type-card .card-footer {
        flex-direction: column;
        gap: 0.5rem;
    }

    .event-type-card .card-footer .btn {
        width: 100%;
        text-align: center;
    }

    .schedule-card {
        padding: 1rem;
    }

    .calendar-form {
        padding: 0;
    }

    .data-table {
        font-size: 0.8rem;
    }
}

/* ============================================
   Loading & Animation States
   ============================================ */

.btn-loading {
    position: relative;
    color: transparent;
}

.btn-loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #f3f3f3;
    border-radius: 50%;
    border-top: 2px solid #3498db;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* ============================================
   Utility Classes
   ============================================ */

.text-muted-sm {
    font-size: 0.85rem;
    color: #6c757d;
}

.font-monospace-sm {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
}

.badge-status {
    padding: 0.4rem 0.8rem;
    font-weight: 500;
    border-radius: 0.375rem;
}

.border-left-accent {
    border-left: 4px solid #0d6efd;
    padding-left: 1rem;
}

.card-shadow {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.card-shadow-hover:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}
