/* Rapor Sorgulama Page Styles */
/* PHP report-page stillerine uyumlu */

.report-page {
    background: linear-gradient(180deg, #fdfdfd 0%, #f4f1e8 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.report-hero {
    width: 100%;
}

.report-card {
    background: #fefefe;
    border-radius: 22px;
    border: 1px solid #ebebeb;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

.report-card__head {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.report-title {
    font-weight: 800;
    letter-spacing: 0.15em;
    color: #2f2f30;
    font-size: clamp(1.4rem, 3vw, 1.8rem);
}

.report-subtitle {
    color: #6b6b6b;
    font-size: 0.95rem;
}

/* Query Tabs */
.report-query-tabs {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.query-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 1rem 1.5rem;
    background: #f5f5f5;
    border: 2px solid transparent;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .query-tab:hover {
        background: #eee;
        color: #333;
    }

    .query-tab.active {
        background: #fff;
        border-color: var(--yellow, #f9d42e);
        color: #333;
        box-shadow: 0 4px 12px rgba(249, 212, 46, 0.15);
    }

    .query-tab i {
        font-size: 1.2rem;
    }

/* Query Content */
.report-query-content {
    min-height: 200px;
}

.query-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

    .query-panel.active {
        display: block;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Report Filters - PHP uyumlu */
.report-filters {
    margin-top: 0.5rem;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
}

.qr-filter-row {
    align-items: stretch;
}

.filter-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex: 1;
    min-width: 200px;
}

.filter-field-wide {
    flex: 2;
    min-width: 300px;
}

.filter-field span {
    font-weight: 600;
    font-size: 0.85rem;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.input-icon {
    position: relative;
}

    .input-icon i {
        position: absolute;
        left: 1rem;
        top: 50%;
        transform: translateY(-50%);
        font-size: 1rem;
        color: #888;
    }

    .input-icon .form-control {
        padding-left: 2.75rem;
    }

.filter-field .form-control,
.filter-field .form-select {
    background: #2e2e2f;
    border: 1px solid #3a3a3b;
    color: #fff;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

    .filter-field .form-control:focus,
    .filter-field .form-select:focus {
        outline: none;
        border-color: var(--yellow, #f9d42e);
        box-shadow: 0 0 0 3px rgba(249, 212, 46, 0.15);
    }

    .filter-field .form-control::placeholder {
        color: #888;
    }

.filter-actions {
    min-width: 180px;
}

.btn-ink {
    background: #1f1f20;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 0.85rem 1.5rem;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

    .btn-ink:hover:not(:disabled) {
        background: #333;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    }

    .btn-ink:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

/* QR Upload Area */
.qr-upload-area {
    flex: 1.5;
    min-width: 280px;
    min-height: 180px;
    border: 2px dashed #ccc;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafafa;
    position: relative;
}

    .qr-upload-area:hover,
    .qr-upload-area.dragover {
        border-color: var(--yellow, #f9d42e);
        background: rgba(249, 212, 46, 0.05);
    }

    .qr-upload-area.has-file {
        border-style: solid;
        border-color: var(--yellow, #f9d42e);
        background: rgba(249, 212, 46, 0.08);
    }

.upload-content {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem;
}

.upload-icon {
    font-size: 2.5rem;
    color: #bbb;
    transition: color 0.3s ease;
}

.qr-upload-area:hover .upload-icon {
    color: var(--yellow, #f9d42e);
}

.upload-text p {
    color: #666;
    font-size: 0.95rem;
}

.upload-or {
    font-size: 0.9rem;
    color: #888;
}

.upload-link {
    background: none;
    border: none;
    color: var(--yellow, #d4a900);
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}

    .upload-link:hover {
        color: #b8960a;
    }

/* Upload Preview */
.upload-preview {
    position: relative;
    padding: 1rem;
}

    .upload-preview img {
        max-width: 150px;
        max-height: 150px;
        border-radius: 10px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

.remove-preview {
    position: absolute;
    top: 0;
    right: 0;
    width: 28px;
    height: 28px;
    background: #ff4757;
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.3);
}

    .remove-preview:hover {
        transform: scale(1.1);
        background: #e8384f;
    }

/* QR Result Area */
.qr-result-area {
    flex: 1;
    min-width: 220px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
}

.qr-status {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: #666;
    flex: 1;
}

    .qr-status i {
        font-size: 1.1rem;
        flex-shrink: 0;
        margin-top: 2px;
    }

    .qr-status.success {
        background: #ecfdf5;
        color: #059669;
        border: 1px solid #a7f3d0;
    }

        .qr-status.success i {
            color: #10b981;
        }

    .qr-status.error {
        background: #fef2f2;
        color: #dc2626;
        border: 1px solid #fecaca;
    }

        .qr-status.error i {
            color: #ef4444;
        }

    .qr-status.loading {
        background: #fffbeb;
        color: #d97706;
        border: 1px solid #fde68a;
    }

/* Error Message */
.report-error {
    margin-top: 1.25rem;
    padding: 1rem 1.25rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #dc2626;
    font-size: 0.9rem;
}

    .report-error i {
        font-size: 1.2rem;
        flex-shrink: 0;
    }

/* Responsive */
@media (max-width: 768px) {
    .report-query-tabs {
        flex-direction: column;
    }

    .query-tab {
        justify-content: flex-start;
        padding: 0.85rem 1.25rem;
    }

    .filter-row {
        flex-direction: column;
    }

    .qr-filter-row {
        gap: 1.5rem;
    }

    .filter-field,
    .filter-field-wide,
    .filter-actions {
        width: 100%;
        min-width: unset;
    }

    .qr-upload-area {
        min-height: 160px;
    }

    .upload-content {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .qr-result-area {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .report-card {
        padding: 1.25rem;
        border-radius: 16px;
    }

    .report-title {
        font-size: 1.2rem;
    }

    .query-tab span {
        font-size: 0.85rem;
    }

    .upload-icon {
        font-size: 2rem;
    }
}
