/*
 * Copyright (C) 2020-2025. IntBoat <intboat@gmail.com> - All Rights Reserved.
 * Unauthorized copying or redistribution of this file in source and binary forms via any medium is strictly prohibited.
 * Proprietary and confidential
 *
 * @author    IntBoat <intboat@gmail.com>
 * @copyright 2020-2025. IntBoat <intboat@gmail.com>
 * @modified  2025-08-24 21:16:45
 */

/**
 * 前台樣式
 */

.zedo-report-query-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.zedo-report-query-header {
    text-align: center;
    margin-bottom: 30px;
}

.zedo-report-query-header h2 {
    color: #333;
    margin-bottom: 10px;
    font-size: 24px;
}

.zedo-report-query-header p {
    color: #666;
    font-size: 16px;
    line-height: 1.5;
}

.zedo-report-query-form {
    margin-bottom: 20px;
}

.zedo-report-query-form .form-group {
    margin-bottom: 20px;
}

.zedo-report-query-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.zedo-report-query-form input[type="text"],
.zedo-report-query-form input[type="date"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.zedo-report-query-form input[type="text"]:focus,
.zedo-report-query-form input[type="date"]:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.zedo-submit-btn {
    width: 100%;
    padding: 14px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.zedo-submit-btn:hover {
    background: #005a87;
}

.zedo-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.zedo-report-loading {
    text-align: center;
    padding: 40px 20px;
}

.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

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

.zedo-report-result {
    margin-top: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 6px;
    border-left: 4px solid #0073aa;
}

.zedo-report-display {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.report-info h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 18px;
}

.report-info-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

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

.report-info-table th {
    font-weight: 600;
    color: #333;
    width: 30%;
}

.report-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.zedo-preview-btn,
.zedo-download-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
}

.zedo-preview-btn {
    background: #0073aa;
    color: #fff;
}

.zedo-preview-btn:hover {
    background: #005a87;
    color: #fff;
}

.zedo-download-btn {
    background: #28a745;
    color: #fff;
}

.zedo-download-btn:hover {
    background: #218838;
    color: #fff;
}

.zedo-preview-container {
    margin-top: 20px;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
}

.preview-header {
    background: #f5f5f5;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
}

.preview-header h4 {
    margin: 0;
    color: #333;
}

.zedo-close-preview {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zedo-close-preview:hover {
    color: #333;
}

.preview-content {
    background: #fff;
}

#zedo-preview-iframe {
    border: none;
    display: block;
}

/* 錯誤訊息樣式 */
.zedo-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #dc3545;
    margin-bottom: 20px;
}

/* 成功訊息樣式 */
.zedo-success {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #28a745;
    margin-bottom: 20px;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .zedo-report-query-container {
        margin: 10px;
        padding: 15px;
    }

    .report-actions {
        flex-direction: column;
    }

    .zedo-preview-btn,
    .zedo-download-btn {
        width: 100%;
    }

    .report-info-table th,
    .report-info-table td {
        display: block;
        width: 100%;
        text-align: left;
    }

    .report-info-table th {
        background: #f5f5f5;
        font-weight: 600;
    }
}
