/* Business Hours Widget Styles */
.business-hours-widget {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 400px;
    margin: 0 auto;
}

/* Status Indicator */
.business-status {
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    position: relative;
    transition: all 0.3s ease;
}

.business-status.open {
    background-color: rgba(40, 167, 69, 0.1);
    border: 2px solid #28a745;
}

.business-status.closed {
    background-color: rgba(220, 53, 69, 0.1);
    border: 2px solid #dc3545;
}

.business-status::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
    animation: pulse 2s infinite;
}

.business-status.open::before {
    background-color: #28a745;
}

.business-status.closed::before {
    background-color: #dc3545;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

.business-status.closed {
    animation-name: pulse-red;
}

@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

/* Business Hours List */
.business-hours {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.hours-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #f1f3f4;
    transition: all 0.2s ease;
}

.hours-row:last-child {
    border-bottom: none;
}

.hours-row:hover {
    background-color: #f8f9fa;
}

.hours-row.today {
    background-color: #007cba;
    color: #fff;
    font-weight: 600;
    position: relative;
}

.hours-row.today::before {
    content: 'Today';
    position: absolute;
    top: 4px;
    right: 20px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.hours-row.today:hover {
    background-color: #0056b3;
}

.day {
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.time {
    font-weight: 400;
    color: #666;
    font-size: 14px;
    text-align: right;
}

.hours-row.today .day,
.hours-row.today .time {
    color: #fff;
}

.hours-row.closed .time {
    color: #dc3545;
    font-style: italic;
}

.hours-row.special .time {
    color: #fd7e14;
    font-weight: 500;
}

.hours-row.special::after {
    content: '★';
    margin-left: 8px;
    color: #fd7e14;
}

/* Responsive Design */
@media (max-width: 480px) {
    .business-hours-widget {
        max-width: 100%;
    }
    
    .business-status {
        font-size: 16px;
        padding: 10px 16px;
        margin-bottom: 16px;
    }
    
    .hours-row {
        padding: 14px 16px;
    }
    
    .day,
    .time {
        font-size: 13px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .business-hours {
        background: #2d3748;
        border-color: #4a5568;
    }
    
    .hours-row {
        border-bottom-color: #4a5568;
    }
    
    .hours-row:hover {
        background-color: #4a5568;
    }
    
    .day {
        color: #e2e8f0;
    }
    
    .time {
        color: #a0aec0;
    }
    
    .business-status.open {
        background-color: rgba(40, 167, 69, 0.2);
    }
    
    .business-status.closed {
        background-color: rgba(220, 53, 69, 0.2);
    }
}
