/* GeoProxy - Feature Info Window (Desktop Style) */

.feature-window {
    position: fixed;
    width: 800px;
    height: 500px;
    min-width: 400px;
    min-height: 300px;
    resize: both;
    overflow: hidden;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    display: none;
    z-index: 2000;
    flex-direction: column;
}

.feature-window.show {
    display: flex;
}

/* Header */
.feature-window-header {
    background: linear-gradient(to bottom, #f8f9fa 0%, #e9ecef 100%);
    padding: 10px 15px;
    border-bottom: 1px solid #dee2e6;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move;
    user-select: none;
}

.feature-window-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.feature-window-controls button {
    border: none;
    background: none;
    padding: 4px 8px;
    cursor: pointer;
    color: #666;
}

.feature-window-controls button:hover {
    color: #000;
}

/* Body - Split Layout */
.feature-window-body {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Left Panel - Tree */
.feature-tree-panel {
    width: 250px;
    border-right: 1px solid #dee2e6;
    overflow-y: auto;
    background: #f8f9fa;
}

.tree-item {
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid #e9ecef;
}

.tree-item:hover {
    background: #e9ecef;
}

.tree-item.selected {
    background: #0d6efd;
    color: white;
}

.tree-item.layer-node {
    font-weight: 600;
    background: #e9ecef;
}

.tree-item.feature-node {
    padding-left: 30px;
    font-size: 13px;
}

.tree-icon {
    font-size: 12px;
    width: 12px;
}

.tree-badge {
    margin-left: auto;
    background: #0d6efd;
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 10px;
}

/* Right Panel - Details */
.feature-details-panel {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

.details-header {
    background: #f8f9fa;
    padding: 8px 12px;
    border-bottom: 2px solid #0d6efd;
    margin-bottom: 15px;
    font-weight: 600;
}

.details-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.details-table th,
.details-table td {
    border: 1px solid #dee2e6;
    padding: 8px;
    text-align: left;
}

.details-table th {
    background: #f8f9fa;
    font-weight: 600;
    width: 35%;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

/* Overlay */
.feature-window-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    display: none;
    z-index: 1999;
}

.feature-window-overlay.show {
    display: block;
}

/* Resize handle */
.feature-window::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 20px;
    height: 20px;
    cursor: se-resize;
    background: linear-gradient(135deg, transparent 50%, #ccc 50%);
}

/* Mobil tam ekran */
@media (max-width: 576px) {
    .feature-window {
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        min-width: 0 !important;
        min-height: 0 !important;
        max-width: 100vw !important;
        max-height: 100vh !important;
        border-radius: 0 !important;
        resize: none;
    }

    .feature-window::after {
        display: none;
    }

    .feature-window-header {
        cursor: default !important;
        border-radius: 0 !important;
    }

    .feature-window-body {
        flex-direction: column;
    }

    .feature-tree-panel {
        width: 100% !important;
        max-height: 35vh;
        border-right: none;
        border-bottom: 1px solid #dee2e6;
    }

    .feature-details-panel {
        -webkit-overflow-scrolling: touch;
    }
}
