/* Coco Upsell Reports Admin Styles */

.upsell-dashboard {
    max-width: 1200px;
    margin: 20px 0;
}

.dashboard-filters {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.dashboard-filters select,
.dashboard-filters button {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.dashboard-filters button {
    background: #0073aa;
    color: white;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.dashboard-filters button:hover {
    background: #005a87;
}

.dashboard-filters button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.dashboard-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.summary-card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
}

.summary-card h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-value {
    font-size: 32px;
    font-weight: bold;
    color: #0073aa;
    margin: 0;
}

.events-container {
    display: grid;
    gap: 20px;
}

.event-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
}

.event-header {
    background: #f8f9fa;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.event-header h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 20px;
}

.event-header .event-date,
.event-header .event-time,
.event-header .event-venue {
    color: #666;
    font-size: 14px;
    margin: 5px 0;
}

.upsells-section {
    padding: 20px;
}

.upsells-section h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
}

.upsells-list {
    display: grid;
    gap: 15px;
}

.upsell-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #0073aa;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.customer-info {
    flex: 1;
    min-width: 200px;
}

.customer-info strong {
    display: block;
    color: #333;
    font-size: 16px;
    margin-bottom: 5px;
}

.customer-email {
    color: #666;
    font-size: 14px;
}

.upsell-details {
    flex: 2;
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.upsell-item-name {
    font-weight: 600;
    color: #333;
    min-width: 150px;
}

.upsell-quantity {
    color: #666;
    font-size: 14px;
}

.upsell-price {
    color: #666;
    font-size: 14px;
}

.upsell-total {
    font-weight: bold;
    color: #0073aa;
    font-size: 16px;
    text-align: right;
    min-width: 100px;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 16px;
}

.error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #f5c6cb;
    margin: 20px 0;
}

.no-upsells {
    text-align: center;
    padding: 20px;
    color: #666;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .dashboard-filters select,
    .dashboard-filters button {
        width: 100%;
    }
    
    .dashboard-summary {
        grid-template-columns: 1fr;
    }
    
    .upsell-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .upsell-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .upsell-total {
        text-align: left;
        margin-top: 10px;
    }
}

/* Email Settings Page */
.form-table th {
    width: 200px;
}

.form-table input[type="email"],
.form-table input[type="time"] {
    width: 300px;
}

/* Status indicators */
.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 8px;
}

.status-indicator.active {
    background: #28a745;
}

.status-indicator.inactive {
    background: #dc3545;
}

/* Print styles */
@media print {
    .dashboard-filters,
    .summary-card {
        display: none;
    }
    
    .event-card {
        break-inside: avoid;
        margin-bottom: 20px;
    }
}
