/* JOAN Schedule */
.joan-admin-wrap { 
    padding: 20px; 
}

.joan-image-preview {
    display: block;
    margin: 4px 0;
    max-height: 40px;
}

.joan-select-image {
    margin-top: 5px;
}

/* Day-specific schedule tables */
.joan-schedule-table {
    margin-bottom: 30px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border-radius: 6px;
    overflow: hidden;
}

/* Day section headers */
.joan-admin-wrap h2 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 20px;
    margin: 25px 0 0 0;
    border-radius: 6px 6px 0 0;
    font-size: 18px;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Specific day colors */
.joan-sunday-table thead tr th {
    background-color: #ff9a9e;
    color: white;
}

.joan-monday-table thead tr th {
    background-color: #a8e6cf;
    color: #2d5a27;
}

.joan-tuesday-table thead tr th {
    background-color: #ffd3a5;
    color: #8b4513;
}

.joan-wednesday-table thead tr th {
    background-color: #a8c8ec;
    color: #1e3a8a;
}

.joan-thursday-table thead tr th {
    background-color: #c8a2c8;
    color: #4a1a4a;
}

.joan-friday-table thead tr th {
    background-color: #ffb3ba;
    color: #8b0000;
}

.joan-saturday-table thead tr th {
    background-color: #bae1ff;
    color: #003f7f;
}

/* Form styling improvements */
.joan-add-form {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border: 1px solid #e9ecef;
}

.joan-form-row {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.joan-form-row input,
.joan-form-row select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.joan-form-row input[type="text"],
.joan-form-row input[type="url"] {
    flex: 1;
    min-width: 200px;
}

.joan-form-row input[type="time"] {
    width: 140px;
}

.joan-form-row select {
    min-width: 120px;
}

/* Image upload styling */
.joan-image-upload-inline {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.joan-image-field {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* Table styling improvements */
.joan-schedule-table td {
    vertical-align: middle;
    padding: 12px 8px;
}

.joan-schedule-table input {
    width: 100%;
    max-width: 150px;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 13px;
}

.joan-schedule-table input[type="time"] {
    max-width: 100px;
}

/* Action buttons */
.joan-actions {
    white-space: nowrap;
}

.joan-actions .button {
    margin-right: 5px;
    padding: 4px 12px;
    font-size: 12px;
}

/* Loading state */
.button-loading {
    opacity: 0.6;
    position: relative;
}

.button-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

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

/* Bulk actions section */
.joan-bulk-actions {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin: 30px 0;
    text-align: center;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.joan-bulk-actions h3 {
    margin-top: 0;
    color: white;
    font-size: 20px;
}

.joan-bulk-actions p {
    color: rgba(255,255,255,0.9);
}

/* Responsive design */
@media (max-width: 768px) {
    .joan-form-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .joan-form-row input,
    .joan-form-row select {
        min-width: auto;
        width: 100%;
    }
    
    .joan-schedule-table {
        font-size: 14px;
    }
    
    .joan-schedule-table td {
        padding: 8px 4px;
    }
    
    .joan-actions {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }
}

/* Empty state styling */
.joan-schedule-table td[colspan] {
    background-color: #f8f9fa;
    font-style: italic;
    border: 2px dashed #dee2e6;
}

/* Notification positioning fix */
.joan-notification {
    z-index: 999999 !important;
}