.wc-customer-reports {
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.reports-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.report-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: center;
}

.report-stat {
    text-align: center;
}

.report-stat h3 {
    margin: 0 0 10px 0;
    color: #666;
    font-size: 14px;
}

.report-stat .count {
    font-size: 24px;
    font-weight: bold;
    color: #2271b1;
}

.report-stat .total-amount {
    font-size: 24px;
    font-weight: bold;
    color: #00a32a;
}

.orders-table table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.orders-table th,
.orders-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.orders-table th {
    background: #f8f9fa;
    font-weight: 600;
}

.download-report {
    background: #4299e1 !important;
    color: #fff !important;
    padding: 10px 18px !important;
    border-radius: 6px !important;
    border: none !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    display: none; /* Initially hidden */
}

.download-report:hover {
    background: #3182ce !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

.reports-filters {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.report-filters-form {
    display: grid;
    gap: 20px;
}

/* Date filter section styles */
.filter-section {
    background: #fff;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #eee;
}

.filter-section h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 16px;
    color: #2271b1;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

/* Date preset buttons */
.date-preset-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 22px;
}

.date-preset-btn {
    padding: 10px 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    color: #4a5568;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    outline: none;
}

.date-preset-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(66, 153, 225, 0);
    transform: scale(0);
    border-radius: 50%;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.date-preset-btn:hover {
    background: #f7fafc;
    border-color: #cbd5e0;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1);
}

.date-preset-btn:active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.date-preset-btn:hover:before {
    transform: scale(1.5);
    background: rgba(66, 153, 225, 0.05);
}

.date-preset-btn.active {
    background: #3182ce;
    color: #ffffff;
    border-color: #2c5282;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    font-weight: 600;
}

.date-preset-btn.active:hover {
    background: #2b6cb0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.05);
}

.filter-group {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 15px;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-group label {
    font-weight: 600;
    min-width: 80px;
    color: #4a5568;
}

.filter-group select {
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    flex-grow: 1;
    max-width: 200px;
    font-size: 14px;
    color: #4a5568;
    background-color: #ffffff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234a5568' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
}

.filter-group select:focus {
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.15);
    outline: none;
}

.filter-divider {
    margin: 20px 0;
    text-align: center;
    position: relative;
    font-weight: 600;
    color: #718096;
    font-size: 13px;
}

.filter-divider:before,
.filter-divider:after {
    content: '';
    position: absolute;
    top: 50%;
    width: calc(50% - 20px);
    height: 1px;
    background: #e2e8f0;
}

.filter-divider:before {
    left: 0;
}

.filter-divider:after {
    right: 0;
}

.custom-date-range {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.custom-date-range input[type="date"] {
    flex: 1;
    min-width: 150px;
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.custom-date-range input[type="date"]:focus {
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.15);
    outline: none;
}

.apply-date-range {
    margin-left: auto;
    background: #4299e1;
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.apply-date-range:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0);
    transform: scale(0);
    border-radius: 50%;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.apply-date-range:hover {
    background: #3182ce;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.05);
}

.apply-date-range:active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.apply-date-range:hover:before {
    transform: scale(1.5);
    background: rgba(255, 255, 255, 0.1);
}

.filter-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 15px;
}

.filter-actions button {
    margin-left: 10px;
}

.orders-table.loading,
.reports-summary.loading {
    opacity: 0.5;
    pointer-events: none;
    position: relative;
}

.orders-table.loading:after,
.reports-summary.loading:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #2271b1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.initial-message,
.no-results {
    padding: 30px;
    text-align: center;
    background: #f8f9fa;
    border-radius: 6px;
    color: #666;
    font-size: 16px;
}

.no-results {
    background: #fff5f5;
    color: #d63638;
}

/* Add hover effect */
.report-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

/* Make it responsive */
@media (max-width: 768px) {
    .report-card {
        flex-direction: column;
        gap: 15px;
    }
    
    .date-preset-buttons {
        justify-content: center;
    }
    
    .date-preset-btn {
        flex: 1 0 calc(33.333% - 12px);
        min-width: 90px;
    }
    
    .filter-group,
    .custom-date-range {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-group label {
        margin-bottom: 5px;
    }
    
    .filter-group input[type="date"],
    .filter-group select {
        width: 100%;
        max-width: none;
    }
    
    .apply-date-range {
        margin-top: 10px;
        width: 100%;
    }
} 