﻿:root {
    --primary-color: #FF6B35;
    --secondary-color: #004E89;
    --accent-color: #F77F00;
    --dark-bg: #1A1A2E;
    --success-color: #28a745;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    transition: all 0.3s ease;
}

/* ============================================
           PARTICLE BACKGROUND
        ============================================ */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

body.dark-theme #particles-js {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

/* ============================================
           PRELOADER
        ============================================ */
.preloader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

    .preloader-overlay.active {
        display: flex;
    }

.preloader-content {
    text-align: center;
    color: white;
}

.preloader-mini {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: rgba(0, 78, 137, 0.95);
    padding: 20px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    display: none;
    z-index: 9998;
    min-width: 200px;
}

    .preloader-mini.active {
        display: block;
        animation: slideInUp 0.3s ease;
    }

@keyframes slideInUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.preloader-mini .mini-content {
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
}

.preloader-text {
    font-size: 1.2rem;
    margin-top: 20px;
    font-weight: 600;
}

.spinner-1 {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.spinner-2 {
    display: flex;
    gap: 10px;
}

    .spinner-2 .dot {
        width: 15px;
        height: 15px;
        background: var(--accent-color);
        border-radius: 50%;
        animation: bounce 1.4s infinite ease-in-out both;
    }

        .spinner-2 .dot:nth-child(1) {
            animation-delay: -0.32s;
        }

        .spinner-2 .dot:nth-child(2) {
            animation-delay: -0.16s;
        }

.spinner-3 {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 60px;
}

    .spinner-3 .bar {
        width: 12px;
        background: var(--accent-color);
        animation: buildingGrow 1.2s ease-in-out infinite;
    }

        .spinner-3 .bar:nth-child(1) {
            animation-delay: 0s;
        }

        .spinner-3 .bar:nth-child(2) {
            animation-delay: 0.2s;
        }

        .spinner-3 .bar:nth-child(3) {
            animation-delay: 0.4s;
        }

        .spinner-3 .bar:nth-child(4) {
            animation-delay: 0.6s;
        }

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

@keyframes buildingGrow {
    0%, 100% {
        height: 10px;
        opacity: 0.3;
    }

    50% {
        height: 60px;
        opacity: 1;
    }
}

/* ============================================
           LIVE NOTIFICATIONS
        ============================================ */
.notification-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
}

.notification {
    background: rgba(0, 78, 137, 0.95);
    backdrop-filter: blur(10px);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    animation: slideInRight 0.5s ease;
    border-left: 4px solid var(--accent-color);
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification-icon {
    font-size: 1.5rem;
    color: var(--accent-color);
}

/* ============================================
           NAVBAR
        ============================================ */
.top-navbar {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #003d6e 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: white !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .navbar-brand i {
        font-size: 2rem;
        color: var(--accent-color);
    }

.nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    padding: 1.2rem 1.5rem !important;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .nav-link:hover {
        background: rgba(255, 255, 255, 0.1);
        color: white !important;
        border-bottom-color: var(--accent-color);
    }

    .nav-link.active {
        background: rgba(255, 255, 255, 0.15);
        color: white !important;
        border-bottom-color: var(--accent-color);
    }

    .nav-link i {
        font-size: 1.3rem;
    }

.theme-toggle {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 0.5rem 1rem;
    margin-left: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    color: white;
    font-size: 1.2rem;
}

    .theme-toggle:hover {
        background: rgba(255, 255, 255, 0.2);
    }

.user-dropdown {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 0.5rem 1rem;
}

    .user-dropdown:hover {
        background: rgba(255, 255, 255, 0.2);
    }

/* ============================================
           DASHBOARD CONTAINER
        ============================================ */
.dashboard-container {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.welcome-section {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

    .welcome-section h2 {
        color: var(--secondary-color);
        font-weight: 700;
    }

    .welcome-section p {
        color: #6c757d;
        font-size: 1.1rem;
    }

/* ============================================
           3D STATS CARDS
        ============================================ */
.stats-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 5px solid;
    height: 100%;
    transform-style: preserve-3d;
}

    .stats-card:hover {
        transform: translateY(-10px) rotateX(5deg);
        box-shadow: 0 15px 45px rgba(0, 0, 0, 0.2);
    }

    .stats-card.primary {
        border-left-color: var(--primary-color);
    }

    .stats-card.secondary {
        border-left-color: var(--secondary-color);
    }

    .stats-card.accent {
        border-left-color: var(--accent-color);
    }

    .stats-card.success {
        border-left-color: var(--success-color);
    }

.stats-icon {
    width: 70px;
    height: 70px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin-bottom: 1rem;
}

    .stats-icon.primary {
        background: linear-gradient(135deg, var(--primary-color), #ff8c61);
    }

    .stats-icon.secondary {
        background: linear-gradient(135deg, var(--secondary-color), #006bb3);
    }

    .stats-icon.accent {
        background: linear-gradient(135deg, var(--accent-color), #ffaa4d);
    }

    .stats-icon.success {
        background: linear-gradient(135deg, var(--success-color), #50c878);
    }

.stats-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-bg);
    margin-bottom: 0.5rem;
}

.stats-label {
    color: #6c757d;
    font-size: 1rem;
    font-weight: 500;
}

/* ============================================
           TABLE CARDS
        ============================================ */
.table-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

    .table-card h4 {
        color: var(--secondary-color);
        font-weight: 700;
        margin-bottom: 1.5rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

.table thead {
    background: linear-gradient(135deg, var(--secondary-color), #003d6e);
    color: white;
}

    .table thead th {
        border: none;
        padding: 1rem;
        font-weight: 600;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    }

    .table thead td {
        border: 1px solid silver;
    }

.table tbody tr {
    transition: background 0.3s ease;
}

    .table tbody tr:hover {
        background: #f8f9fa;
        transform: scale(1.01);
    }

.badge-status {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
}
/* ============================================
           VIDEO MODAL & COMPARISON
        ============================================ */
.video-showcase {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

    .video-showcase img {
        width: 100%;
        transition: transform 0.3s ease;
    }

    .video-showcase:hover img {
        transform: scale(1.05);
    }

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

    .video-modal.active {
        display: flex;
    }

.video-modal-content {
    max-width: 90%;
    position: relative;
}

.video-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

.comparison-slider {
    position: relative;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

    .comparison-slider img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        position: absolute;
    }

.comparison-after {
    clip-path: polygon(0 0, var(--position, 50%) 0, var(--position, 50%) 100%, 0 100%);
}

.comparison-handle {
    position: absolute;
    left: var(--position, 50%);
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--accent-color);
    cursor: ew-resize;
    z-index: 10;
}

    .comparison-handle::before {
        content: '◄►';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: var(--accent-color);
        color: white;
        padding: 1rem;
        border-radius: 50%;
    }
/* ============================================
           MAP
        ============================================ */
#map {
    height: 400px;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
}
/* ============================================
           DARK THEME
        ============================================ */
body.dark-theme {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

    body.dark-theme .welcome-section,
    body.dark-theme .stats-card,
    body.dark-theme .table-card {
        background: #2d3548;
        color: #e0e0e0;
        box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
    }

        body.dark-theme .welcome-section h2,
        body.dark-theme .table-card h4 {
            color: var(--accent-color);
        }

        body.dark-theme .welcome-section p,
        body.dark-theme .stats-label {
            color: #b0b0b0;
        }

    body.dark-theme .stats-number {
        color: #ffffff;
    }

    body.dark-theme .table {
        color: #e0e0e0;
    }

        body.dark-theme .table tbody tr:hover {
            background: #3a4153;
        }

        body.dark-theme .table tbody td {
            border-color: #3a4153;
            color: #e0e0e0;
        }

    body.dark-theme .dropdown-menu {
        background: #2d3548;
    }

    body.dark-theme .dropdown-item {
        color: #e0e0e0;
    }

        body.dark-theme .dropdown-item:hover {
            background: var(--secondary-color);
        }
/* ============================================
           RESPONSIVE
        ============================================ */
@media (max-width: 768px) {
    .dashboard-container {
        padding: 1rem;
    }

    .stats-number {
        font-size: 2rem;
    }

    .notification-container {
        right: 10px;
        max-width: calc(100% - 20px);
    }
}



.nav-link.active {
    font-weight: 600;
    color: var(--accent-color) !important;
}

.dropdown-item.active {
    background-color: var(--accent-color);
    color: white;
}

/* ============================================
           MODERN DROPDOWN MENU STYLES
        ============================================ */
.dropdown-menu {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 0.8rem 0;
    margin-top: 0.5rem;
    min-width: 280px;
    backdrop-filter: blur(10px);
    animation: dropdownSlideIn 0.3s ease;
}

@keyframes dropdownSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    padding: 0.9rem 1.5rem;
    color: #2c3e50;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    position: relative;
    overflow: hidden;
}

    .dropdown-item i {
        font-size: 1.2rem;
        width: 24px;
        text-align: center;
        transition: all 0.3s ease;
    }

    .dropdown-item::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        width: 0;
        height: 100%;
        background: linear-gradient(90deg, rgba(0, 78, 137, 0.1) 0%, rgba(247, 127, 0, 0.05) 100%);
        transition: width 0.4s ease;
        z-index: -1;
    }

    .dropdown-item:hover {
        background: linear-gradient(90deg, rgba(0, 78, 137, 0.08) 0%, rgba(247, 127, 0, 0.08) 100%);
        color: var(--secondary-color);
        border-left-color: var(--accent-color);
        padding-left: 1.8rem;
        transform: translateX(3px);
    }

        .dropdown-item:hover::before {
            width: 100%;
        }

        .dropdown-item:hover i {
            color: var(--accent-color);
            transform: scale(1.15) rotate(5deg);
        }

    .dropdown-item.active {
        background: linear-gradient(135deg, var(--secondary-color) 0%, #003d6e 100%);
        color: white;
        border-left-color: var(--accent-color);
        box-shadow: 0 4px 15px rgba(0, 78, 137, 0.3);
    }

        .dropdown-item.active i {
            color: var(--accent-color);
        }

.dropdown-divider {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    margin: 0.5rem 1rem;
}

/* Dropdown için özel icon renkleri */
.dropdown-item:nth-child(1) i {
    color: #FF6B35;
}

.dropdown-item:nth-child(2) i {
    color: #004E89;
}

.dropdown-item:nth-child(3) i {
    color: #F77F00;
}

.dropdown-item:nth-child(4) i {
    color: #28a745;
}

.dropdown-item:nth-child(5) i {
    color: #6f42c1;
}

.dropdown-item:nth-child(6) i {
    color: #dc3545;
}

.dropdown-item:nth-child(7) i {
    color: #17a2b8;
}

/* Dark theme için dropdown stilleri */
body.dark-theme .dropdown-menu {
    background: linear-gradient(135deg, #2d3548 0%, #232a3b 100%);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

body.dark-theme .dropdown-item {
    color: #e0e0e0;
}

    body.dark-theme .dropdown-item:hover {
        background: linear-gradient(90deg, rgba(247, 127, 0, 0.15) 0%, rgba(0, 78, 137, 0.15) 100%);
        color: var(--accent-color);
    }

    body.dark-theme .dropdown-item.active {
        background: linear-gradient(135deg, var(--accent-color) 0%, #ff8c00 100%);
        color: white;
    }

body.dark-theme .dropdown-divider {
    border-top-color: rgba(255, 255, 255, 0.1);
}

/* Responsive dropdown */
@media (max-width: 768px) {
    .dropdown-menu {
        min-width: 250px;
        margin-top: 0.3rem;
    }

    .dropdown-item {
        padding: 0.7rem 1.2rem;
        font-size: 0.95rem;
    }

        .dropdown-item i {
            font-size: 1.1rem;
        }
}
/* Animasyon öğeleri için fallback */
/*.animate-element {
    opacity: 1 !important;
    transform: translateY(0) !important;
}*/

/* Sadece büyük ekranlarda animasyon uygula */
/*@media (min-width: 769px) {
    .animate-element {
        opacity: 1;
        transform: translateY(0);
    }
}*/