/* Genel Stiller */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1e7e34 0%, #155724 50%, #0d4a1a 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    width: 100%;
    min-height: 100vh;
}

/* Giriş Formu Stilleri */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-box h1 {
    color: #1e7e34;
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: 700;
}

.login-box h2 {
    color: #666;
    margin-bottom: 30px;
    font-weight: 400;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #1e7e34;
    box-shadow: 0 0 0 3px rgba(30, 126, 52, 0.1);
}

.login-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #1e7e34 0%, #155724 50%, #0d4a1a 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 126, 52, 0.4);
}

/* Ana Panel Stilleri */
.main-panel {
    min-height: 100vh;
    background: #f8f9fa;
}

.header {
    background: white;
    padding: 20px 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h1 {
    color: #1e7e34;
    font-size: 1.8em;
}

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

/* Header'daki Ayarlar Butonu - Çıkış butonu ile aynı tasarım, mavi */
.header-actions .settings-btn {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
    white-space: nowrap;
    width: auto;
    height: auto;
    border-radius: 8px;
    min-width: auto;
}

.header-actions .settings-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
    background: linear-gradient(135deg, #0056b3 0%, #007bff 100%);
}

.header-actions .settings-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.3);
}

.header-actions .logout-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
    white-space: nowrap;
    width: auto;
    height: auto;
    min-width: auto;
}

.header-actions .logout-btn:hover {
    background: linear-gradient(135deg, #c82333 0%, #dc3545 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

.header-actions .logout-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(220, 53, 69, 0.3);
}

.content {
    display: flex;
    min-height: calc(100vh - 80px);
}

/* Sidebar Stilleri */
.sidebar {
    width: 350px;
    background: white;
    padding: 20px;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    overflow-x: hidden;
    overflow-y: auto;
    flex-shrink: 0;
}

.sidebar h3 {
    color: #1e7e34;
    margin-bottom: 20px;
    font-size: 1.3em;
}

.action-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #1e7e34 0%, #155724 50%, #0d4a1a 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 20px;
    transition: transform 0.2s ease;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 126, 52, 0.4);
}

.customer-list {
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    overflow-x: hidden;
}

.customer-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.customer-item:hover {
    background: #e9ecef;
    border-color: #1e7e34;
    transform: translateX(5px);
}

.customer-item.selected {
    background: #1e7e34;
    color: white;
    border-color: #1e7e34;
}

.customer-item h4 {
    margin-bottom: 5px;
    font-size: 1.1em;
}

.customer-item p {
    font-size: 0.9em;
    opacity: 0.8;
}

/* Ana İçerik Stilleri */
.main-content {
    flex: 1;
    padding: 30px;
}

.customer-details {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.customer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.customer-details h3 {
    color: #1e7e34;
    font-size: 1.5em;
    margin: 0;
}

/* Küçük ayarlar butonu (customer-item içindeki) */
.customer-header .settings-btn,
.project-header .settings-btn {
    background: #1e7e34;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.customer-header .settings-btn:hover,
.project-header .settings-btn:hover {
    background: #155724;
    transform: rotate(90deg);
}

.projects-section h4 {
    color: #666;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.projects-list {
    margin-top: 20px;
}

.project-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.project-item:hover {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.project-item h5 {
    color: #1e7e34;
    margin-bottom: 10px;
    font-size: 1.1em;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.project-manage-btn {
    background: none;
    color: #6c757d;
    border: none;
    width: 30px;
    height: 30px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.project-manage-btn:hover {
    color: #495057;
    transform: translateX(3px);
}

.project-settings-btn {
    background: none;
    color: #6c757d;
    border: none;
    width: 30px;
    height: 30px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.project-settings-btn:hover {
    color: #495057;
    transform: rotate(90deg);
}

.project-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.detail-item {
    background: white;
    padding: 10px;
    border-radius: 6px;
    border-left: 4px solid #1e7e34;
}

.detail-item strong {
    color: #555;
    display: block;
    margin-bottom: 5px;
}

/* Modal Stilleri */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.large-modal .modal-content {
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content {
    background-color: white;
    margin: 3% auto;
    padding: 30px;
    border-radius: 15px;
    width: 95%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideIn 0.3s ease;
    /* Mobil için iyileştirmeler */
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 20px;
}

.close:hover {
    color: #000;
}

.modal h2 {
    color: #1e7e34;
    margin-bottom: 25px;
    font-size: 1.5em;
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #1e7e34 0%, #155724 50%, #0d4a1a 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    transition: transform 0.2s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 126, 52, 0.4);
}

/* Personel Listesi Stilleri */
.personnel-list {
    margin-bottom: 15px;
}

.personnel-item {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 10px;
    gap: 12px;
    flex-wrap: nowrap;
    min-width: 100%;
    width: 100%;
}

.personnel-item input {
    flex: 1;
    min-width: 160px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.personnel-item input[type="email"] {
    min-width: 200px;
    flex: 1.3;
}

.personnel-item input[type="password"] {
    min-width: 160px;
}

.personnel-item select {
    min-width: 160px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    flex: 0 0 auto;
}

.personnel-item .remove-personnel {
    flex: 0 0 auto;
    min-width: 60px;
}

.remove-personnel {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 12px;
}

.add-personnel-btn {
    background: #28a745;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 15px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

.add-personnel-btn:hover {
    background: #218838;
}

/* Kamera Yönetimi Stilleri */
.cameras-list {
    margin-bottom: 15px;
}

.camera-item {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 10px;
    gap: 10px;
}

.camera-item input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.camera-item input[type="text"] {
    min-width: 150px;
}

.camera-item input[type="url"] {
    flex: 2;
    min-width: 200px;
}

.remove-camera {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 12px;
}

.add-camera-btn {
    background: #17a2b8;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 15px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

.add-camera-btn:hover {
    background: #138496;
}

/* Animasyonlar */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Ayarlar Modal Stilleri */
.settings-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
}

.tab-btn {
    background: none;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.tab-btn.active {
    color: #1e7e34;
    border-bottom-color: #1e7e34;
}

.tab-btn:hover {
    color: #1e7e34;
}

.tab-content {
    display: none;
}

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

.delete-warning {
    text-align: center;
    padding: 20px;
}

.delete-warning h3 {
    color: #dc3545;
    margin-bottom: 15px;
}

.delete-warning p {
    margin-bottom: 10px;
    color: #666;
}

.delete-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.delete-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
}

.delete-btn:hover {
    background: #c82333;
}

.cancel-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
}

.cancel-btn:hover {
    background: #5a6268;
}

/* Blok Yönetimi Stilleri */
.blocks-container {
    margin-top: 15px;
}

.block-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    gap: 15px;
    align-items: center;
}

.block-item input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.block-item input[type="number"] {
    width: 100px;
}

/* Onay Popup'ı Stilleri */
.confirm-modal {
    max-width: 500px;
    text-align: center;
    padding: 30px;
}

.confirm-header h3 {
    color: #dc3545;
    margin-bottom: 20px;
    font-size: 1.5em;
}

.confirm-body {
    margin-bottom: 25px;
}

.confirm-body p {
    font-size: 1.1em;
    color: #333;
    margin-bottom: 15px;
}

.confirm-details {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
    text-align: left;
}

.confirm-details strong {
    color: #dc3545;
    display: block;
    margin-bottom: 5px;
}

.confirm-details ul {
    margin: 0;
    padding-left: 20px;
    color: #666;
}

.confirm-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.confirm-yes-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.confirm-yes-btn:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.4);
}

.confirm-no-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.confirm-no-btn:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 117, 125, 0.4);
}

/* Proje Yönetim Sayfası Stilleri */
.project-management-panel {
    min-height: 100vh;
    background: #f8f9fa;
}

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

.back-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: #5a6268;
    transform: translateX(-2px);
}

.project-management-content {
    padding: 30px;
}

.project-info-section {
    margin-bottom: 30px;
}

.project-info-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.project-info-card h3 {
    color: #1e7e34;
    margin-bottom: 20px;
    font-size: 1.8em;
}

.project-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #1e7e34;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-label {
    font-weight: 600;
    color: #666;
}

.stat-value {
    font-size: 1.2em;
    font-weight: 700;
    color: #1e7e34;
}

.management-tabs {
    display: flex;
    background: white;
    border-radius: 10px;
    padding: 5px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.management-tabs .tab-btn {
    flex: 1;
    padding: 12px 20px;
    background: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
}

.management-tabs .tab-btn.active {
    background: #1e7e34;
    color: white;
}

.management-tabs .tab-btn:hover {
    background: #155724;
    color: white;
}

.tab-content {
    display: none;
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.blocks-list, .personnel-management-list, .cameras-management-list {
    display: grid;
    gap: 15px;
}

.block-item-management {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.block-item-management:hover {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.block-name {
    font-size: 1.2em;
    font-weight: 600;
    color: #1e7e34;
}

.block-actions {
    display: flex;
    gap: 8px;
}

.block-action-btn {
    background: #17a2b8;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.block-action-btn:hover {
    background: #138496;
}

.personnel-item-management {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.personnel-item-management:hover {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.personnel-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.personnel-name {
    font-weight: 600;
    color: #1e7e34;
}

.personnel-role {
    color: #666;
    font-size: 0.9em;
}

.camera-item-management {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
}

.camera-item-management:hover {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.camera-name {
    font-weight: 600;
    color: #1e7e34;
    margin-bottom: 8px;
    display: block;
}

.camera-url {
    color: #666;
    font-size: 0.9em;
    word-break: break-all;
}

.progress-stats {
    margin-bottom: 30px;
}

.progress-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.progress-item h4 {
    color: #1e7e34;
    margin-bottom: 15px;
}

.progress-bar {
    background: #e9ecef;
    height: 20px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    margin-bottom: 10px;
}

.progress-fill {
    background: linear-gradient(90deg, #1e7e34, #28a745);
    height: 100%;
    transition: width 0.3s ease;
}

.progress-text {
    font-weight: 600;
    color: #1e7e34;
}

.blocks-progress-list {
    display: grid;
    gap: 15px;
}

.block-progress-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
}

.block-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.block-progress-name {
    font-weight: 600;
    color: #1e7e34;
}

.block-progress-percentage {
    color: #666;
    font-weight: 600;
}

.block-progress-bar {
    background: #e9ecef;
    height: 15px;
    border-radius: 8px;
    overflow: hidden;
}

.block-progress-fill {
    background: linear-gradient(90deg, #1e7e34, #28a745);
    height: 100%;
    transition: width 0.3s ease;
}

/* Şirket Kartları */
.company-card {
    background: white;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border-left: 4px solid #28a745;
}

.company-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #dee2e6;
}

.company-info {
    flex: 1;
}

.company-name {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 5px;
    font-weight: 700;
}

.company-count {
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 500;
}

.company-actions {
    display: flex;
    gap: 10px;
}

.edit-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.edit-btn:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

.realtors-list {
    padding: 15px 20px;
}

.realtor-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f8f9fa;
}

.realtor-item:last-child {
    border-bottom: none;
}

.realtor-info strong {
    color: #2c3e50;
    font-size: 1rem;
    display: block;
    margin-bottom: 3px;
}

.realtor-info small {
    color: #6c757d;
    font-size: 0.85rem;
}

/* Emlakçı Düzenleme */
.realtors-edit-container {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    background: #f8f9fa;
}

.edit-realtor-item {
    margin-bottom: 15px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.realtor-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr 1fr 1fr auto;
    gap: 10px;
    align-items: center;
    overflow-x: hidden;
}

.realtor-form-row input {
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 0.9rem;
}

.realtor-form-row .password-input-container {
    display: flex;
    position: relative;
}

.realtor-form-row .password-input-container input {
    padding-right: 30px;
}

.realtor-form-row input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.remove-realtor-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.remove-realtor-btn:hover {
    background: #c82333;
    transform: translateY(-1px);
}

.add-realtor-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.add-realtor-btn:hover {
    background: #218838;
    transform: translateY(-1px);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #dee2e6;
}

.cancel-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cancel-btn:hover {
    background: #5a6268;
}

/* Şifre Göz Simgesi */
.password-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-container input {
    width: 100%;
    padding-right: 35px;
}

.password-toggle {
    position: absolute;
    right: 10px;
    cursor: pointer;
    font-size: 1.1rem;
    user-select: none;
    color: #6c757d;
    transition: color 0.3s ease;
    z-index: 10;
}

.password-toggle:hover {
    color: #495057;
}

.password-toggle:active {
    transform: scale(0.95);
}

/* ========================================
   MOBİL RESPONSIVE TASARIM
   ======================================== */

/* Tablet ve Küçük Ekranlar (768px ve altı) */
@media (max-width: 768px) {
    .content {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .main-content {
        padding: 20px;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 20px;
    }
    
    .project-details {
        grid-template-columns: 1fr;
    }
    
    .personnel-item {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .personnel-item input,
    .personnel-item select {
        min-width: 140px;
        flex: 1;
    }
    
    .personnel-item input[type="email"] {
        min-width: 180px;
    }
}

@media (max-width: 480px) {
    .personnel-item {
        flex-direction: column;
        align-items: stretch;
    }
    
    .personnel-item input,
    .personnel-item select {
        width: 100%;
        margin-bottom: 8px;
    }
    
    .personnel-item .remove-personnel {
        width: 100%;
        margin-top: 5px;
    }
}

/* ========================================
   KAPSAMLI MOBİL RESPONSIVE - TÜM MODALLAR
   ======================================== */

/* Tablet (768px ve altı) */
@media (max-width: 768px) {
    /* Header Mobil */
    .header {
        flex-direction: column;
        gap: 15px;
        padding: 15px 20px;
    }
    
    .header h1 {
        font-size: 1.4em;
        text-align: center;
    }
    
    .header-actions {
        width: 100%;
        justify-content: center;
    }
    
    .header-actions .settings-btn,
    .header-actions .logout-btn {
        flex: 1;
        min-width: 140px;
        max-width: 200px;
        padding: 11px 18px;
        font-size: 14px;
    }
    
    .header h1 {
        font-size: 1.4em;
        text-align: center;
    }
    
    .header > div {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        width: 100%;
    }
    
    /* Modal İyileştirmeleri */
    .modal {
        padding: 10px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .modal-content {
        width: 100% !important;
        max-width: 100% !important;
        margin: 5% auto;
        padding: 20px 15px;
        border-radius: 10px;
        max-height: 95vh;
        overflow-y: auto;
        position: relative;
    }
    
    .large-modal .modal-content {
        width: 100% !important;
        max-width: 100% !important;
        margin: 2% auto;
        padding: 15px;
    }
    
    .modal h2 {
        font-size: 1.3em;
        margin-bottom: 20px;
        padding-right: 30px;
    }
    
    .close {
        font-size: 32px;
        top: 10px;
        right: 15px;
        z-index: 1001;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.9);
        border-radius: 50%;
    }
    
    /* Form İyileştirmeleri */
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-group label {
        font-size: 14px;
        margin-bottom: 6px;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 16px; /* iOS zoom önleme */
        padding: 12px;
        width: 100%;
    }
    
    .form-group textarea {
        min-height: 80px;
        resize: vertical;
    }
    
    /* Tab Sistemi Mobil */
    .settings-tabs,
    .management-tabs {
        flex-wrap: wrap;
        gap: 5px;
        padding: 5px;
    }
    
    .settings-tabs .tab-btn,
    .management-tabs .tab-btn {
        flex: 1 1 auto;
        min-width: 120px;
        padding: 10px 15px;
        font-size: 14px;
        white-space: nowrap;
    }
    
    .tab-content {
        padding: 15px 0;
    }
    
    /* Butonlar Mobil */
    .submit-btn,
    .action-btn,
    .login-btn {
        width: 100%;
        padding: 14px;
        font-size: 16px;
        min-height: 48px; /* Touch target */
    }
    
    /* Sidebar Mobil */
    .sidebar {
        width: 100%;
        max-height: none;
        padding: 15px;
        box-shadow: none;
        border-bottom: 1px solid #e9ecef;
    }
    
    .sidebar h3 {
        font-size: 1.2em;
        margin-bottom: 15px;
    }
    
    /* Customer List Mobil */
    .customer-list {
        max-height: 300px;
        overflow-y: auto;
    }
    
    .customer-item {
        padding: 12px;
        margin-bottom: 10px;
    }
    
    .customer-item h4 {
        font-size: 1.1em;
    }
    
    /* Project Details Mobil */
    .project-item {
        padding: 15px;
    }
    
    .project-item h5 {
        font-size: 1.2em;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .project-buttons {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .project-details {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .detail-item {
        padding: 12px;
    }
    
    /* Blocks Container Mobil */
    .blocks-container {
        padding: 10px;
    }
    
    .block-item {
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
    }
    
    .block-item input {
        width: 100%;
        margin-bottom: 10px;
    }
    
    /* Personnel Item Mobil */
    .personnel-item {
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
    }
    
    .personnel-item input,
    .personnel-item select {
        width: 100%;
        margin-bottom: 8px;
        min-width: auto;
    }
    
    .personnel-item .remove-personnel {
        width: 100%;
        margin-top: 5px;
        padding: 10px;
    }
    
    /* Camera Item Mobil */
    .camera-item {
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
    }
    
    .camera-item input {
        width: 100%;
        margin-bottom: 8px;
    }
    
    /* Confirm Modal Mobil */
    .confirm-modal {
        max-width: 100%;
        padding: 20px 15px;
    }
    
    .confirm-header h3 {
        font-size: 1.3em;
    }
    
    .confirm-body {
        font-size: 14px;
    }
    
    .confirm-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .confirm-yes-btn,
    .confirm-no-btn {
        width: 100%;
        min-height: 48px;
    }
    
    /* Login Box Mobil */
    .login-box {
        padding: 30px 20px;
        margin: 10px;
        max-width: 100%;
    }
    
    .login-box h1 {
        font-size: 2em;
    }
    
    .login-box h2 {
        font-size: 1em;
    }
    
    .password-input-container {
        position: relative;
    }
    
    .password-toggle {
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        cursor: pointer;
        font-size: 20px;
        padding: 5px;
        z-index: 10;
    }
    
    /* Project Management Panel Mobil */
    .project-management-panel .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 15px;
    }
    
    .header-left,
    .header-right {
        width: 100%;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .header-right {
        justify-content: flex-start;
    }
    
    .project-management-content {
        padding: 15px;
    }
    
    .project-stats {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    /* Customer Details Mobil */
    .customer-details {
        padding: 15px;
    }
    
    .customer-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    /* Company Card Mobil */
    .company-card {
        margin-bottom: 15px;
    }
    
    .company-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .company-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

/* Küçük Telefonlar (480px ve altı) */
@media (max-width: 480px) {
    /* Header Çok Küçük Ekranlar */
    .header h1 {
        font-size: 1.2em;
        line-height: 1.3;
    }
    
    /* Modal Çok Küçük Ekranlar */
    .modal-content {
        margin: 2% auto;
        padding: 15px 12px;
        border-radius: 8px;
        max-height: 98vh;
    }
    
    .modal h2 {
        font-size: 1.1em;
        margin-bottom: 15px;
    }
    
    .close {
        font-size: 28px;
        top: 8px;
        right: 12px;
        width: 36px;
        height: 36px;
    }
    
    /* Form Çok Küçük Ekranlar */
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 10px;
        font-size: 16px;
    }
    
    /* Butonlar Çok Küçük Ekranlar */
    .submit-btn,
    .action-btn {
        padding: 12px;
        font-size: 15px;
    }
    
    /* Login Box Çok Küçük Ekranlar */
    .login-box {
        padding: 25px 15px;
    }
    
    .login-box h1 {
        font-size: 1.8em;
    }
    
    /* Tab Butonları Çok Küçük Ekranlar */
    .settings-tabs .tab-btn,
    .management-tabs .tab-btn {
        padding: 8px 12px;
        font-size: 13px;
        min-width: 100px;
    }
    
    /* Project Item Çok Küçük Ekranlar */
    .project-item h5 span {
        font-size: 1em;
    }
    
    /* Customer Item Çok Küçük Ekranlar */
    .customer-item h4 {
        font-size: 1em;
    }
    
    .customer-item p {
        font-size: 0.85em;
    }
    
    /* Stats Çok Küçük Ekranlar */
    .stat-item {
        padding: 12px;
    }
    
    .stat-label {
        font-size: 0.9em;
    }
    
    .stat-value {
        font-size: 1.1em;
    }
}

/* Çok Küçük Ekranlar (360px ve altı) */
@media (max-width: 360px) {
    .header h1 {
        font-size: 1em;
    }
    
    .modal-content {
        padding: 12px 10px;
    }
    
    .modal h2 {
        font-size: 1em;
    }
    
    .login-box h1 {
        font-size: 1.5em;
    }
    
    .submit-btn,
    .action-btn {
        padding: 10px;
        font-size: 14px;
    }
}

/* Landscape Mod (Yatay) */
@media (max-height: 500px) and (orientation: landscape) {
    .modal-content {
        max-height: 90vh;
        margin: 2% auto;
        padding: 15px;
    }
    
    .login-box {
        max-height: 90vh;
        overflow-y: auto;
    }
}

/* Touch Device İyileştirmeleri */
@media (hover: none) and (pointer: coarse) {
    /* Touch için daha büyük butonlar */
    button,
    .action-btn,
    .submit-btn,
    .close {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Touch için daha iyi spacing */
    .form-group {
        margin-bottom: 18px;
    }
    
    /* Touch için scroll iyileştirmesi */
    .modal-content,
    .customer-list,
    .personnel-list {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }
}

/* Yüksek DPI Ekranlar */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .modal-content,
    .login-box {
        border: 0.5px solid rgba(0, 0, 0, 0.1);
    }
}

/* Dark Mode Desteği (İsteğe Bağlı) */
@media (prefers-color-scheme: dark) {
    /* Dark mode için özel stiller eklenebilir */
}
