/* Next Open Admin Styles */

/* Dashboard Header */
.next-open-dashboard-wrap {
    margin: 20px 20px 0 0;
}

.next-open-dashboard-header {
    margin-bottom: 30px;
}

.next-open-dashboard-header h1 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 28px;
}

.next-open-dashboard-header h1 .dashicons {
    color: #2196F3;
    width: 32px;
    height: 32px;
    font-size: 32px;
}

.dashboard-subtitle {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.next-open-dashboard {
    margin-top: 20px;
}

/* Stats Cards */
.next-open-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-box {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
}

.stat-box:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
}

.stat-box.stat-total .stat-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-box.stat-total .stat-icon .dashicons {
    color: white;
}

.stat-box.stat-pending .stat-icon {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.stat-box.stat-pending .stat-icon .dashicons {
    color: white;
}

.stat-box.stat-confirmed .stat-icon {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.stat-box.stat-confirmed .stat-icon .dashicons {
    color: white;
}

.stat-box.stat-cancelled .stat-icon {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.stat-box.stat-cancelled .stat-icon .dashicons {
    color: #666;
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 13px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Overview Sections */
.next-open-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.overview-section {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

.section-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.section-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-header h2 .dashicons {
    color: #2196F3;
}

.view-all-link {
    color: #2196F3;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.view-all-link:hover {
    color: #0d47a1;
}

/* Empty States */
.empty-state {
    padding: 60px 24px;
    text-align: center;
}

.empty-state .dashicons {
    font-size: 64px;
    width: 64px;
    height: 64px;
    color: #ccc;
    margin-bottom: 15px;
}

.empty-message {
    font-size: 16px;
    font-weight: 600;
    color: #666;
    margin: 0 0 8px 0;
}

.empty-hint {
    font-size: 14px;
    color: #999;
    margin: 0 0 20px 0;
}

/* Tables */
.next-open-table {
    margin: 0;
}

.next-open-table thead th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
    padding: 12px 16px;
}

.next-open-table tbody td {
    padding: 14px 16px;
    vertical-align: middle;
}

.appointment-date,
.appointment-time {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 12px;
    font-size: 13px;
}

.appointment-date .dashicons,
.appointment-time .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: #666;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    background: #E3F2FD;
    color: #0d47a1;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.showing-count {
    padding: 12px 24px;
    margin: 0;
    font-size: 13px;
    color: #666;
    text-align: center;
    border-top: 1px solid #e5e5e5;
}

/* Locations Grid */
.locations-grid {
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.location-card {
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 16px;
    background: #fafafa;
}

.location-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.location-header h3 {
    margin: 0;
    font-size: 16px;
}

.location-header h3 a {
    text-decoration: none;
    color: #1a1a1a;
}

.location-header h3 a:hover {
    color: #2196F3;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.status-open {
    background: #E8F5E9;
    color: #2E7D32;
}

.status-badge.status-closed {
    background: #f5f5f5;
    color: #666;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.status-badge.status-open .status-dot {
    background: #4CAF50;
}

.status-badge.status-closed .status-dot {
    background: #999;
}

.location-details p {
    margin: 0 0 8px 0;
    font-size: 13px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 6px;
}

.location-details .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.location-actions {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e5e5e5;
    display: flex;
    gap: 8px;
}

.location-actions .button {
    font-size: 12px;
    padding: 4px 10px;
    height: auto;
    line-height: 1.4;
}

.location-actions .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    margin-right: 4px;
}

/* Quick Actions */
.next-open-quick-actions {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

.next-open-quick-actions h2 {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.next-open-quick-actions h2 .dashicons {
    color: #2196F3;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.quick-action-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.quick-action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    color: white;
}

.quick-action-card:nth-child(2) {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.quick-action-card:nth-child(3) {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.quick-action-card:nth-child(4) {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.action-icon {
    font-size: 28px;
    width: 28px;
    height: 28px;
}

.action-label {
    font-size: 14px;
}

/* Getting Started Section */
.next-open-getting-started {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 40px;
    color: white;
    margin-bottom: 30px;
}

.getting-started-card {
    max-width: 900px;
    margin: 0 auto;
}

.getting-started-card h2 {
    margin: 0 0 30px 0;
    font-size: 24px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
}

.getting-started-card h2 .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
}

.setup-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.setup-step {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 24px;
    position: relative;
    border: 1px solid rgba(255,255,255,0.2);
}

.setup-step.completed {
    background: rgba(76, 175, 80, 0.2);
    border-color: rgba(76, 175, 80, 0.3);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.25);
    border-radius: 50%;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
}

.setup-step.completed .step-number {
    background: rgba(76, 175, 80, 0.5);
}

.step-content h3 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: white;
}

.step-content p {
    margin: 0 0 15px 0;
    font-size: 14px;
    color: rgba(255,255,255,0.9);
    line-height: 1.5;
}

.step-content .button {
    background: white;
    color: #667eea;
    border: none;
    font-weight: 600;
}

.step-content .button:hover {
    background: #f5f5f5;
    color: #667eea;
}

.step-content code {
    background: rgba(0,0,0,0.2);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 13px;
    color: #fff;
}

.step-check {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: #4CAF50;
}

/* Responsive */
@media screen and (max-width: 782px) {
    .next-open-stats {
        grid-template-columns: 1fr;
    }
    
    .next-open-overview {
        grid-template-columns: 1fr;
    }
    
    .quick-actions-grid {
        grid-template-columns: 1fr;
    }
    
    .setup-steps {
        grid-template-columns: 1fr;
    }
    
    .locations-grid {
        grid-template-columns: 1fr;
    }
}

/* Status badges */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.status-pending {
    background-color: #FFF3E0;
    color: #F57C00;
}

.status-badge.status-confirmed {
    background-color: #E8F5E9;
    color: #2E7D32;
}

.status-badge.status-cancelled {
    background-color: #FFEBEE;
    color: #C62828;
}

.status-open {
    color: #4CAF50;
    font-weight: 600;
}

.status-closed {
    color: #999;
}

/* Filters */
.next-open-filters {
    background: #fff;
    padding: 15px 20px;
    margin: 20px 0;
    border: 1px solid #ddd;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.next-open-filters form {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.next-open-filters label {
    font-weight: 600;
}

.next-open-filters select {
    min-width: 150px;
}

/* Holidays */
.next-open-add-holiday {
    background: #fff;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid #ddd;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.next-open-holidays-list {
    background: #fff;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid #ddd;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.next-open-holiday-tips {
    background: #E3F2FD;
    padding: 15px 20px;
    margin: 20px 0;
    border-left: 4px solid #2196F3;
}

.next-open-holiday-tips h3 {
    margin-top: 0;
}

/* Export */
.next-open-export {
    background: #fff;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid #ddd;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Responsive */
@media screen and (max-width: 782px) {
    .next-open-stats {
        grid-template-columns: 1fr;
    }
    
    .next-open-overview {
        grid-template-columns: 1fr;
    }
    
    .next-open-filters form {
        flex-direction: column;
        align-items: flex-start;
    }
}
