/* AYDINLIK TEMA ZORLAMA - Admin maps için aydınlık tema zorla */
* {
    color-scheme: light !important;
}

body,
html,
.map-admin-container,
.modal,
.modal-content,
.card,
.map-card {
    background-color: #ffffff !important;
    color: #333333 !important;
}

/* ADMIN MAPS STİLLERİ */
.map-admin-container {
    min-height: 80vh;
    padding: 40px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.admin-header {
    text-align: center;
    margin-bottom: 50px;
}

.admin-title {
    color: #ed1c24;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.admin-subtitle {
    color: #6c757d;
    font-size: 1.1rem;
    margin-bottom: 0;
}

.map-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.map-card:hover {
    transform: translateY(-5px);
}

.map-card-header {
    background: linear-gradient(135deg, #ed1c24 0%, #c41e3a 100%);
    color: white;
    padding: 20px;
}

.map-card-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.map-card-description {
    opacity: 0.9;
    font-size: 0.9rem;
}

.map-card-body {
    padding: 20px;
}

.map-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.info-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
}

.info-label {
    font-size: 0.8rem;
    color: #6c757d;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 5px;
}

.info-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ed1c24;
}

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

.btn-action {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

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

.btn-primary:hover {
    background: #8b1520;
    color: white;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #1e7e34;
    color: white;
}

.btn-warning {
    background: #ffc107;
    color: #212529;
}

.btn-warning:hover {
    background: #e0a800;
    color: #212529;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
    color: white;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-active {
    background: #d4edda;
    color: #155724;
}

.status-inactive {
    background: #f8d7da;
    color: #721c24;
}

.add-map-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    border-radius: 15px;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

.add-map-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
    color: white;
    text-decoration: none;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.empty-state i {
    font-size: 4rem;
    color: #6c757d;
    margin-bottom: 20px;
}

.empty-state h3 {
    color: #ed1c24;
    margin-bottom: 10px;
}

.empty-state p {
    color: #6c757d;
    margin-bottom: 30px;
}

/* ÇETVEL (RULER) STİLLERİ */
.drawing-container {
    position: relative;
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    overflow: hidden;
    margin: 20px 0;
}

.ruler-horizontal {
    position: absolute;
    top: 0;
    left: 30px;
    right: 0;
    height: 30px;
    background: linear-gradient(90deg, #333 0%, #666 50%, #333 100%);
    border-bottom: 2px solid #000;
    z-index: 10;
}

.ruler-vertical {
    position: absolute;
    top: 30px;
    left: 0;
    bottom: 0;
    width: 30px;
    background: linear-gradient(180deg, #333 0%, #666 50%, #333 100%);
    border-right: 2px solid #000;
    z-index: 10;
}

.ruler-corner {
    position: absolute;
    top: 0;
    left: 0;
    width: 30px;
    height: 30px;
    background: #000;
    z-index: 15;
}

.ruler-markings {
    position: absolute;
    color: white;
    font-size: 10px;
    font-weight: bold;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.8);
}

.ruler-horizontal .ruler-markings {
    top: 5px;
    height: 20px;
    line-height: 20px;
}

.ruler-vertical .ruler-markings {
    left: 5px;
    width: 20px;
    text-align: center;
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

.drawing-canvas {
    position: absolute;
    top: 30px;
    left: 30px;
    background: white;
    cursor: crosshair;
    border: 1px solid #ccc;
}

.drawing-canvas.grid {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

.coordinate-display {
    position: absolute;
    top: 5px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    font-family: monospace;
    z-index: 20;
}

.drawing-tools {
    position: absolute;
    top: 5px;
    left: 40px;
    z-index: 20;
    display: flex;
    gap: 5px;
}

.tool-btn {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #ccc;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
}

.tool-btn.active {
    background: #ed1c24;
    color: white;
}

/* PROFESYONEL POPUP SİSTEMİ */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.popup-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    transform: scale(0.8) translateY(-50px);
    transition: all 0.3s ease;
}

.popup-overlay.show .popup-container {
    transform: scale(1) translateY(0);
}

.popup-header {
    padding: 25px 30px 15px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 15px;
}

.popup-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    flex-shrink: 0;
}

.popup-icon.success {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.popup-icon.error {
    background: linear-gradient(135deg, #dc3545, #e74c3c);
}

.popup-icon.warning {
    background: linear-gradient(135deg, #ffc107, #f39c12);
}

.popup-icon.info {
    background: linear-gradient(135deg, #ed1c24, #ed1c24);
}

.popup-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

.popup-body {
    padding: 20px 30px;
}

.popup-message {
    font-size: 1rem;
    line-height: 1.6;
    color: #495057;
    margin-bottom: 20px;
}

.popup-details {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    border-left: 4px solid #dee2e6;
}

.popup-details.error {
    border-left-color: #dc3545;
    background: #fff5f5;
}

.popup-details.success {
    border-left-color: #28a745;
    background: #f0fff4;
}

.popup-details.warning {
    border-left-color: #ffc107;
    background: #fffbf0;
}

.popup-details.info {
    border-left-color: #ed1c24;
    background: #f0f9ff;
}

.popup-details-title {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.popup-details-content {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: #6c757d;
    white-space: pre-wrap;
}

.popup-footer {
    padding: 15px 30px 25px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.popup-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.popup-btn-primary {
    background: linear-gradient(135deg, #ed1c24, #c41e3a);
    color: white;
}

.popup-btn-primary:hover {
    background: linear-gradient(135deg, #c41e3a, #a01a2e);
    transform: translateY(-1px);
}

.popup-btn-secondary {
    background: #6c757d;
    color: white;
}

.popup-btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.popup-btn-success {
    background: linear-gradient(135deg, #28a745, #1e7e34);
    color: white;
}

.popup-btn-success:hover {
    background: linear-gradient(135deg, #1e7e34, #155724);
    transform: translateY(-1px);
}

.popup-btn-danger {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
}

.popup-btn-danger:hover {
    background: linear-gradient(135deg, #c82333, #bd2130);
    transform: translateY(-1px);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: #6c757d;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.popup-close:hover {
    background: #f8f9fa;
    color: #495057;
}

/* Animasyonlar */
@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-50px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes popupSlideOut {
    from {
        opacity: 1;
        transform: scale(1) translateY(0);
    }

    to {
        opacity: 0;
        transform: scale(0.8) translateY(-50px);
    }
}

/* ============================================
   BOTTOM TOOLBAR - MODERN GLASSMORPHISM DESIGN
   ============================================ */

.bottom-toolbar {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;

    /* Modern Glassmorphism Effect */
    background: linear-gradient(135deg,
            rgba(44, 62, 80, 0.95) 0%,
            rgba(52, 73, 94, 0.98) 50%,
            rgba(44, 62, 80, 0.95) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);

    /* Premium Border & Shadow */
    border-top: 4px solid transparent;
    border-image: linear-gradient(90deg, #ed1c24, #ff6b35, #ed1c24) 1;
    box-shadow:
        0 -8px 32px rgba(0, 0, 0, 0.4),
        0 -2px 8px rgba(237, 28, 36, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);

    /* Animation */
    z-index: 9999 !important;
    transform: translateY(100%);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: block !important;
}

.bottom-toolbar.show {
    transform: translateY(0) !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.bottom-toolbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(237, 28, 36, 0.5) 50%,
            transparent 100%);
}

.bt-content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 40px;
    max-width: 1400px;
    margin: 0 auto;
    gap: 20px;
}

.bt-info {
    display: none;
    /* Simplified - only show buttons */
}

.bt-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

/* ============================================
   MODERN BUTTON STYLES
   ============================================ */

.bt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    min-width: 120px;
    position: relative;
    overflow: hidden;

    /* Smooth transitions */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Text shadow for depth */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);

    /* Subtle inner shadow */
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.bt-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent);
    transition: left 0.5s ease;
}

.bt-btn:hover::before {
    left: 100%;
}

.bt-btn i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.bt-btn:hover:not(:disabled) i {
    transform: scale(1.15);
}

.bt-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    filter: grayscale(50%);
}

/* Primary Button - Edit */
.bt-btn-primary {
    background: linear-gradient(135deg, #ed1c24 0%, #ff4757 100%);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.bt-btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #ff4757 0%, #ed1c24 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 8px 24px rgba(237, 28, 36, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.bt-btn-primary:active:not(:disabled) {
    transform: translateY(-1px) scale(0.98);
}

/* Secondary Buttons - Move, Resize */
.bt-btn-secondary {
    background: linear-gradient(135deg, #5f6c7b 0%, #7f8c8d 100%);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.bt-btn-secondary:hover:not(:disabled) {
    background: linear-gradient(135deg, #7f8c8d 0%, #95a5a6 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 8px 24px rgba(127, 140, 141, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Info Button - Duplicate */
.bt-btn-info {
    background: linear-gradient(135deg, #3498db 0%, #5dade2 100%);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.bt-btn-info:hover:not(:disabled) {
    background: linear-gradient(135deg, #5dade2 0%, #3498db 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 8px 24px rgba(52, 152, 219, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Warning Button - Image */
.bt-btn-warning {
    background: linear-gradient(135deg, #f39c12 0%, #f1c40f 100%);
    color: #2c3e50;
    border: 2px solid rgba(255, 255, 255, 0.1);
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

.bt-btn-warning:hover:not(:disabled) {
    background: linear-gradient(135deg, #f1c40f 0%, #f39c12 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 8px 24px rgba(243, 156, 18, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Danger Button - Delete */
.bt-btn-danger {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.bt-btn-danger:hover:not(:disabled) {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 8px 24px rgba(231, 76, 60, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Success Button */
.bt-btn-success {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.bt-btn-success:hover:not(:disabled) {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 8px 24px rgba(39, 174, 96, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Cancel Button */
.bt-btn-cancel {
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.15);
}

.bt-btn-cancel:hover:not(:disabled) {
    background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 8px 24px rgba(44, 62, 80, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Divider */
.bt-divider {
    width: 2px;
    height: 40px;
    background: linear-gradient(180deg,
            transparent 0%,
            rgba(255, 255, 255, 0.2) 50%,
            transparent 100%);
    margin: 0 8px;
    border-radius: 2px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .map-admin-container {
        padding: 20px 15px;
    }

    .admin-title {
        font-size: 2rem;
    }

    .map-info {
        grid-template-columns: 1fr;
    }

    .map-actions {
        flex-direction: column;
    }

    .btn-action {
        width: 100%;
        text-align: center;
    }

    .drawing-container {
        margin: 10px 0;
    }

    .coordinate-display {
        font-size: 10px;
        padding: 3px 6px;
    }

    .bt-content {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }

    .bt-actions {
        flex-wrap: wrap;
        justify-content: center;
    }

    .bt-btn {
        min-width: 80px;
        padding: 8px 12px;
        font-size: 0.8rem;
    }
}