﻿:root {
    --panel-bg: #f3f5f7;
    --panel-white: #ffffff;
    --panel-dark: #24364b;
    --panel-text: #2d3748;
    --panel-muted: #6b7280;
    --panel-border: #d7dde5;
    --panel-border-light: #dfe5ec;
    --panel-primary: #1f6fb2;
    --panel-primary-hover: #185c93;
    --panel-focus: #2d74b8;
}

body {
    margin: 0;
    padding: 0;
    background: var(--panel-bg);
    font-family: Arial, Helvetica, sans-serif;
    color: var(--panel-text);
}

a {
    text-decoration: none;
}

.panel-login-body {
    min-height: 100vh;
}

.panel-login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.panel-login-card {
    width: 100%;
    max-width: 430px;
    background: var(--panel-white);
    border-radius: 18px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
    padding: 35px 30px;
}

.panel-login-title {
    font-size: 34px;
    font-weight: 700;
    color: var(--panel-dark);
    margin-bottom: 8px;
    text-align: center;
}

.panel-login-subtitle {
    text-align: center;
    color: var(--panel-muted);
    margin-bottom: 28px;
}

.panel-input-label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
    color: #334155;
}

.panel-input,
.panel-textarea {
    width: 100%;
    border: 1px solid var(--panel-border);
    border-radius: 10px;
    font-size: 14px;
    box-sizing: border-box;
    background: #fff;
}

    .panel-input:focus,
    .panel-textarea:focus {
        outline: none;
        border-color: var(--panel-focus);
        box-shadow: 0 0 0 3px rgba(45, 116, 184, 0.12);
    }

.panel-input {
    height: 44px;
    padding: 0 14px;
    margin-bottom: 18px;
}

.panel-textarea {
    min-height: 120px;
    padding: 14px;
    resize: vertical;
}

.panel-btn {
    display: inline-block;
    border: none;
    border-radius: 10px;
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.panel-btn-primary {
    width: 100%;
    background: var(--panel-primary);
    color: #fff;
}

    .panel-btn-primary:hover {
        background: var(--panel-primary-hover);
    }

.panel-alert {
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 18px;
    font-size: 14px;
}

.panel-alert-danger {
    background: #fdecec;
    color: #b42318;
    border: 1px solid #f3c3c3;
}

.panel-alert-success {
    background: #e9f9ee;
    color: #0f7a35;
    border: 1px solid #b7e4c7;
}

.panel-layout {
    display: flex;
    min-height: 100vh;
}

.panel-sidebar {
    width: 240px;
    min-height: 100vh;
    background: #2f3f56;
    color: #fff;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1200;
    transition: transform 0.28s ease;
}

.panel-sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
}

.panel-sidebar-menu {
    padding: 14px 0;
}

.panel-sidebar-link {
    display: block;
    margin: 0 12px 8px 12px;
    padding: 12px 14px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s ease, border-color 0.2s ease;
}

    .panel-sidebar-link:hover {
        background: rgba(255, 255, 255, 0.06);
        color: #fff;
    }

    .panel-sidebar-link.active {
        background: rgba(255, 255, 255, 0.10);
        border-color: rgba(255, 255, 255, 0.15);
    }

.panel-sidebar-footer {
    margin-top: auto;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.panel-sidebar-user {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
}

.panel-logout-btn {
    display: inline-block;
    background: var(--panel-white);
    color: var(--panel-dark);
    padding: 9px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
}

.panel-main {
    flex: 1;
    margin-left: 240px;
    padding: 24px 28px;
    min-width: 0;
}

.panel-content-wrap {
    max-width: 1400px;
}

.panel-topbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--panel-bg);
    padding: 10px 0 12px 0;
}

.panel-topbar-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--panel-dark);
}

.panel-menu-toggle {
    display: none;
    border: 1px solid var(--panel-border);
    background: #fff;
    color: var(--panel-dark);
    border-radius: 10px;
    width: 44px;
    height: 44px;
    font-size: 22px;
    cursor: pointer;
}

.panel-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 1100;
}

.panel-page-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--panel-dark);
    margin-bottom: 8px;
}

.panel-page-subtitle {
    color: var(--panel-muted);
    margin-bottom: 24px;
}

.panel-card {
    background: var(--panel-white);
    border: 1px solid var(--panel-border-light);
    border-radius: 12px;
    padding: 22px;
    min-height: 120px;
}

.panel-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.panel-table {
    width: 100%;
    border-collapse: collapse;
}

    .panel-table th,
    .panel-table td {
        padding: 14px 12px;
        border-bottom: 1px solid #e5e7eb;
        text-align: left;
        font-size: 14px;
    }

    .panel-table th {
        background: #f8fafc;
        color: #334155;
        font-weight: 700;
    }

.panel-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
}

.badge-gray {
    background: #64748b;
}

.badge-green {
    background: #16a34a;
}

.badge-orange {
    background: #ea580c;
}

.badge-yellow {
    background: #ca8a04;
}

.badge-blue {
    background: #2563eb;
}

.badge-dark {
    background: #334155;
}

.panel-detail-btn {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    color: #1d4ed8;
    font-weight: 600;
    background: #fff;
}

    .panel-detail-btn:hover {
        background: #f8fafc;
    }

.panel-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.panel-section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--panel-dark);
    margin-bottom: 16px;
}

.panel-info-row {
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
}

.panel-message-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px;
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-wrap;
}

.panel-file-list {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.panel-file-box {
    display: block;
    width: 220px;
    background: #f8fafc;
    border: 1px solid #dbe3ec;
    border-radius: 10px;
    padding: 14px;
    color: var(--panel-dark);
}

    .panel-file-box:hover {
        background: #eef4fa;
    }

.panel-file-name {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
    word-break: break-word;
}

.panel-file-meta {
    font-size: 12px;
    color: #64748b;
}

.panel-history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.panel-history-item {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px;
    background: #fafafa;
}

.panel-history-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--panel-dark);
    margin-bottom: 6px;
}

.panel-history-desc {
    font-size: 14px;
    color: #334155;
    margin-bottom: 6px;
}

.panel-history-date {
    font-size: 12px;
    color: #64748b;
}

.panel-empty-text {
    color: #64748b;
    font-size: 14px;
}

.panel-attachment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 16px;
    margin-top: 12px;
}

.panel-attachment-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    margin-top: 12px;
    overflow-x: hidden;
}

.panel-attachment-item {
    width: calc((100% - 48px) / 5);
    min-width: calc((100% - 48px) / 5);
    max-width: calc((100% - 48px) / 5);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.panel-attachment-thumb-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    border: 1px solid #d9e2ec;
    border-radius: 12px;
    overflow: hidden;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.panel-attachment-item:hover .panel-attachment-thumb-wrap {
    border-color: #b9c8d8;
    transform: translateY(-2px);
}

.panel-attachment-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.panel-attachment-name {
    font-size: 13px;
    font-weight: 600;
    color: #243b53;
    text-align: center;
    line-height: 1.2;
}

.panel-remember-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0 16px 0;
}

.panel-checkbox {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.panel-checkbox-label {
    font-size: 14px;
    color: #243b53;
    cursor: pointer;
    margin: 0;
}

.panel-note-item {
    position: relative;
}

.panel-note-text {
    white-space: pre-line;
    line-height: 1.5;
    color: #243b53;
    word-break: break-word;
}

    .panel-note-text.is-collapsed {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

.panel-note-toggle {
    margin-top: 8px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #1d4ed8;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

    .panel-note-toggle:hover {
        text-decoration: underline;
    }

.panel-konu-cell {
    max-width: 420px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.panel-mobile-list {
    display: none;
}

.panel-mobile-item {
    margin-bottom: 14px;
}

.panel-mobile-item-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.panel-mobile-kayitno {
    font-size: 15px;
    font-weight: 700;
    color: var(--panel-dark);
    word-break: break-word;
}

.panel-mobile-row {
    margin-bottom: 10px;
}

.panel-mobile-label {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.panel-mobile-value {
    font-size: 14px;
    color: var(--panel-dark);
    line-height: 1.5;
    word-break: break-word;
}

.panel-mobile-konu {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.panel-mobile-actions {
    margin-top: 14px;
    display: flex;
    justify-content: flex-end;
}

.mt-20 {
    margin-top: 20px;
}

@media (max-width: 1100px) {
    .panel-detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991px) {
    .panel-sidebar {
        transform: translateX(-100%);
        width: 280px;
    }

        .panel-sidebar.is-open {
            transform: translateX(0);
        }

    .panel-overlay.is-open {
        display: block;
    }

    .panel-main {
        margin-left: 0;
        padding: 18px;
    }

    .panel-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .panel-desktop-list {
        display: none;
    }

    .panel-mobile-list {
        display: block;
    }

    .panel-page-title {
        font-size: 24px;
    }

    .panel-page-subtitle {
        font-size: 14px;
        margin-bottom: 18px;
    }

    .panel-card {
        padding: 16px;
    }

    .panel-topbar {
        padding: 12px 0;
        margin-bottom: 16px;
        border-bottom: 1px solid var(--panel-border-light);
    }

    .panel-topbar-title {
        font-size: 18px;
        line-height: 1.2;
    }

    .panel-menu-toggle {
        flex-shrink: 0;
    }
}
