/* ============================================
   Layout - 3-Panel Structure
   ============================================ */

.app {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

/* ============================================
   Header
   ============================================ */

.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 0 20px;
    flex-shrink: 0;
    z-index: 100;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-text {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

.project-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 20px;
    border-left: 1px solid #e5e7eb;
}

.project-name {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.project-type {
    font-size: 12px;
    padding: 2px 8px;
    background: #dbeafe;
    color: #1e40af;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 600;
}

.header-center {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.zoom-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    background: #f9fafb;
    border-radius: 6px;
}

.zoom-level {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    min-width: 45px;
    text-align: center;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    justify-content: flex-end;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5568d3;
}

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
}

.btn-secondary:hover {
    background: #e5e7eb;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    color: #6b7280;
    transition: all 0.2s;
}

.btn-icon:hover {
    background: #f3f4f6;
    color: #374151;
}

/* ============================================
   Main Content: 3-Panel Layout
   ============================================ */

.app-main {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Left Panel */
.left-panel {
    width: 300px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-right: 1px solid #e5e7eb;
}

/* Center Panel (Canvas) */
.center-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #f9fafb;
    overflow: hidden;
}

/* Right Panel */
.right-panel {
    width: 320px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-left: 1px solid #e5e7eb;
}

/* ============================================
   Panel Common Styles
   ============================================ */

.panel {
    overflow: hidden;
}

.panel-header {
    flex-shrink: 0;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.panel-title {
    padding: 16px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}

.panel-tabs {
    display: flex;
    padding: 0 12px;
}

.panel-tabs .tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.panel-tabs .tab:hover {
    color: #374151;
    background: #f9fafb;
}

.panel-tabs .tab.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.panel-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ============================================
   Loading Screen
   ============================================ */

.loading-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-screen p {
    font-size: 16px;
    font-weight: 500;
}

/* ============================================
   Responsive (min 1280px required)
   ============================================ */

@media (max-width: 1279px) {
    body::before {
        content: 'Minimum 1280px ekran genişliği gereklidir';
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: #1f2937;
        color: white;
        font-size: 18px;
        z-index: 99999;
    }

    .app {
        display: none;
    }
}
