/* Opening Hours Display Styles */
.abd-opening-hours-display {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.abd-hours-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.abd-hours-title {
    margin: 0;
    color: #2c3e50;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.abd-status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.abd-status-badge.abd-open {
    background: #d4edda;
    color: #155724;
}

.abd-status-badge.abd-closed {
    background: #f8d7da;
    color: #721c24;
}

.abd-status-icon {
    font-size: 0.8rem;
}

.abd-hours-grid {
    display: grid;
    gap: 8px;
}

.abd-hours-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    align-items: center;
    padding: 12px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.abd-hours-row:hover {
    background: #f8f9fa;
}

.abd-hours-row.abd-today {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
}

.abd-hours-row.abd-closed {
    opacity: 0.6;
}

.abd-day-label {
    font-weight: 600;
    color: #2c3e50;
}

.abd-today-indicator {
    background: #2196f3;
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.7rem;
    margin-left: 8px;
}

.abd-day-hours {
    text-align: right;
    color: #6c757d;
}

.abd-closed-text {
    color: #dc3545;
    font-style: italic;
}

.abd-time-period {
    color: #28a745;
    font-weight: 500;
}

/* Form Styles */
.abd-opening-hours-section {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    background: #fafafa;
}

.abd-section-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.abd-hours-schedule {
    margin: 20px 0;
}

.abd-hours-day {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    background: white;
}

.abd-day-header {
    background: #f8f9fa;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #dee2e6;
}

.abd-day-name {
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.abd-closed-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.abd-day-times {
    padding: 15px;
    transition: all 0.3s ease;
}

.abd-day-times.abd-hidden {
    display: none;
}

.abd-time-period {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 6px;
}

.abd-time-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.abd-time-input {
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 0.9rem;
    background: white;
    transition: border-color 0.2s ease;
}

.abd-time-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.abd-time-separator {
    color: #6c757d;
    font-weight: 500;
    padding: 0 5px;
}

.abd-period-actions {
    display: flex;
    gap: 5px;
}

.abd-period-actions button {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.abd-period-actions button:hover {
    background: #e9ecef;
    color: #495057;
}

.abd-add-period:hover {
    background: #d4edda;
    color: #155724;
}

.abd-remove-period:hover {
    background: #f8d7da;
    color: #721c24;
}

.abd-quick-times {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
    flex-wrap: wrap;
}

.abd-quick-label {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

.abd-quick-time {
    padding: 4px 8px;
    background: #e9ecef;
    border: none;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.abd-quick-time:hover {
    background: #667eea;
    color: white;
    transform: translateY(-1px);
}

.abd-hours-tools {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    justify-content: center;
}

.abd-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.abd-button-secondary {
    background: #6c757d;
    color: white;
}

.abd-button-secondary:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

/* Admin Specific Styles */
.abd-hours-admin {
    background: white;
    padding: 15px;
    border-radius: 8px;
}

.abd-hours-admin .abd-hours-schedule {
    margin: 15px 0;
}

.abd-hours-admin .abd-hours-actions {
    text-align: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.abd-hours-admin .abd-hours-actions .button {
    margin: 0 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .abd-hours-row {
        grid-template-columns: 1fr;
        gap: 8px;
        text-align: center;
    }
    
    .abd-day-hours {
        text-align: center;
    }
    
    .abd-time-inputs {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .abd-time-separator {
        text-align: center;
    }
    
    .abd-quick-times {
        justify-content: center;
    }
    
    .abd-hours-tools {
        flex-direction: column;
        align-items: center;
    }
    
    .abd-period-actions {
        justify-content: center;
    }
}

/* Animation Classes */
.abd-fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

.abd-slide-in {
    animation: slideIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { transform: scale(0.95); }
    to { transform: scale(1); }
}

/* Message Styles */
.abd-hours-success {
    background: #d4edda;
    color: #155724;
    padding: 12px 16px;
    border-radius: 6px;
    border: 1px solid #c3e6cb;
    margin: 10px 0;
}

.abd-hours-error {
    background: #f8d7da;
    color: #721c24;
    padding: 12px 16px;
    border-radius: 6px;
    border: 1px solid #f5c6cb;
    margin: 10px 0;
}

.abd-hours-info {
    background: #d1ecf1;
    color: #0c5460;
    padding: 12px 16px;
    border-radius: 6px;
    border: 1px solid #bee5eb;
    margin: 10px 0;
}


/* Modal specific styles */
.abd-day-times.abd-hidden {
    display: none !important;
}

.abd-hours-day.abd-day-closed {
    opacity: 0.6;
}

.abd-hours-day.abd-day-closed .abd-day-name {
    text-decoration: line-through;
}

/* Debug styles for modal */
.abd-modal-content .abd-opening-hours-section {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    margin: 15px 0;
}