/* 申訴查詢功能專用樣式 */

/* 查詢按鈕樣式 */
.btn.btn-query {
    border: 2px solid #3A4D39 !important;
    color: #3A4D39 !important;
    background: transparent !important;
    font-size: 1.1rem;
    font-weight: bold;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn.btn-query:hover {
    background: #3A4D39 !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn.btn-query:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 查詢模態框樣式 */
.query-modal-content {
    border: none;
    border-radius: 15px;
    overflow: hidden;
}

.query-modal-header {
    background: linear-gradient(135deg, #3A4D39 0%, #4d5e4c 100%);
    color: white;
    border-bottom: none;
    padding: 1.5rem;
}

.query-modal-header .modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.query-modal-body {
    padding: 2rem;
}

.query-modal-footer {
    border-top: none;
    padding: 1.5rem;
    background-color: #f8f9fa;
}

/* 查詢輸入框樣式 */
.query-input {
    border: 1px solid #ced4da;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.2s ease-in-out;
}

.query-input:focus {
    border-color: #3A4D39;
    box-shadow: 0 0 0 0.2rem rgba(58, 77, 57, 0.15);
}

/* 查詢提交按鈕樣式 */
.btn.btn-query-submit {
    background: #3A4D39 !important;
    border: none;
    color: white !important;
    font-size: 1rem;
    font-weight: bold;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    transition: all 0.2s ease-in-out;
}

.btn.btn-query-submit:hover {
    background: linear-gradient(135deg, #3A4D39 0%, #4d5e4c 100%) !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn.btn-query-submit:active {
    transform: translateY(0);
    color: white !important;
}

.btn.btn-query-submit i {
    color: white !important;
}

.btn.btn-query-submit .bi {
    color: white !important;
}

/* 查詢卡片樣式 */
.query-card {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    background: white;
}

.query-card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #e9ecef;
    padding: 1rem 1.5rem;
    color: #333;
}

.query-card-header h6 {
    color: #3A4D39;
    font-weight: 600;
    margin: 0;
}

.query-card-body {
    padding: 1.5rem;
}

.query-card-body p {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.query-card-body strong {
    color: #3A4D39;
    font-weight: 600;
}

/* 查詢內容框樣式 */
.query-content-box {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 0.5rem;
}

/* 查詢載入動畫樣式 */
.query-loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3A4D39;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: query-spin 1s linear infinite;
    margin: 0 auto;
}

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

/* 查詢錯誤圖示樣式 */
.query-error-icon {
    font-size: 2rem;
    color: #dc3545;
}

/* 狀態標籤樣式 */
.query-status-badge {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    background-color: #3A4D39;
    color: white;
}

/* 處理紀錄樣式 */
.query-history-item {
    border-left: 3px solid #3A4D39;
    padding-left: 1rem;
    margin-bottom: 1rem;
}

.query-history-item:last-child {
    margin-bottom: 0;
}

.query-history-date {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

.query-history-status {
    font-weight: 600;
    color: #3A4D39;
    margin-bottom: 0.5rem;
}

.query-history-note {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 0.75rem;
    margin-top: 0.5rem;
}

.query-history-handler {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 0.5rem;
    font-style: italic;
}

/* 無處理紀錄樣式 */
.query-no-history {
    text-align: center;
    color: #6c757d;
    padding: 2rem;
}

.query-no-history .bi-info-circle {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* 響應式調整 */
@media (max-width: 768px) {
    .query-modal-body {
        padding: 1rem;
    }
    
    .query-card-body {
        padding: 1rem;
    }
    
    .query-card-header {
        padding: 0.75rem 1rem;
    }
    
    .btn.btn-query {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .btn.btn-query-submit {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Toast 通知樣式 */
.toast-container {
    z-index: 9999;
}

#queryToast {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#queryToast .toast-header {
    background: linear-gradient(135deg, #3A4D39 0%, #4d5e4c 100%);
    color: white;
    border-bottom: none;
    border-radius: 12px 12px 0 0;
}

#queryToast .toast-header .btn-close {
    filter: invert(1);
}

#queryToast .toast-body {
    background-color: white;
    color: #333;
    font-weight: 500;
    border-radius: 0 0 12px 12px;
} 