@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&display=swap');

/* ═══════════════════════════════════════════════════════════════════
   style.css — Proka Intellect ERP Görünümüne Uygun Stil Dosyası
   ═══════════════════════════════════════════════════════════════════
   
   Renk Paleti (Intellect V9.7.3 — Gerçek):
   - Üst Bar:       #092736 (koyu lacivert — gerçek Intellect)
   - Panel:         #223d4a (panel arka plan)
   - Ana Mavi:      #2499cd (Intellect link rengi)
   - Cyan:          #37baf4 (başlık/nav vurgu)
   - Tablo Header:  #E1EBF8 (açık mavi), #C9D9EC (satır başlığı)
   - Satır Tek:     #d1d1d1 / #e5e5e5
   - Arka Plan:     #f0f2f5
   - Kenar:         #d0d8e0
   
   ═══════════════════════════════════════════════════════════════════ */

/* ─── SIFIRLAMA & GENEL ─── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 13px;
    color: #2c3e50;
    background: #f0f2f5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: #1a7db1;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
    color: #0d6d9e;
}

/* ═══════════════════════════════════════════════════════════════════
   ÜST BAR — AppPage_GlobalToolbar
   ═══════════════════════════════════════════════════════════════════ */
#AppPage_GlobalToolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(90deg, #071f2b 0%, #092736 60%, #0e3347 100%);
    color: #ecf0f1;
    padding: 0 12px;
    height: 40px;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.35);
    border-bottom: 1px solid #1a4a62;
    z-index: 100;
}

.toolbar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

#AppPage_Logo {
    display: flex;
    align-items: baseline;
    gap: 6px;
}
.logo-text {
    font-weight: 700;
    font-size: 18px;
    color: #37baf4;
    letter-spacing: 1px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.logo-sub {
    font-size: 10px;
    color: #7fb8d0;
}

#AppPage_AppTabs {
    display: flex;
    gap: 2px;
}
.app-tab {
    padding: 8px 14px;
    font-size: 11px;
    color: #bdc3c7;
    cursor: pointer;
    border-radius: 3px 3px 0 0;
    transition: all 0.2s;
    white-space: nowrap;
}
.app-tab:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}
.app-tab.active {
    background: #37baf4;
    color: #fff;
    font-weight: 600;
}

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}
.toolbar-status {
    font-size: 11px;
    color: #95a5a6;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 10px;
    background: rgba(255,255,255,0.08);
}
.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #95a5a6;
}
.status-dot.green {
    background: #27ae60;
    box-shadow: 0 0 4px rgba(39,174,96,0.5);
}
.status-dot.red {
    background: #e74c3c;
    box-shadow: 0 0 4px rgba(231,76,60,0.5);
}
.toolbar-user {
    font-size: 12px;
    color: #bdc3c7;
    margin-right: 10px;
}
.toolbar-btn {
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 3px;
    transition: background 0.2s;
}
.toolbar-btn:hover {
    background: rgba(255,255,255,0.15);
}

/* ═══════════════════════════════════════════════════════════════════
   BREADCRUMB
   ═══════════════════════════════════════════════════════════════════ */
#AppPage_Breadcrumb {
    background: #fff;
    padding: 6px 14px;
    border-bottom: 1px solid #dce1e5;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    font-size: 12px;
}
.bc-item {
    color: #1a7db1;
    cursor: pointer;
}
.bc-item:hover {
    text-decoration: underline;
}
.bc-item.bc-active {
    color: #2c3e50;
    font-weight: 600;
    cursor: default;
}
.bc-item.bc-active:hover {
    text-decoration: none;
}
.bc-sep {
    color: #95a5a6;
    font-size: 14px;
}

/* ═══════════════════════════════════════════════════════════════════
   ANA İÇERİK DÜZENI (Sol Panel + Merkez + Sağ Panel)
   ═══════════════════════════════════════════════════════════════════ */
#AppPage_MainContent {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* ─── SOL PANEL ─── */
#AppPage_SidePanelContents {
    width: 220px;
    min-width: 220px;
    background: #092736;
    border-right: 1px solid #0e3347;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    color: #fff;
}

.side-panel-header {
    display: flex;
    gap: 2px;
    padding: 6px 8px;
    background: #0e3347;
    border-bottom: 1px solid #1a4a62;
}
.sp-tab {
    padding: 4px 10px;
    cursor: pointer;
    border-radius: 3px;
    font-size: 14px;
}
.sp-tab.active {
    background: #37baf4;
    color: #fff;
    border-radius: 3px;
}
.sp-tab:hover:not(.active) {
    background: rgba(255,255,255,0.12);
}

.explorer-tree {
    padding: 8px;
}
.tree-header {
    font-weight: 700;
    font-size: 12px;
    color: #37baf4;
    padding: 4px 0;
    border-bottom: 1px solid rgba(55,186,244,0.25);
    margin-bottom: 6px;
}
.tree-list {
    list-style: none;
    padding-left: 0;
}
.tree-list ul {
    list-style: none;
    padding-left: 16px;
}
.tree-folder > span {
    display: block;
    padding: 3px 6px;
    cursor: pointer;
    border-radius: 3px;
    font-size: 12px;
    color: #c8dde8;
}
.tree-folder > span:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}
.tree-item {
    padding: 3px 6px;
    cursor: pointer;
    border-radius: 3px;
    font-size: 12px;
    color: #c8dde8;
}
.tree-item:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}
.tree-item.active {
    background: rgba(55,186,244,0.2);
    color: #37baf4;
    font-weight: 600;
}

/* ─── MERKEZ ALAN ─── */
#AppPage_ItemDetails {
    flex: 1;
    overflow-y: auto;
    background: #f0f2f5;
    display: flex;
    flex-direction: column;
}

/* ─── SAĞ PANEL ─── */
#AppPage_ActivityInfo {
    width: 200px;
    min-width: 200px;
    background: #fff;
    border-left: 1px solid #d0d8e4;
    overflow-y: auto;
}
.activity-header {
    padding: 8px 12px;
    font-weight: 700;
    font-size: 12px;
    background: #E1EBF8;
    border-bottom: 2px solid #2499cd;
    color: #2c3e50;
}
.activity-list {
    padding: 8px;
}
.activity-item {
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f0;
}
.activity-time {
    display: block;
    font-size: 10px;
    color: #95a5a6;
}
.activity-text {
    display: block;
    font-size: 11px;
    color: #2c3e50;
    margin-top: 2px;
}

/* ═══════════════════════════════════════════════════════════════════
   PROKA KAYIT BİLGİ IZGARASI (Çalışan Kişilik Kartı üst kısım)
   ═══════════════════════════════════════════════════════════════════ */
.proka-record-grid {
    display: grid;
    grid-template-columns: auto 1fr auto 1fr;
    gap: 6px 20px;
    padding: 10px 16px;
    background: #fff;
    border-bottom: 1px solid #d0d8e4;
    font-size: 13px;
    flex-shrink: 0;
}
.prg-label {
    font-weight: 700;
    color: #000;
    white-space: nowrap;
    align-self: center;
}
.prg-value {
    color: #2c3e50;
    align-self: center;
}
.prg-link {
    color: #3ba2db;
    text-decoration: none;
}
.prg-link:hover {
    text-decoration: underline;
}
.prg-sep {
    color: #7f8c8d;
}

/* ═══════════════════════════════════════════════════════════════════
   PROKA SEKME ÇUBUĞU (Intellect tarzı üst sekmeler)
   ═══════════════════════════════════════════════════════════════════ */
.proka-tab-bar {
    display: flex;
    flex-wrap: wrap;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    flex-shrink: 0;
}
.ptb-tab {
    padding: 9px 14px;
    background: #d6e8f3;
    color: #7b9ab1;
    cursor: pointer;
    border-top: 1px solid #fff;
    border-right: 1px solid #fff;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
    user-select: none;
}
.ptb-tab:hover {
    background: #fff;
    color: #4a6a80;
}
.ptb-tab.active {
    background: #fff;
    color: #4a6a80;
    border-top: 3px solid #2499cd;
    padding-top: 7px;
}
.ptb-spacer {
    flex: 1;
    background: #d6e8f3;
    border-top: 1px solid #fff;
}

/* ═══════════════════════════════════════════════════════════════════
   (Eski .intellect-record-top stilleri — artık kullanılmıyor, saklandı)
   ═══════════════════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════════════════
   TAB SİSTEMİ
   ═══════════════════════════════════════════════════════════════════ */
.tab-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.tab-bar {
    display: flex;
    gap: 0;
    background: #dce3ec;
    border-bottom: 2px solid #2499cd;
    padding: 4px 8px 0 8px;
    flex-shrink: 0;
}
.tab-btn {
    padding: 7px 15px;
    border: 1px solid #c8d4df;
    border-bottom: none;
    background: #e8eef5;
    color: #7997B1;
    cursor: pointer;
    font-size: 12px;
    font-weight: 400;
    border-radius: 3px 3px 0 0;
    transition: all 0.2s;
    white-space: nowrap;
    margin-right: 2px;
}
.tab-btn:hover {
    background: #d8e5f0;
    color: #2c3e50;
}
.tab-btn.active {
    background: #fff;
    color: #2c3e50;
    border-color: #2499cd #c8d4df #fff;
    border-top: 2px solid #2499cd;
    font-weight: 600;
    position: relative;
    top: 1px;
}

.tab-content {
    flex: 1;
    overflow-y: auto;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.placeholder-text {
    padding: 40px;
    text-align: center;
    color: #95a5a6;
    font-size: 14px;
}

/* ═══════════════════════════════════════════════════════════════════
   ALT TAB ÇUBUĞU (Belgeler / Yazışmalar / Dosyalar)
   ═══════════════════════════════════════════════════════════════════ */
.sub-tab-bar {
    display: flex;
    gap: 1px;
    padding: 0 8px;
    background: #f7f9fa;
    border-bottom: 1px solid #e0e4e8;
}
.sub-tab-btn {
    padding: 6px 14px;
    border: none;
    background: transparent;
    color: #7f8c8d;
    cursor: pointer;
    font-size: 12px;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}
.sub-tab-btn:hover {
    color: #2c3e50;
    background: rgba(0,0,0,0.03);
}
.sub-tab-btn.active {
    color: #2499cd;
    border-bottom-color: #2499cd;
    font-weight: 600;
}

.sub-tab-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ═══════════════════════════════════════════════════════════════════
   DOSYA YÖNETİM ALANI
   ═══════════════════════════════════════════════════════════════════ */
#file-manager-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #fff;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    border: none;
    border-top: 1px solid #d0d8e0;
    overflow: hidden;
}

/* ═══════════════════════════════════════════════════════════════════
   DOSYA ARAÇ ÇUBUĞU
   ═══════════════════════════════════════════════════════════════════ */
.gdrive-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 12px;
    background: #E1EBF8;
    border-bottom: 1px solid #c8d8ed;
    gap: 12px;
    flex-wrap: wrap;
}
.gdrive-toolbar-left,
.gdrive-toolbar-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.gdrive-btn {
    padding: 5px 12px;
    border: 1px solid #d5d9dd;
    background: #fff;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    color: #2c3e50;
    transition: all 0.2s;
    white-space: nowrap;
}
.gdrive-btn:hover {
    background: #ecf0f1;
    border-color: #bdc3c7;
}
.gdrive-btn.primary {
    background: #2499cd;
    color: #fff;
    border-color: #1a7db1;
}
.gdrive-btn.primary:hover {
    background: #1a7db1;
}

.gdrive-search {
    display: flex;
    border: 1px solid #d5d9dd;
    border-radius: 3px;
    overflow: hidden;
}
.gdrive-search input {
    padding: 5px 10px;
    border: none;
    outline: none;
    font-size: 12px;
    width: 200px;
}
.gdrive-search button {
    padding: 5px 10px;
    border: none;
    border-left: 1px solid #d5d9dd;
    background: #f7f9fa;
    cursor: pointer;
}
.gdrive-search button:hover {
    background: #ecf0f1;
}

.gdrive-view-toggle {
    display: flex;
    border: 1px solid #d5d9dd;
    border-radius: 3px;
    overflow: hidden;
}
.view-btn {
    padding: 5px 10px;
    border: none;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
}
.view-btn.active {
    background: #2499cd;
    color: #fff;
}
.view-btn:hover:not(.active) {
    background: #ecf0f1;
}

/* ═══════════════════════════════════════════════════════════════════
   GOOGLE DRIVE BREADCRUMB (Klasör yolu)
   ═══════════════════════════════════════════════════════════════════ */
.gdrive-breadcrumb {
    padding: 6px 14px;
    background: #fff;
    border-bottom: 1px solid #e8ecef;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}
.gdrive-bc-item {
    color: #1a7db1;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 3px;
}
.gdrive-bc-item:hover {
    background: #ecf0f1;
}
.gdrive-bc-item.active {
    color: #2c3e50;
    font-weight: 600;
    cursor: default;
}
.gdrive-bc-item.active:hover {
    background: transparent;
}
.gdrive-bc-sep {
    color: #95a5a6;
}

/* ═══════════════════════════════════════════════════════════════════
   GOOGLE DRIVE DOSYA LİSTESİ
   ═══════════════════════════════════════════════════════════════════ */
.gdrive-file-list {
    flex: 1;
    overflow-y: auto;
    background: #fff;
}

/* Loading */
.gdrive-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #7f8c8d;
}
.gdrive-loading p {
    margin-top: 12px;
    font-size: 13px;
}
.gdrive-loading .hint {
    font-size: 11px;
    color: #95a5a6;
    margin-top: 4px;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #ecf0f1;
    border-top-color: #2499cd;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Empty State */
.gdrive-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #7f8c8d;
}
.gdrive-empty .empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
}
.gdrive-empty p {
    margin-bottom: 12px;
}
.gdrive-empty.error .empty-icon {
    color: #e74c3c;
}

/* ─── TABLO (Liste Görünümü) ─── */
.gdrive-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}
.gdrive-table thead th {
    background: #E1EBF8;
    color: #2c3e50;
    padding: 7px 10px;
    text-align: left;
    font-weight: 700;
    font-size: 11px;
    cursor: pointer;
    user-select: none;
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 2px solid #2499cd;
    border-right: 1px solid #c8d8ed;
}
.gdrive-table thead th:hover {
    background: #d0e1f5;
}

.gdrive-row {
    border-bottom: 1px solid #e8ecf0;
    transition: background 0.15s;
}
.gdrive-row:nth-child(odd) {
    background: #f5f7fa;
}
.gdrive-row:nth-child(even) {
    background: #fff;
}
.gdrive-row:hover {
    background: #dae8f5;
}
.gdrive-row td {
    padding: 6px 10px;
    vertical-align: middle;
}

.folder-row {
    font-weight: 500;
}
.folder-row:hover {
    background: #fef9e7;
}

.file-icon {
    font-size: 16px;
    text-align: center;
}
.file-name a {
    color: #2c3e50;
    font-weight: 500;
}
.file-name a:hover {
    color: #1a7db1;
}
.shared-badge {
    font-size: 10px;
    margin-left: 4px;
}
.file-date,
.file-size,
.file-type {
    color: #7f8c8d;
    font-size: 11px;
}
.file-actions {
    display: flex;
    gap: 2px;
}
.action-btn {
    padding: 3px 6px;
    border: 1px solid transparent;
    background: transparent;
    cursor: pointer;
    border-radius: 3px;
    font-size: 13px;
    transition: all 0.2s;
}
.action-btn:hover {
    background: #ecf0f1;
    border-color: #d5d9dd;
}

/* ─── GRID GÖRÜNÜMÜ ─── */
.gdrive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    padding: 16px;
}
.gdrive-grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 8px;
    border: 1px solid #e8ecef;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}
.gdrive-grid-item:hover {
    border-color: #2499cd;
    box-shadow: 0 2px 8px rgba(52,152,219,0.15);
    transform: translateY(-1px);
}
.folder-item:hover {
    border-color: #f39c12;
    box-shadow: 0 2px 8px rgba(243,156,18,0.15);
}

.grid-thumb-wrap {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}
.grid-thumb {
    max-width: 80px;
    max-height: 80px;
    border-radius: 4px;
}
.grid-icon {
    font-size: 40px;
}
.grid-name {
    font-size: 11px;
    text-align: center;
    color: #2c3e50;
    word-break: break-all;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* ─── FOOTER ─── */
.gdrive-footer {
    display: flex;
    justify-content: space-between;
    padding: 6px 14px;
    background: #f7f9fa;
    border-top: 1px solid #e0e4e8;
    font-size: 11px;
    color: #7f8c8d;
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════════
   ERP TABLOLARI (Belgeler, Yazışmalar)
   ═══════════════════════════════════════════════════════════════════ */
.erp-section-toolbar {
    padding: 8px 14px;
    background: #f7f9fa;
    border-bottom: 1px solid #e0e4e8;
    display: flex;
    gap: 6px;
}
.erp-btn {
    padding: 5px 12px;
    border: 1px solid #d5d9dd;
    background: #fff;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    color: #2c3e50;
}
.erp-btn:hover {
    background: #ecf0f1;
}

.erp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}
.erp-table thead th {
    background: #E1EBF8;
    color: #2c3e50;
    padding: 7px 10px;
    text-align: left;
    font-weight: 700;
    font-size: 11px;
    border-bottom: 2px solid #2499cd;
    border-right: 1px solid #c8d8ed;
}
.erp-table tbody tr {
    border-bottom: 1px solid #e8ecf0;
}
.erp-table tbody tr:nth-child(odd) {
    background: #f5f7fa;
}
.erp-table tbody tr:nth-child(even) {
    background: #fff;
}
.erp-table tbody tr:hover {
    background: #dae8f5;
}
.erp-table td {
    padding: 6px 10px;
}

.status-badge {
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
}
.status-badge.green {
    background: #d5f5e3;
    color: #1e8449;
}
.status-badge.blue {
    background: #d4e6f9;
    color: #0d6d9e;
}
.status-badge.gray {
    background: #eaecee;
    color: #7f8c8d;
}
.status-badge.red {
    background: #fadbd8;
    color: #c0392b;
}

/* ═══════════════════════════════════════════════════════════════════
   ÖZELLİKLER TABİ
   ═══════════════════════════════════════════════════════════════════ */
.properties-grid {
    padding: 16px;
}
.prop-group {
    margin-bottom: 20px;
}
.prop-group h3 {
    font-size: 13px;
    color: #2499cd;
    border-bottom: 2px solid #E1EBF8;
    padding-bottom: 6px;
    margin-bottom: 10px;
    font-weight: 700;
}
.prop-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.prop-row label {
    width: 140px;
    font-weight: 600;
    font-size: 12px;
    color: #7f8c8d;
    text-align: right;
    flex-shrink: 0;
}
.prop-row input {
    flex: 1;
    padding: 5px 8px;
    border: 1px solid #d5d9dd;
    border-radius: 3px;
    font-size: 12px;
    color: #2c3e50;
    background: #fafbfc;
}
.prop-row input:focus {
    outline: none;
    border-color: #2499cd;
    box-shadow: 0 0 0 2px rgba(52,152,219,0.15);
}

/* ═══════════════════════════════════════════════════════════════════
   BUTONLAR
   ═══════════════════════════════════════════════════════════════════ */
.btn-primary {
    padding: 6px 14px;
    background: #2499cd;
    color: #fff;
    border: 1px solid #1a7db1;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: background 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.btn-primary:hover {
    background: #1a7db1;
    color: #fff;
    text-decoration: none;
}
.btn-primary:disabled {
    background: #bdc3c7;
    border-color: #95a5a6;
    cursor: not-allowed;
}

.btn-secondary {
    padding: 6px 14px;
    background: #fff;
    color: #2c3e50;
    border: 1px solid #d5d9dd;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.btn-secondary:hover {
    background: #ecf0f1;
    text-decoration: none;
}

/* ═══════════════════════════════════════════════════════════════════
   MODALLER
   ═══════════════════════════════════════════════════════════════════ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.modal-content {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    width: 560px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}
.modal-content.modal-large {
    width: 900px;
    height: 80vh;
}
.modal-content.modal-small {
    width: 400px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid #e0e4e8;
}
.modal-header h2 {
    font-size: 15px;
    font-weight: 700;
    color: #2c3e50;
}
.modal-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #95a5a6;
    padding: 4px;
    border-radius: 3px;
}
.modal-close:hover {
    background: #ecf0f1;
    color: #2c3e50;
}

.modal-body {
    flex: 1;
    padding: 18px;
    overflow-y: auto;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 18px;
    border-top: 1px solid #e0e4e8;
}

/* ─── Upload Dropzone ─── */
.upload-target-info {
    margin-bottom: 14px;
    font-size: 12px;
}
.upload-target-info label {
    font-weight: 600;
    color: #7f8c8d;
}
.upload-target-info span {
    margin-left: 6px;
    color: #2c3e50;
    font-weight: 500;
}

.upload-dropzone {
    border: 2px dashed #bdc3c7;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    transition: all 0.2s;
    cursor: pointer;
}
.upload-dropzone:hover,
.upload-dropzone.dragover {
    border-color: #2499cd;
    background: #eaf2fb;
}
.dropzone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.dropzone-icon {
    font-size: 40px;
}
.dropzone-hint {
    color: #95a5a6;
    font-size: 12px;
}

/* ─── Upload Queue ─── */
.upload-queue {
    margin-top: 14px;
}
.upload-queue h3 {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #34495e;
}
.upload-queue-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    background: #f7f9fa;
    border-radius: 4px;
    margin-bottom: 4px;
}
.uq-icon { font-size: 16px; }
.uq-name { flex: 1; font-size: 12px; color: #2c3e50; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uq-size { font-size: 11px; color: #95a5a6; white-space: nowrap; }
.uq-progress {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 120px;
}
.progress-bar {
    flex: 1;
    height: 6px;
    background: #ecf0f1;
    border-radius: 3px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: #2499cd;
    border-radius: 3px;
    transition: width 0.3s;
}
.progress-text {
    font-size: 10px;
    color: #7f8c8d;
    width: 30px;
    text-align: right;
}
.uq-remove {
    padding: 2px 6px;
    border: none;
    background: none;
    cursor: pointer;
    color: #e74c3c;
    font-size: 14px;
    border-radius: 3px;
}
.uq-remove:hover {
    background: #fadbd8;
}

/* ─── Preview ─── */
.preview-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.preview-container iframe,
.preview-container img {
    width: 100%;
    height: 100%;
}
.preview-fallback {
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
}
.preview-icon {
    font-size: 64px;
    display: block;
    margin-bottom: 16px;
}
.preview-fallback h3 {
    color: #2c3e50;
    margin-bottom: 8px;
}
.preview-meta {
    margin-top: 16px;
    display: flex;
    gap: 20px;
    justify-content: center;
    font-size: 11px;
    color: #95a5a6;
}

/* ═══════════════════════════════════════════════════════════════════
   INTELLECT ITEM TOOLBAR (Kaydet / Yazdır / Online / Proka)
   ═══════════════════════════════════════════════════════════════════ */
.intellect-item-toolbar {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 5px 12px;
    background: #f2f5f8;
    border-bottom: 1px solid #c8d8ed;
    border-top: 1px solid #d8e4ef;
    flex-shrink: 0;
    margin: 0;
}
.iit-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 11px;
    border: 1px solid #b5c3d0;
    background: #fff;
    color: #2c3e50;
    font-size: 11px;
    font-weight: 600;
    border-radius: 2px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
    white-space: nowrap;
    line-height: 1.4;
}
.iit-btn:hover {
    background: #e8f0f8;
    border-color: #2499cd;
    color: #1a5f8a;
    text-decoration: none;
}
.iit-btn.major {
    background: #2499cd;
    color: #fff;
    border-color: #1a7db1;
}
.iit-btn.major:hover {
    background: #1a7db1;
    border-color: #1266a0;
}
.iit-btn.online {
    border-color: #27ae60;
    color: #1e8449;
}
.iit-btn.online:hover {
    background: #d5f5e3;
}
.iit-btn.proka-open {
    border-color: #2499cd;
    color: #1a7db1;
    background: #eaf4fb;
}
.iit-btn.proka-open:hover {
    background: #d6eaf8;
}
.iit-sep {
    width: 1px;
    height: 20px;
    background: #c8d8ed;
    margin: 0 4px;
    flex-shrink: 0;
}
.iit-spacer {
    flex: 1;
}

/* ─── Drive Bağlantı Modu Rozeti ─── */
.drive-mode-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid transparent;
    letter-spacing: 0.02em;
}
.drive-mode-badge i {
    font-size: 12px;
}
.drive-mode-local {
    background: #eaf4fb;
    color: #1a5f8a;
    border-color: #b5d8ef;
}
.drive-mode-online {
    background: #d5f5e3;
    color: #1e7a44;
    border-color: #a9dfc0;
}
.drive-mode-error {
    background: #fdedec;
    color: #a93226;
    border-color: #f1a9a0;
}
.drive-mode-connecting {
    background: #fef9e7;
    color: #7d6608;
    border-color: #f7dc6f;
}

/* ─── Buton İçi İkon Boşlukları ─── */
.gdrive-btn i,
.btn-primary i,
.btn-secondary i,
.iit-btn i {
    font-size: 11px;
    flex-shrink: 0;
}
.gdrive-btn i {
    font-size: 12px;
}

/* ═══════════════════════════════════════════════════════════════════
   BÖLÜM BAŞLIĞI ÇUBUĞU (Bilgi, Belge ve Yazışmalar)
   ═══════════════════════════════════════════════════════════════════ */
.section-title-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 14px;
    background: #E1EBF8;
    border-left: 3px solid #2499cd;
    border-bottom: 1px solid #c8d8ed;
    border-top: 1px solid #d8e4ef;
    font-size: 13px;
    font-weight: 700;
    color: #1a3a50;
    margin: 0 10px;
    flex-shrink: 0;
}
.section-title-bar > i {
    color: #2499cd;
    font-size: 14px;
}
.section-title-bar > span:first-of-type {
    flex: 0 0 auto;
    margin-right: 10px;
}
.section-tab {
    padding: 3px 10px;
    background: #c8d8ed;
    border-radius: 3px 3px 0 0;
    font-size: 11px;
    font-weight: 600;
    color: #5a7a90;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    margin-left: 2px;
}
.section-tab:hover {
    background: #b5c8df;
    color: #2c3e50;
}
.section-tab.section-tab-active {
    background: #2499cd;
    color: #fff;
}

/* ─── Dosya Listesi İkon Boyutları ─── */
.file-icon i {
    font-size: 16px;
    display: block;
    text-align: center;
}
.grid-icon i {
    font-size: 32px;
    display: block;
    text-align: center;
    padding: 8px 0;
}
.empty-icon i {
    font-size: 48px;
    display: block;
    margin-bottom: 8px;
}
.dropzone-icon i {
    font-size: 52px;
    color: #37baf4;
    display: block;
    margin-bottom: 10px;
}
.modal-header h2 i {
    font-size: 14px;
    margin-right: 4px;
    color: #2499cd;
}

/* ═══════════════════════════════════════════════════════════════════
   ALT BAR — Status Bar
   ═══════════════════════════════════════════════════════════════════ */
#AppPage_StatusBar {
    display: flex;
    justify-content: space-between;
    padding: 4px 14px;
    background: #34495e;
    color: #95a5a6;
    font-size: 10px;
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE AYARLAR
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 1200px) {
    #AppPage_ActivityInfo {
        display: none;
    }
}
@media (max-width: 900px) {
    #AppPage_SidePanelContents {
        display: none;
    }
    .app-tab {
        display: none;
    }
    .app-tab.active {
        display: inline;
    }
}
@media (max-width: 700px) {
    .modal-content {
        width: 95vw;
    }
    .modal-content.modal-large {
        width: 98vw;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   YAZDIR
   ═══════════════════════════════════════════════════════════════════ */
@media print {
    #AppPage_GlobalToolbar,
    #AppPage_SidePanelContents,
    #AppPage_ActivityInfo,
    #AppPage_StatusBar,
    .toolbar-right,
    .record-actions,
    .gdrive-toolbar,
    .sub-tab-bar {
        display: none !important;
    }
    #AppPage_MainContent {
        display: block;
    }
    #AppPage_ItemDetails {
        overflow: visible;
    }
}
