/* ==========================================================================
   Reporting Designer — shared styles (tenant + travelchain/platform)
   Tek global dosya; her iki taraf da aynı tasarımı kullanır.
   Önceden component-scoped (.razor.css) idi; global'e taşındı.
   ========================================================================== */

/* ===== Layout ===== */
.reporting-designer {
    display: flex;
    height: calc(100vh - 180px);
    min-height: 600px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
}

.reporting-designer__list {
    width: 340px;
    flex-shrink: 0;
    border-right: 1px solid #e5e7eb;
    overflow-y: auto;
    background: #fafbfc;
}

.reporting-designer__editor {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.reporting-designer__empty {
    text-align: center;
    padding: 120px 40px;
    color: #6b7280;
}

.reporting-designer__empty h3 {
    font-size: 18px;
    color: #1f2937;
    margin-bottom: 8px;
}

.reporting-designer__empty p {
    font-size: 14px;
    color: #6b7280;
}

/* ===== List panel ===== */
.report-list-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.report-list-panel__header {
    padding: 14px 16px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    background: #ffffff;
}

.report-list-panel__header h4 {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    color: #1f2937;
}

.report-list-panel__tabs {
    display: flex;
    border-bottom: 1px solid #e5e7eb;
    background: #ffffff;
}

.report-list-panel__tabs .tab {
    flex: 1;
    padding: 10px 12px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.15s;
}

.report-list-panel__tabs .tab--active {
    color: #3290FF;
    border-bottom-color: #3290FF;
}

.report-list-panel__tabs .tab:hover:not(.tab--active) {
    color: #1f2937;
    background: #f3f4f6;
}

.report-list-panel__filter {
    padding: 10px 12px;
    border-bottom: 1px solid #e5e7eb;
    background: #ffffff;
}

.report-list-panel__list {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.report-list-panel__item {
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    margin-bottom: 6px;
    cursor: pointer;
    transition: all 0.15s;
    background: #ffffff;
}

.report-list-panel__item:hover {
    border-color: #3290FF;
    box-shadow: 0 0 0 3px rgba(50, 144, 255, 0.08);
}

.report-list-panel__item--selected {
    background: rgba(50, 144, 255, 0.06);
    border-color: #3290FF;
}

.report-list-panel__item-name {
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.report-list-panel__item-meta {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.report-list-panel__item-meta .badge {
    font-size: 9px;
    padding: 2px 8px;
    border-radius: 10px;
    background: #f3f4f6;
    color: #4b5563;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.report-list-panel__item .btn {
    padding: 4px 10px;
    font-size: 11px;
}

.lock-icon {
    font-size: 11px;
    opacity: 0.7;
}

/* ===== Status badges (shared) ===== */
.badge-status-draft {
    background: #fef3c7;
    color: #92400e;
}

.badge-status-published {
    background: #d1fae5;
    color: #065f46;
}

.badge-status-archived {
    background: #f3f4f6;
    color: #6b7280;
}

.badge-status-readonly {
    background: #e5e7eb;
    color: #374151;
    white-space: nowrap;
}

/* ===== Editor panel ===== */
.report-editor-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #ffffff;
}

.report-editor-panel__header {
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
}

.report-editor-panel__title-input {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid transparent;
    background: transparent;
    padding: 6px 8px;
    border-radius: 4px;
}

.report-editor-panel__title-input:hover,
.report-editor-panel__title-input:focus {
    border-color: #d1d5db;
    background: #ffffff;
}

.report-editor-panel__header .badge {
    font-size: 9px;
    padding: 3px 10px;
    border-radius: 10px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.report-editor-panel__actions {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.report-editor-panel__actions .btn {
    font-size: 12px;
    padding: 6px 14px;
}

.report-editor-panel__tabs {
    display: flex;
    border-bottom: 1px solid #e5e7eb;
    background: #fafbfc;
    padding: 0 16px;
}

.report-editor-panel__tabs .tab {
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 10px 16px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.15s;
}

.report-editor-panel__tabs .tab--active {
    color: #3290FF;
    border-bottom-color: #3290FF;
}

.report-editor-panel__tabs .tab:hover:not(.tab--active) {
    color: #1f2937;
}

.report-editor-panel__body {
    flex: 1;
    overflow: auto;
    padding: 16px;
}

/* ===== Design Tab ===== */
.design-tab {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 12px;
}

.design-tab__meta textarea {
    font-size: 12px;
    resize: vertical;
}

.design-tab__meta small {
    display: block;
    margin-top: 6px;
    font-size: 11px;
}

.design-tab__editor {
    flex: 1;
    min-height: 400px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
}

.design-tab__editor .monaco-editor-host {
    width: 100%;
    height: 100%;
    min-height: 400px;
}

/* ===== Schema Tab ===== */
.schema-tab {
    font-size: 12px;
}

.schema-tab p {
    color: #6b7280;
    margin-bottom: 12px;
}

.schema-tab h5 {
    font-size: 13px;
    font-weight: 600;
    margin: 20px 0 8px;
    color: #1f2937;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.schema-tab__viewer {
    background: #1e293b;
    color: #e2e8f0;
    padding: 14px 16px;
    border-radius: 6px;
    font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
    font-size: 11px;
    line-height: 1.5;
    overflow-x: auto;
    max-height: 400px;
    overflow-y: auto;
}

/* ===== Preview Tab ===== */
.preview-tab {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 12px;
}

.preview-tab__controls {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px 0;
}

.preview-tab__controls .form-check {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

.preview-tab__controls .form-check input {
    margin: 0;
}

.preview-tab__controls .btn {
    margin-left: auto;
}

.preview-tab__iframe {
    flex: 1;
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    min-height: 500px;
    background: #ffffff;
}

.preview-tab .alert {
    font-size: 12px;
    padding: 10px 14px;
}
