/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --border-color: #e2e8f0;
    --text-color: #334155;
    --text-light: #64748b;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--light-color);
}

/* Login Page Styles */
.login-page {
    min-height: 100vh;
    display: flex;
    background: #0f172a;
}

.login-wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* Sol Panel - Marka */
.login-brand-panel {
    flex: 1;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #0ea5e9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 40px;
}

.brand-content {
    text-align: center;
    color: white;
    position: relative;
    z-index: 2;
}

.brand-logo {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.brand-logo i {
    font-size: 48px;
    color: white;
}

.brand-content h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.brand-content > p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 50px;
}

.brand-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.brand-features .feature {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.1);
    padding: 16px 24px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.brand-features .feature:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(10px);
}

.brand-features .feature i {
    font-size: 22px;
    width: 30px;
}

.brand-features .feature span {
    font-size: 15px;
    font-weight: 500;
}

/* Arka plan şekilleri */
.brand-bg-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.brand-bg-shapes .shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.shape-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
}

.shape-2 {
    width: 300px;
    height: 300px;
    bottom: -50px;
    left: -50px;
}

.shape-3 {
    width: 200px;
    height: 200px;
    bottom: 30%;
    right: 10%;
}

/* Sağ Panel - Form */
.login-form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    padding: 40px;
}

.login-box {
    width: 100%;
    max-width: 420px;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-header h2 {
    font-size: 32px;
    color: #1e293b;
    margin-bottom: 8px;
    font-weight: 700;
}

.login-header p {
    font-size: 16px;
    color: #64748b;
}

.login-form {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.login-form .form-group {
    margin-bottom: 24px;
}

.login-form .form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.login-form .form-group label i {
    color: #3b82f6;
}

.login-form .form-group input[type="text"],
.login-form .form-group input[type="password"] {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #f9fafb;
}

.login-form .form-group input::placeholder {
    color: #9ca3af;
}

.login-form .form-group input:focus {
    outline: none;
    border-color: #3b82f6;
    background: white;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.form-options .checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #6b7280;
}

.form-options .checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #3b82f6;
}

.forgot-link {
    font-size: 14px;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.forgot-link:hover {
    color: #1d4ed8;
}

.btn-login {
    width: 100%;
    padding: 16px 32px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
}

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

.btn-login:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-login i {
    transition: transform 0.3s;
}

.btn-login:hover i {
    transform: translateX(5px);
}

.login-footer {
    text-align: center;
    margin-top: 30px;
}

.login-footer p {
    font-size: 13px;
    color: #9ca3af;
}

/* Responsive */
@media (max-width: 900px) {
    .login-wrapper {
        flex-direction: column;
    }
    
    .login-brand-panel {
        padding: 40px 20px;
        min-height: auto;
    }
    
    .brand-content h1 {
        font-size: 32px;
    }
    
    .brand-features {
        display: none;
    }
    
    .login-form-panel {
        padding: 30px 20px;
    }
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
    font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"],
.form-control,
select.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: white;
}

.form-group input:focus,
.form-control:focus,
select.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group input[readonly],
.form-control[readonly] {
    background-color: #f1f5f9;
    cursor: not-allowed;
    color: var(--text-light);
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    cursor: pointer;
}

.checkbox-label span {
    user-select: none;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #475569;
}

.btn-block {
    width: 100%;
}

.btn-icon {
    padding: 10px;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    border-radius: 8px;
    width: 40px;
    height: 40px;
}

.btn-icon:hover {
    background-color: var(--light-color);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-text {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-text:hover {
    background-color: var(--light-color);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-text i {
    font-size: 14px;
}

.login-footer {
    padding: 20px;
    text-align: center;
    border-top: 1px solid var(--border-color);
    color: var(--text-light);
    font-size: 12px;
}

/* Dashboard Header */
.dashboard-header {
    background: white;
    border-bottom: 1px solid var(--border-color);
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
    z-index: 1000;
    position: relative;
}

.header-left h1 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-left h1 i {
    color: var(--primary-color);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-menu {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.username {
    font-size: 14px;
    color: var(--text-color);
    font-weight: 500;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    min-width: 180px;
    display: none;
    z-index: 1000;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: var(--text-color);
    text-decoration: none;
    transition: background-color 0.2s;
    font-size: 14px;
}

.dropdown-menu a:hover {
    background-color: var(--light-color);
}

.dropdown-menu a i {
    width: 16px;
    color: var(--text-light);
}

/* Dashboard Main */
.dashboard-main {
    position: relative;
    height: calc(100vh - 60px);
    overflow: hidden;
}

.map-container {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Panels */
.panel {
    position: absolute;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    z-index: 900;
    transition: all 0.3s ease;
}

.panel-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
}

.btn-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-light);
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.btn-close:hover {
    color: var(--text-color);
}

.panel-body {
    padding: 20px;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

.panel-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
}

/* Map Type Panel */
.map-type-panel {
    top: 80px;
    right: 20px;
    width: 280px;
    max-height: calc(100vh - 120px);
    display: none;
}

.map-type-panel.show {
    display: block;
}

.map-type-panel.collapsed {
    width: 50px;
}

.map-type-panel.collapsed .panel-body,
.map-type-panel.collapsed .panel-header h3,
.map-type-panel.collapsed .btn-close {
    display: none;
}

.map-type-list {
    list-style: none;
}

.map-type-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 4px;
}

.map-type-item:hover {
    background-color: var(--light-color);
}

.map-type-item.active {
    background-color: #e0e7ff;
    color: var(--primary-color);
    font-weight: 500;
}

.map-type-thumbnail {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #f3e8ff 0%, #ddd6fe 100%);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    flex-shrink: 0;
}

.btn-collapse {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 8px;
    font-size: 14px;
    transition: color 0.2s;
}

.btn-collapse:hover {
    color: var(--text-color);
}

/* Filter Panel */
.filter-panel {
    top: 80px;
    left: 20px;
    width: 320px;
    max-height: calc(100vh - 120px);
    display: none;
}

.filter-panel.show {
    display: block;
}

/* Portfolio List Panel */
.portfolio-list-panel {
    top: 80px;
    right: 20px;
    width: 900px;
    max-height: calc(100vh - 120px);
    display: none;
    flex-direction: column;
}

.portfolio-list-panel.show {
    display: flex;
}

.portfolio-list-panel.collapsed {
    width: 400px;
}

.portfolio-list-panel.expanded {
    width: 95%;
    max-width: 1400px;
    right: 2.5%;
}

.panel-header-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn-resize {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 4px 8px;
    font-size: 16px;
    transition: opacity 0.2s;
    opacity: 0.8;
}

.btn-resize:hover {
    opacity: 1;
}

.portfolio-list-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
    padding: 16px;
}

.portfolio-search-box {
    position: relative;
    margin-bottom: 16px;
}

.portfolio-search-box input {
    padding-right: 40px;
}

.portfolio-search-box i {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    pointer-events: none;
}

.portfolio-table-container {
    flex: 1;
    overflow: auto;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.portfolio-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.portfolio-table thead {
    background-color: var(--light-color);
    position: sticky;
    top: 0;
    z-index: 10;
}

.portfolio-table th {
    padding: 12px 8px;
    text-align: left;
    font-weight: 600;
    color: var(--text-color);
    border-bottom: 2px solid var(--border-color);
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
}

.portfolio-table th.sortable {
    position: relative;
    padding-right: 24px;
}

.portfolio-table th.sortable i {
    position: absolute;
    right: 8px;
    color: var(--text-light);
    font-size: 12px;
}

.portfolio-table th.sortable.sort-asc i.fa-sort:before {
    content: "\f0de";
    color: var(--primary-color);
}

.portfolio-table th.sortable.sort-desc i.fa-sort:before {
    content: "\f0dd";
    color: var(--primary-color);
}

.portfolio-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background-color 0.2s;
}

.portfolio-table tbody tr:hover {
    background-color: var(--light-color);
}

.portfolio-table tbody tr.selected {
    background-color: #e0e7ff;
}

.portfolio-table td {
    padding: 10px 8px;
    color: var(--text-color);
    white-space: nowrap;
}

.portfolio-table td:first-child {
    font-weight: 600;
    color: var(--primary-color);
}

.portfolio-list-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.portfolio-list-empty i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.portfolio-list-empty p {
    font-size: 14px;
    margin: 0;
}

.portfolio-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.portfolio-pagination button {
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    background: white;
    color: var(--text-color);
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.portfolio-pagination button:hover:not(:disabled) {
    background-color: var(--light-color);
    border-color: var(--primary-color);
}

.portfolio-pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.portfolio-pagination button.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.filter-section {
    margin-bottom: 24px;
}

.filter-section:last-child {
    margin-bottom: 0;
}

.filter-section h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-color);
}

.checkbox-group,
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.checkbox-label,
.radio-label {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
    font-weight: normal;
    user-select: none;
}

.checkbox-label:hover,
.radio-label:hover {
    background-color: var(--light-color);
}

.radio-label input[type="radio"] {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    cursor: pointer;
}

.radio-label input[type="radio"]:checked + span {
    font-weight: 500;
    color: var(--primary-color);
}

/* Context Menu */
.context-menu {
    position: absolute;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    z-index: 2000;
    display: none;
    min-width: 220px;
    max-height: 400px;
    overflow-y: auto;
}

.context-menu.show {
    display: block;
}

.context-menu-list {
    list-style: none;
}

.context-menu-item {
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.2s;
    font-size: 14px;
    color: var(--text-color);
}

.context-menu-item:hover {
    background-color: var(--light-color);
}

.context-menu-item.active {
    background-color: #e0e7ff;
    color: var(--primary-color);
    font-weight: 500;
}

.context-menu-item i {
    width: 16px;
    color: var(--text-light);
}

.context-menu-item.active i {
    color: var(--primary-color);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 3000;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-dialog {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
}

.form-section {
    margin-bottom: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.parsel-bilgi-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.parsel-bilgi-section h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-color);
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-label {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 500;
}

.info-value {
    font-size: 14px;
    color: var(--text-color);
}

.info-highlight {
    color: var(--danger-color);
    font-weight: 600;
}

/* Status Bar */
.status-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(30, 41, 59, 0.95);
    color: white;
    padding: 8px 20px;
    display: flex;
    gap: 20px;
    font-size: 12px;
    font-family: 'Courier New', monospace;
    z-index: 800;
}

.status-bar span {
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-color);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .map-type-panel,
    .filter-panel {
        width: calc(100% - 40px);
        max-width: 320px;
    }
    
    .portfolio-list-panel {
        width: calc(100% - 40px);
        max-width: 900px;
        right: 10px;
    }
    
    .portfolio-list-panel.expanded {
        width: calc(100% - 40px);
        right: 20px;
    }
    
    .btn-text {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .btn-text span {
        display: none;
    }
    
    .header-right {
        gap: 8px;
    }
    
    .username {
        display: none;
    }
    
    .status-bar {
        flex-wrap: wrap;
        font-size: 10px;
        padding: 6px 10px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
}

