/* Custom styles for the Generic Event Scheduler */

/* Mobile-first responsive design */
.mobile-first {
    /* Touch-friendly tap targets */
    min-height: 44px;
    min-width: 44px;
}

/* Large touch targets for mobile */
.touch-target {
    min-height: 48px;
    padding: 12px 16px;
}

/* Custom button styles */
.btn-primary {
    @apply bg-blue-600 hover:bg-blue-700 text-white font-medium py-3 px-6 rounded-lg shadow-sm transition duration-150 ease-in-out;
}

.btn-secondary {
    @apply bg-gray-200 hover:bg-gray-300 text-gray-800 font-medium py-3 px-6 rounded-lg shadow-sm transition duration-150 ease-in-out;
}

/* Card styles */
.card {
    @apply bg-white rounded-lg shadow-md p-6;
}

.card-header {
    @apply border-b border-gray-200 pb-4 mb-4;
}

/* Form styles */
.form-input {
    @apply w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500;
}

.form-label {
    @apply block text-sm font-medium text-gray-700 mb-1;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .mobile-stack {
        flex-direction: column !important;
    }

    .mobile-full {
        width: 100% !important;
    }

    .mobile-hidden {
        display: none !important;
    }

    .mobile-center {
        text-align: center !important;
    }
}

/* Loading spinner */
.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Status indicators */
.status-available {
    @apply bg-green-100 text-green-800 px-2 py-1 rounded-full text-xs font-medium;
}

.status-booked {
    @apply bg-red-100 text-red-800 px-2 py-1 rounded-full text-xs font-medium;
}

.status-break {
    @apply bg-yellow-100 text-yellow-800 px-2 py-1 rounded-full text-xs font-medium;
}

/* Schedule grid */
.schedule-grid {
    display: grid;
    gap: 1rem;
}

@media (min-width: 768px) {
    .schedule-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

/* Time slot button */
.time-slot {
    @apply p-3 border-2 rounded-lg text-center cursor-pointer transition-all duration-200;
}

.time-slot.available {
    @apply border-green-300 bg-green-50 hover:bg-green-100 text-green-800;
}

.time-slot.booked {
    @apply border-red-300 bg-red-50 text-red-800 cursor-not-allowed;
}

.time-slot.selected {
    @apply border-blue-500 bg-blue-100 text-blue-800;
}

/* Assignment mode styles */
.schedule-assignment-mode .assignment-indicator {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 16px;
    height: 16px;
    background-color: rgba(147, 51, 234, 0.1);
    border: 1px solid rgba(147, 51, 234, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: rgb(147, 51, 234);
    font-weight: bold;
}

.schedule-assignment-mode .schedule-slot-editable[data-is-available="true"]:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(147, 51, 234, 0.15);
}

/* Assignment modal styles */
#assignmentModal .modal-content {
    max-height: 90vh;
    overflow-y: auto;
}

#assignmentModal select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

/* Assignment summary styles */
#assignmentSummary {
    border-left: 4px solid rgb(147, 51, 234);
}