@keyframes blink1 {
    0% {
        opacity: 0.3;
    }

            50% {
                opacity: 1;
            }

            100% {
                opacity: 0.3;
            }
        }

        @keyframes blink2 {
            0% {
                opacity: 0.4;
            }

            30% {
                opacity: 1;
            }

            60% {
                opacity: 0.4;
            }

            70% {
                opacity: 0.8;
            }

            100% {
                opacity: 0.4;
            }
        }

        @keyframes blink3 {
            0% {
                opacity: 0.5;
            }

            40% {
                opacity: 1;
            }

            45% {
                opacity: 0.5;
            }

            50% {
                opacity: 0.8;
            }

            100% {
                opacity: 0.5;
            }
        }

        @keyframes blink4 {
            0% {
                opacity: 0.3;
            }

            35% {
                opacity: 0.8;
            }

            40% {
                opacity: 0.3;
            }

            90% {
                opacity: 1;
            }

            100% {
                opacity: 0.3;
            }
        }

        @keyframes blink {
            0% {
                opacity: 0.4;
            }

            50% {
                opacity: 1;
            }

            100% {
                opacity: 0.4;
            }
        }

        .server-unit.movable {
            cursor: ns-resize !important;
            user-select: none;
        }

        .server-unit.movable:hover {
            transform: scale(1.01);
            box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
        }

        .position-highlight {
            transition: all 0.3s ease;
        }

        .position-highlight.target {
            animation: pulse 1s infinite;
        }

        @keyframes pulse {
            0% {
                opacity: 0.3;
            }

            50% {
                opacity: 0.7;
            }

            100% {
                opacity: 0.3;
            }
        }

        .empty-slot {
            opacity: 0;
        }

        .empty-slot:hover {
            opacity: 1 !important;
            background: rgba(80, 205, 137, 0.1) !important;
            border: 2px dashed rgba(80, 205, 137, 0.5) !important;
        }

        /* Sürükleme sırasında tüm boş slotları göster */
        .server-unit.movable:active~.empty-slot,
        .server-unit.movable[dragging="true"]~.empty-slot {
            opacity: 0.5;
        }
                                            .switch {
                                        position: relative;
                                        display: inline-block;
                                        width: 60px;
                                        height: 34px;
                                    }

                                    .switch input {
                                        opacity: 0;
                                        width: 0;
                                        height: 0;
                                    }

                                    .slider {
                                        position: absolute;
                                        cursor: pointer;
                                        top: 0;
                                        left: 0;
                                        right: 0;
                                        bottom: 0;
                                        background-color: #ccc;
                                        transition: .4s;
                                    }

                                    .slider:before {
                                        position: absolute;
                                        content: "";
                                        height: 26px;
                                        width: 26px;
                                        left: 4px;
                                        bottom: 4px;
                                        background-color: white;
                                        transition: .4s;
                                    }

                                    input:checked+.slider {
                                        background-color: #2196F3;
                                    }

                                    input:checked+.slider:before {
                                        transform: translateX(26px);
                                    }

                                    .slider.round {
                                        border-radius: 34px;
                                    }

                                    .slider.round:before {
                                        border-radius: 50%;
                                    }

                                    .switch-label {
                                        display: block;
                                        margin-bottom: 5px;
                                        font-weight: bold;
                                    }

                                    .switch {
                                        position: relative;
                                        display: inline-block;
                                        width: 60px;
                                        height: 34px;
                                    }

                                    .switch input {
                                        opacity: 0;
                                        width: 0;
                                        height: 0;
                                    }

                                    .slider {
                                        position: absolute;
                                        cursor: pointer;
                                        top: 0;
                                        left: 0;
                                        right: 0;
                                        bottom: 0;
                                        background-color: #ccc;
                                        transition: .4s;
                                    }

                                    .slider:before {
                                        position: absolute;
                                        content: "";
                                        height: 26px;
                                        width: 26px;
                                        left: 4px;
                                        bottom: 4px;
                                        background-color: white;
                                        transition: .4s;
                                    }

                                    input:checked+.slider {
                                        background-color: #2196F3;
                                    }

                                    input:checked+.slider:before {
                                        transform: translateX(26px);
                                    }

                                    .slider.round {
                                        border-radius: 34px;
                                    }

                                    .slider.round:before {
                                        border-radius: 50%;
                                    }

                                    .switch-label {
                                        display: block;
                                        margin-bottom: 5px;
                                        font-weight: bold;
                                    }

/* Modern Widget Tasarımı */
.card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.1);
}

.card-header {
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
}

.card-body {
    padding: 1.5rem;
}

/* Widget Başlıkları */
.card-title {
    color: #ffffff;
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.text-gray-400 {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Widget İçerik Stilleri */
.table {
    color: rgba(255, 255, 255, 0.8);
}

.table th {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.table td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Widget Butonları */
.btn-light {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #ffffff;
    transition: all 0.3s ease;
}

.btn-light:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Widget İkonları */
.ki-duotone {
    color: rgba(255, 255, 255, 0.9);
}

/* Grafik Alanları */
.chart-container {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 1rem;
    margin: 1rem 0;
}

/* Widget Animasyonları */
@keyframes widgetFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

[id^="widget-"] {
    animation: widgetFadeIn 0.6s ease-out forwards;
}

[id^="widget-"]:nth-child(2) { animation-delay: 0.1s; }
[id^="widget-"]:nth-child(3) { animation-delay: 0.2s; }
[id^="widget-"]:nth-child(4) { animation-delay: 0.3s; }

/* Widget Düzenleme Modu */
.widget-draggable .card {
    cursor: move;
    transition: all 0.3s ease;
}

.widget-draggable .card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.widget-ghost {
    opacity: 0.5;
}

.widget-ghost .card {
    background: rgba(54, 153, 255, 0.05);
    border: 2px dashed rgba(54, 153, 255, 0.3);
}

/* Modern Widget İçerik Tasarımları */

/* Kalan Destek Widget */
#widget-kalan-destek .card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(14, 165, 233, 0.05) 100%);
}

#widget-kalan-destek .d-flex.fs-6 {
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

#widget-kalan-destek .d-flex.fs-6:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
}

#widget-kalan-destek .bullet {
    width: 10px !important;
    height: 10px !important;
    border-radius: 50% !important;
    position: relative;
}

#widget-kalan-destek .bullet::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: inherit;
    animation: pulse 2s infinite;
}

/* Network Uptime Widget */
#widget-network-uptime .card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(14, 165, 233, 0.05) 100%);
}

#widget-network-uptime .uptime-value {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(to right, #10b981, #0ea5e9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(16, 185, 129, 0.2);
}

/* Elektrik Takip Widget */
#widget-elektrik-takip .card {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05) 0%, rgba(239, 68, 68, 0.05) 100%);
}

#widget-elektrik-takip .fs-2hx {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(to right, #f59e0b, #ef4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* MikroTik ARP Widget */
#widget-mikrotik-arp .card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
}

#widget-mikrotik-arp .table tr {
    transition: all 0.3s ease;
}

#widget-mikrotik-arp .table tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Kabin Envanter Widget */
#widget-kabin-envanter .card {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.05) 0%, rgba(79, 70, 229, 0.05) 100%);
}

#widget-kabin-envanter .table {
    border-collapse: separate;
    border-spacing: 0 0.5rem;
}

#widget-kabin-envanter .table tr {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    transition: all 0.3s ease;
}

#widget-kabin-envanter .table tr:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
}

#widget-kabin-envanter .table td {
    padding: 1rem;
    border: none;
}

#widget-kabin-envanter .table td:first-child {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

#widget-kabin-envanter .table td:last-child {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

/* Kargo Takip Widget */
#widget-kargo-takip .card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(99, 102, 241, 0.05) 100%);
}

#widget-kargo-takip .timeline-item {
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 1.5rem;
}

#widget-kargo-takip .timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.1);
}

#widget-kargo-takip .timeline-point {
    position: absolute;
    left: -6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

/* KVM Erişim Widget */
#widget-kvm-erisim .card {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, rgba(236, 72, 153, 0.05) 100%);
}

#widget-kvm-erisim .access-item {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

#widget-kvm-erisim .access-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
}

/* DDoS Grafik Widget */
#widget-ddos-grafik .card {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.05) 0%, rgba(236, 72, 153, 0.05) 100%);
}

#widget-ddos-grafik .chart-container {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    margin: 1rem 0;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Ultra Modern Kabin Yerleşim Widget */
.ultra-modern-rack-widget {
    background: linear-gradient(135deg, 
        rgba(14, 165, 233, 0.12) 0%, 
        rgba(99, 102, 241, 0.08) 25%,
        rgba(236, 72, 153, 0.08) 75%,
        rgba(245, 158, 11, 0.06) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(20px) !important;
    position: relative;
    overflow: hidden;
}

.ultra-modern-rack-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.03),
        transparent
    );
    transition: 0.8s;
    z-index: 1;
}

.ultra-modern-rack-widget:hover::before {
    left: 100%;
}

.widget-icon-container {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 8px 25px rgba(102, 126, 234, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.widget-icon-container i {
    color: white;
    font-size: 24px;
    z-index: 2;
    position: relative;
}

.icon-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    animation: iconPulse 3s infinite;
}

@keyframes iconPulse {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 1; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.5; }
    100% { transform: translate(-50%, -50%) scale(1.8); opacity: 0; }
}

.rack-stats-container {
    display: flex;
    gap: 15px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.08) 0%, 
        rgba(255, 255, 255, 0.03) 100%);
    padding: 20px;
    border-radius: 16px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.rack-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.rack-stat-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #3699ff 0%, #6610f2 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
    box-shadow: 0 4px 15px rgba(54, 153, 255, 0.3);
}

.stat-icon i {
    color: white;
    font-size: 14px;
}

.stat-progress {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 5px;
}

.progress-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.8s ease;
    background: linear-gradient(90deg, #3699ff 0%, #6610f2 100%);
}

.free-progress {
    background: linear-gradient(90deg, #50cd89 0%, #1bc5bd 100%);
}

.temp-progress {
    background: linear-gradient(90deg, #ffc700 0%, #ff6b35 100%);
}

/* Kontrol Butonları */
.rack-controls {
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.control-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.control-btn.active {
    background: linear-gradient(135deg, #3699ff 0%, #6610f2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(54, 153, 255, 0.4);
}

/* Light Mode Overrides for Control Buttons */
[data-bs-theme="light"] .control-btn {
    background: rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.15);
    color: rgba(55, 65, 81, 0.7);
}

[data-bs-theme="light"] .control-btn:hover {
    background: rgba(0, 0, 0, 0.15);
    color: #1f2937;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.control-btn i {
    font-size: 16px;
    z-index: 2;
}

/* Görünüm Modu Seçici */
.view-mode-selector {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Light Mode Overrides for View Mode Selector */
[data-bs-theme="light"] .view-mode-selector {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.mode-tabs {
    display: flex;
    gap: 4px;
}

.mode-tab {
    flex: 1;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
}

.mode-tab:hover {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
}

.mode-tab.active {
    background: linear-gradient(135deg, #3699ff 0%, #6610f2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(54, 153, 255, 0.3);
}

/* Light Mode Overrides for Mode Tabs */
[data-bs-theme="light"] .mode-tab {
    color: rgba(0, 0, 0, 0.6);
}

[data-bs-theme="light"] .mode-tab:hover {
    background: rgba(0, 0, 0, 0.05);
    color: rgba(55, 65, 81, 0.8);
}

.mode-tab i {
    font-size: 14px;
}

/* Smart Rack Frame */
.smart-rack-frame {
    background: linear-gradient(135deg, 
        rgba(30, 35, 40, 0.8) 0%, 
        rgba(25, 30, 35, 0.9) 100%);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    box-shadow: 
        0 0 30px rgba(0, 0, 0, 0.5),
        inset 0 0 50px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

/* Kabin Üst Panel */
.rack-top-panel {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    height: 60px;
    background: linear-gradient(135deg, #1e2328 0%, #2a2d3a 100%);
    border-radius: 15px 15px 8px 8px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    z-index: 10;
}

.panel-lights {
    display: flex;
    gap: 12px;
    align-items: center;
}

.status-light {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    position: relative;
    transition: all 0.3s ease;
}

.status-light.active {
    box-shadow: 0 0 15px currentColor, inset 0 0 5px rgba(255, 255, 255, 0.3);
}

.power-light.active {
    background: #50cd89;
    color: #50cd89;
    animation: powerPulse 2s infinite;
}

.network-light.active {
    background: #3699ff;
    color: #3699ff;
    animation: networkBlink 1.5s infinite;
}

.cooling-light.active {
    background: #1bc5bd;
    color: #1bc5bd;
    animation: coolingFlow 3s infinite;
}

.alert-light {
    background: rgba(241, 65, 108, 0.3);
    color: #f1416c;
}

.alert-light.active {
    background: #f1416c;
    animation: alertBlink 0.8s infinite;
}

@keyframes powerPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

@keyframes networkBlink {
    0%, 80%, 100% { opacity: 1; }
    40% { opacity: 0.3; }
}

@keyframes coolingFlow {
    0%, 100% { opacity: 0.8; }
    33% { opacity: 1; }
    66% { opacity: 0.6; }
}

@keyframes alertBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.2; }
}

.panel-display {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.display-text {
    color: #3699ff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(54, 153, 255, 0.5);
}

.display-info {
    display: flex;
    gap: 15px;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

.display-info span {
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Ana Kabin Gövdesi */
.rack-main-body {
    position: relative;
    width: 100%;
    height: calc(100% - 30px);
    margin-top: 30px;
    background: linear-gradient(90deg, 
        rgba(43, 43, 64, 0.4) 0%, 
        rgba(43, 43, 64, 0.1) 50%, 
        rgba(43, 43, 64, 0.4) 100%);
    border-radius: 0 0 18px 18px;
    overflow: hidden;
}

/* Server Unit Hover Efektleri */
.server-unit {
    transition: all 0.3s ease !important;
    position: relative;
    z-index: 1;
}

.server-unit:hover {
    transform: scale(1.02) !important;
    z-index: 10;
    box-shadow: 
        0 0 20px rgba(54, 153, 255, 0.4),
        inset 0 0 15px rgba(0, 0, 0, 0.3) !important;
}

.server-unit[data-server-color="#50cd89"]:hover {
    box-shadow: 
        0 0 20px rgba(80, 205, 137, 0.6),
        inset 0 0 15px rgba(0, 0, 0, 0.3) !important;
}

.server-unit[data-server-color="#f1416c"]:hover {
    box-shadow: 
        0 0 20px rgba(241, 65, 108, 0.6),
        inset 0 0 15px rgba(0, 0, 0, 0.3) !important;
}

.server-unit[data-server-color="#ffc700"]:hover {
    box-shadow: 
        0 0 20px rgba(255, 199, 0, 0.6),
        inset 0 0 15px rgba(0, 0, 0, 0.3) !important;
}

.server-unit[data-server-color="#7239ea"]:hover {
    box-shadow: 
        0 0 20px rgba(114, 57, 234, 0.6),
        inset 0 0 15px rgba(0, 0, 0, 0.3) !important;
}

/* Taşınabilir sunucu stilleri */
.movable-server {
    position: relative;
    cursor: move !important;
    border: 2px solid rgba(54, 153, 255, 0.6) !important;
}

.movable-server::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #3699FF, #06d6a0, #3699FF);
    border-radius: 6px;
    opacity: 0.2;
    transition: opacity 0.3s ease;
    z-index: -1;
    animation: movableGlow 3s ease-in-out infinite;
}

.movable-server:hover::before {
    opacity: 0.4;
}

.movable-server::after {
    content: '⚡ TAŞINABILIR';
    position: absolute;
    top: 2px;
    right: 2px;
    color: #3699FF;
    font-size: 8px;
    font-weight: bold;
    opacity: 0.9;
    z-index: 10;
    background: rgba(0,0,0,0.7);
    padding: 1px 3px;
    border-radius: 2px;
}

@keyframes movableGlow {
    0%, 100% { 
        background: linear-gradient(45deg, #3699FF, #06d6a0, #3699FF);
    }
    50% { 
        background: linear-gradient(45deg, #06d6a0, #3699FF, #06d6a0);
    }
}

/* Drag & Drop stilleri */
.server-unit.dragging {
    opacity: 0.7;
    transform: scale(1.05);
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

.rack-drop-zone {
    position: absolute;
    width: calc(100% - 40px);
    left: 20px;
    height: calc(2.38% * 0.905);
    border: 2px dashed rgba(54, 153, 255, 0.5);
    border-radius: 4px;
    background: rgba(54, 153, 255, 0.1);
    opacity: 0.7;
    transition: all 0.3s ease;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3699FF;
    font-size: 10px;
    font-weight: bold;
    z-index: 100;
}

.rack-drop-zone.active {
    opacity: 1;
    border-color: #3699FF;
    background: rgba(54, 153, 255, 0.2);
}

.rack-drop-zone.invalid {
    border-color: #f1416c;
    background: rgba(241, 65, 108, 0.2);
}

/* Pozisyon göstergesi */
.position-indicator {
    position: absolute;
    left: -35px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(54, 153, 255, 0.9);
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.server-unit:hover .position-indicator {
    opacity: 1;
}

/* Network Switch Hover Efekti */
.network-switch-unit {
    transition: all 0.3s ease !important;
    position: relative;
    z-index: 1;
}

.network-switch-unit:hover {
    transform: scale(1.02) !important;
    z-index: 10;
    box-shadow: 
        0 0 20px rgba(54, 153, 255, 0.6),
        inset 0 0 15px rgba(0, 0, 0, 0.3) !important;
}

.stat-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 14px;
    color: white;
    font-weight: 700;
}

/* Light Mode Overrides for CSS stat classes */
[data-bs-theme="light"] .stat-label {
    color: rgba(55, 65, 81, 0.7);
}

[data-bs-theme="light"] .stat-value {
    color: #1f2937;
}

.rack-refresh-btn {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    transition: all 0.3s ease;
}

.rack-refresh-btn:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Modern Durum Göstergeleri */
.rack-legend-container {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    padding: 20px;
    margin-top: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.legend-title {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.legend-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.legend-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.legend-indicator {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.active-indicator {
    background: #50cd89;
    box-shadow: 0 0 10px rgba(80, 205, 137, 0.5);
}

.passive-indicator {
    background: #f1416c;
    box-shadow: 0 0 10px rgba(241, 65, 108, 0.5);
}

.maintenance-indicator {
    background: #ffc700;
    box-shadow: 0 0 10px rgba(255, 199, 0, 0.5);
}

.network-indicator {
    background: #3699ff;
    box-shadow: 0 0 10px rgba(54, 153, 255, 0.5);
}

.indicator-pulse {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: pulse-glow 2s infinite;
}

.indicator-blink {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: blink-warning 1s infinite;
}

.indicator-flow {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: flow-data 1.5s infinite;
}

.legend-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    font-weight: 500;
    flex: 1;
}

.legend-count {
    color: rgba(255, 255, 255, 0.6);
    font-size: 11px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

/* Light Mode Overrides for Legend */
[data-bs-theme="light"] .legend-text {
    color: rgba(55, 65, 81, 0.8);
}

[data-bs-theme="light"] .legend-count {
    color: rgba(55, 65, 81, 0.6);
    background: rgba(0, 0, 0, 0.1);
}

[data-bs-theme="light"] .legend-title {
    color: rgba(31, 41, 55, 0.9);
}

/* Animasyonlar */
@keyframes pulse-glow {
    0%, 100% { 
        opacity: 1;
        transform: scale(1);
    }
    50% { 
        opacity: 0.6;
        transform: scale(1.2);
    }
}

@keyframes blink-warning {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

@keyframes flow-data {
    0% { 
        opacity: 0.4;
        transform: scale(0.8);
    }
    50% { 
        opacity: 1;
        transform: scale(1.1);
    }
    100% { 
        opacity: 0.4;
        transform: scale(0.8);
    }
}

/* Bildirim Sistemi */
.rack-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, rgba(30, 35, 40, 0.95) 0%, rgba(25, 30, 35, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(15px);
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.rack-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.rack-notification.success {
    border-left: 4px solid #50cd89;
}

.rack-notification.info {
    border-left: 4px solid #3699ff;
}

.rack-notification.error {
    border-left: 4px solid #f1416c;
}

.rack-notification i {
    font-size: 16px;
}

.rack-notification.success i {
    color: #50cd89;
}

.rack-notification.info i {
    color: #3699ff;
}

.rack-notification.error i {
    color: #f1416c;
}

/* Görünüm Modu Efektleri */
.view-mode-thermal .server-unit {
    transition: all 0.5s ease;
}

.view-mode-power .server-unit {
    transition: all 0.5s ease;
}

.view-mode-3d .rack-container {
    perspective: 1000px;
}

.view-mode-3d .smart-rack-frame {
    transform: rotateX(5deg) rotateY(-3deg);
    transform-style: preserve-3d;
}

.view-mode-3d .server-unit {
    transform: translateZ(5px);
    transition: transform 0.5s ease;
}

.view-mode-3d .server-unit:hover {
    transform: translateZ(15px) scale(1.02);
}

/* Termal Görünüm Efektleri */
.thermal-mode {
    position: relative;
    overflow: visible !important;
}

.thermal-mode::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: inherit;
    border-radius: inherit;
    filter: blur(8px);
    opacity: 0.6;
    z-index: -1;
    pointer-events: none;
}

.thermal-mode:hover::after {
    opacity: 0.8;
    filter: blur(12px);
}

/* Güç Görünümü Efektleri */
.power-mode {
    position: relative;
    overflow: hidden;
}

.power-mode::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 193, 7, 0.1) 50%, 
        transparent 100%);
    animation: powerFlow 2s infinite;
    pointer-events: none;
    z-index: 1;
}

.power-mode:hover::before {
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 193, 7, 0.3) 50%, 
        transparent 100%);
    animation-duration: 1s;
}

/* 3D Mod Hover Efektleri */
.view-mode-3d .server-unit:hover {
    transform: translateZ(20px) scale(1.05) !important;
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.4),
        0 0 25px rgba(54, 153, 255, 0.6),
        inset 0 0 15px rgba(0, 0, 0, 0.3) !important;
}

/* Görünüm Modu Geçişleri */
.view-mode-thermal .server-unit {
    transition: all 0.5s ease !important;
}

.view-mode-power .server-unit {
    transition: all 0.5s ease !important;
}

.view-mode-3d .server-unit {
    transition: all 0.5s ease !important;
}

@keyframes powerFlow {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Responsive Düzenlemeler */
@media (max-width: 1200px) {
    .rack-stats-container {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .rack-stat-item {
        flex: 1;
        min-width: 120px;
    }
    
    .rack-controls {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .rack-stats-container {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
    }
    
    .rack-stat-item {
        padding: 12px;
    }
    
    .legend-items {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .widget-icon-container {
        width: 50px;
        height: 50px;
    }
    
    .widget-icon-container i {
        font-size: 20px;
    }
    
    .mode-tabs {
        flex-wrap: wrap;
        gap: 2px;
    }
    
    .mode-tab {
        flex: 1;
        min-width: 80px;
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .mode-tab span {
        display: none;
    }
    
    .rack-controls {
        gap: 4px;
    }
    
    .control-btn {
        width: 35px;
        height: 35px;
    }
    
    .control-btn i {
        font-size: 14px;
    }
    
    .rack-top-panel {
        height: 50px;
        padding: 0 15px;
    }
    
    .display-text {
        font-size: 10px;
    }
    
    .display-info {
        gap: 10px;
        font-size: 9px;
    }
    
    .rack-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        transform: translateY(-100px);
    }
    
    .rack-notification.show {
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .rack-container {
        height: 600px !important;
    }
    
    .rack-stats-container {
        padding: 10px;
    }
    
    .rack-stat-item {
        padding: 8px;
    }
    
    .stat-icon {
        width: 24px;
        height: 24px;
    }
    
    .stat-icon i {
        font-size: 12px;
    }
    
    .stat-value {
        font-size: 12px;
    }
    
    .stat-label {
        font-size: 10px;
    }
}

/* Genel Widget İyileştirmeleri */
.widget-value-change {
    animation: valueChange 0.5s ease;
}

@keyframes valueChange {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.widget-alert {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    padding: 1rem;
    margin: 1rem 0;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.widget-alert:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
}

.widget-status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 0.5rem;
    position: relative;
}

.widget-status-indicator::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: inherit;
    animation: pulse 2s infinite;
}

.widget-button {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    color: #fff;
    transition: all 0.3s ease;
}

.widget-button:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Responsive Düzenlemeler */
@media (max-width: 992px) {
    .card {
        margin-bottom: 1rem;
    }
    
    .card:hover {
        transform: none;
    }
}

/* Dark Mode Uyumluluğu */
[data-bs-theme="dark"] .card {
    background: rgba(30, 35, 40, 0.8);
}

[data-bs-theme="dark"] .table {
    color: rgba(255, 255, 255, 0.8);
}

[data-bs-theme="dark"] .btn-light {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
}

/* Özel Efektler */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.05),
        transparent
    );
    transition: 0.5s;
}

.card:hover::before {
    left: 100%;
}

/* Widget İstatistik Kartları */
.stat-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 1rem;
    margin: 0.5rem 0;
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Progress Barlar */
.progress {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    height: 6px;
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(90deg, #3699FF, #6610f2);
    border-radius: 10px;
    transition: all 0.5s ease;
}

/* Alert Stilleri */
.alert {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: 12px;
    padding: 1rem 1.5rem;
}

.alert-success {
    background: rgba(80, 205, 137, 0.1);
    border-left: 4px solid #50cd89;
}

.alert-warning {
    background: rgba(255, 199, 0, 0.1);
    border-left: 4px solid #ffc700;
}

.alert-danger {
    background: rgba(241, 65, 108, 0.1);
    border-left: 4px solid #f1416c;
}

/* Tooltip Stilleri */
.tooltip {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: #ffffff;
}

/* Badge Stilleri */
.badge {
    padding: 0.35em 0.65em;
    font-size: 0.75em;
    font-weight: 500;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-success {
    background: rgba(80, 205, 137, 0.1);
    color: #50cd89;
}

.badge-warning {
    background: rgba(255, 199, 0, 0.1);
    color: #ffc700;
}

.badge-danger {
    background: rgba(241, 65, 108, 0.1);
    color: #f1416c;
}

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

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Widget Boşluk Düzenlemeleri */
.row.gy-5 {
    --bs-gutter-y: 2rem;
}

.row.g-xl-10 {
    --bs-gutter-x: 2.5rem;
    --bs-gutter-y: 2.5rem;
}

/* Row Boşluk Düzenlemeleri */
.row + .row {
    margin-top: 2.5rem;
}

/* Widget Container Boşlukları */
[id^="widget-"] {
    margin-bottom: 0;
}

/* Özel Widget Boşlukları */
#widget-kalan-destek .card:first-child {
    margin-bottom: 2.5rem;
}

#widget-elektrik-takip .card {
    height: calc(100% - 1rem);
}

.widget-edit-mode .card {
    border: 1px solid rgba(54, 153, 255, 0.3);
    position: relative;
}

.widget-edit-mode .card:hover {
    border: 1px solid #3699FF;
}

.widget-edit-mode .card::before {
    content: '⋮⋮';
    position: absolute;
    top: 10px;
    right: 10px;
    color: #3699FF;
    font-size: 20px;
    opacity: 0.5;
    z-index: 1;
}

.sortable-drag {
    cursor: move;
}

.widget-placeholder {
    border: 2px dashed #3699FF;
    background-color: rgba(54, 153, 255, 0.1);
    margin: 10px;
    min-height: 100px;
}

/* Widget Boyut Kontrolleri */
.widget-resize-handles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.widget-resize-handle {
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: #3699FF;
    border: 2px solid #fff;
    border-radius: 50%;
    pointer-events: auto;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, background-color 0.2s ease;
    z-index: 101;
}

/* Widget üzerine gelindiğinde kontrol noktalarını göster */
.widget-draggable .card:hover .widget-resize-handles {
    opacity: 1;
}

/* Sürükleme sırasında kontrol noktalarını gizle */
.sortable-drag .widget-resize-handles,
.sortable-ghost .widget-resize-handles {
    display: none !important;
}

/* Boyut kontrol noktaları */
.resize-handle-nw { top: -6px; left: -6px; cursor: nw-resize; }
.resize-handle-ne { top: -6px; right: -6px; cursor: ne-resize; }
.resize-handle-sw { bottom: -6px; left: -6px; cursor: sw-resize; }
.resize-handle-se { bottom: -6px; right: -6px; cursor: se-resize; }

/* Kontrol noktaları hover efekti */
.widget-resize-handle:hover {
    transform: scale(1.2);
    background-color: #1bc5bd;
}

/* Boyut göstergesi */
.widget-size-indicator {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #3699FF;
    color: white;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 11px;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    pointer-events: none;
}

/* Widget üzerine gelindiğinde veya boyutlandırılırken göstergeyi göster */
.widget-draggable .card:hover .widget-size-indicator,
.widget-draggable.resizing .widget-size-indicator {
    opacity: 1;
}

/* Boyutlandırma sırasındaki stiller */
.widget-draggable.resizing .widget-size-indicator {
    background-color: #1bc5bd;
}

.widget-draggable.resizing .widget-resize-handle {
    background-color: #1bc5bd;
    transform: scale(1.3);
}

/* Boyut sınıfları */
.col-xl-resize {
    transition: width 0.2s ease, height 0.2s ease;
}

/* ===== MODERN HEADER STYLES ===== */
.modern-header {
    background: linear-gradient(135deg, #1e1e2e 0%, #2a2d3a 50%, #181825 100%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    min-height: 80px;
}

.modern-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(54, 153, 255, 0.1) 50%, transparent 100%);
    animation: headerShimmer 8s infinite;
    pointer-events: none;
}

@keyframes headerShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Logo Section */
.modern-logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.modern-logo-container:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.logo-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.main-logo {
    height: 45px;
    width: auto;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

/* Light ve dark tema'da logo boyutlarını aynı tut */
[data-bs-theme="light"] .main-logo {
    height: 45px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(54, 153, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modern-logo-container:hover .logo-glow {
    opacity: 1;
    animation: logoGlow 2s infinite;
}

@keyframes logoGlow {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.6; }
}

.brand-text {
    display: flex;
    flex-direction: column;
    color: white;
    transition: all 0.3s ease;
    cursor: pointer;
}

.brand-text:hover {
    transform: translateY(-1px);
    text-decoration: none !important;
}

.brand-text:hover .brand-title {
    color: #00D4FF;
    text-shadow: 0 2px 8px rgba(0, 212, 255, 0.4);
}

.brand-text:hover .brand-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.brand-title {
    font-size: 18px;
    font-weight: 700;
    color: #3699FF;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.brand-subtitle {
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    margin-top: -2px;
    transition: all 0.3s ease;
}

/* Quick Actions */
.header-quick-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-right: 30px;
}

.quick-action-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.quick-action-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    position: relative;
}

.status-online {
    background: #50cd89;
    box-shadow: 0 0 8px rgba(80, 205, 137, 0.5);
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.status-text {
    font-size: 12px;
    font-weight: 600;
    color: #50cd89;
}

.update-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
}

.update-indicator i {
    font-size: 12px;
    color: #3699FF;
    animation: updateSpin 3s linear infinite;
}

@keyframes updateSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.update-time {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
}

/* User Profile Section */
.modern-user-profile {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.modern-user-profile:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.user-info-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    position: relative;
}

.avatar-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3699FF 0%, #00D4FF 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(54, 153, 255, 0.3);
    transition: all 0.3s ease;
}

.avatar-circle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(54, 153, 255, 0.5);
}

.avatar-text {
    font-size: 14px;
    font-weight: 700;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.avatar-status {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background: #50cd89;
    border-radius: 50%;
    border: 2px solid #1e1e2e;
    box-shadow: 0 0 6px rgba(80, 205, 137, 0.5);
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.user-role {
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    margin-top: -2px;
}

/* Action Buttons */
.user-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 14px;
    position: relative;
    overflow: hidden;
}

.action-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;
}

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

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    color: white;
    text-decoration: none;
}

/* Admin Panel Butonu */
.admin-btn {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    border: 1px solid rgba(102, 126, 234, 0.3);
    color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.admin-btn:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.4) 0%, rgba(118, 75, 162, 0.4) 100%);
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.admin-btn i {
    filter: drop-shadow(0 2px 4px rgba(102, 126, 234, 0.3));
}

/* Tema Değiştir Butonu */
.theme-toggle-btn {
    background: linear-gradient(135deg, rgba(255, 199, 0, 0.2) 0%, rgba(255, 165, 0, 0.2) 100%);
    border: 1px solid rgba(255, 199, 0, 0.3);
    color: #ffc700;
    box-shadow: 0 2px 8px rgba(255, 199, 0, 0.2);
}

.theme-toggle-btn:hover {
    background: linear-gradient(135deg, rgba(255, 199, 0, 0.4) 0%, rgba(255, 165, 0, 0.4) 100%);
    border-color: #ffc700;
    color: #ffc700;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 199, 0, 0.4);
}

/* Şifre Değiştir Butonu */
.password-btn {
    background: linear-gradient(135deg, rgba(54, 153, 255, 0.2) 0%, rgba(0, 212, 255, 0.2) 100%);
    border: 1px solid rgba(54, 153, 255, 0.3);
    color: #3699FF;
    box-shadow: 0 2px 8px rgba(54, 153, 255, 0.2);
}

.password-btn:hover {
    background: linear-gradient(135deg, rgba(54, 153, 255, 0.4) 0%, rgba(0, 212, 255, 0.4) 100%);
    border-color: #3699FF;
    color: #3699FF;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(54, 153, 255, 0.4);
}

/* Ayarlar Butonu */
.settings-btn {
    background: linear-gradient(135deg, rgba(80, 205, 137, 0.2) 0%, rgba(27, 197, 189, 0.2) 100%);
    border: 1px solid rgba(80, 205, 137, 0.3);
    color: #50cd89;
    box-shadow: 0 2px 8px rgba(80, 205, 137, 0.2);
}

.settings-btn:hover {
    background: linear-gradient(135deg, rgba(80, 205, 137, 0.4) 0%, rgba(27, 197, 189, 0.4) 100%);
    border-color: #50cd89;
    color: #50cd89;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(80, 205, 137, 0.4);
}

/* Çıkış Butonu */
.logout-btn {
    background: linear-gradient(135deg, rgba(241, 65, 108, 0.2) 0%, rgba(231, 76, 60, 0.2) 100%);
    border: 1px solid rgba(241, 65, 108, 0.3);
    color: #f1416c;
    box-shadow: 0 2px 8px rgba(241, 65, 108, 0.2);
}

.logout-btn:hover {
    background: linear-gradient(135deg, rgba(241, 65, 108, 0.4) 0%, rgba(231, 76, 60, 0.4) 100%);
    border-color: #f1416c;
    color: #f1416c;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(241, 65, 108, 0.4);
}

/* Header Background Effects */
.header-bg-effects {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.bg-particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(54, 153, 255, 0.1);
    animation: particleFloat 10s infinite linear;
}

.bg-particle-1 {
    width: 60px;
    height: 60px;
    top: -30px;
    left: 10%;
    animation-duration: 12s;
}

.bg-particle-2 {
    width: 40px;
    height: 40px;
    top: 20px;
    right: 20%;
    animation-duration: 15s;
    animation-direction: reverse;
}

.bg-particle-3 {
    width: 80px;
    height: 80px;
    bottom: -40px;
    right: 10%;
    animation-duration: 18s;
}

@keyframes particleFloat {
    0% { transform: translateY(0px) rotate(0deg); opacity: 0.3; }
    50% { transform: translateY(-20px) rotate(180deg); opacity: 0.6; }
    100% { transform: translateY(0px) rotate(360deg); opacity: 0.3; }
}

/* Mobile Menu Toggle */
.modern-menu-toggle {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    transition: all 0.3s ease;
}

.modern-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 992px) {
    .brand-text {
        display: none;
    }
    
    .header-quick-actions {
        display: none;
    }
    
    .modern-user-profile {
        gap: 10px;
        padding: 6px 8px;
    }
    
    .user-details {
        display: none;
    }
    
    .user-actions {
        gap: 6px;
    }
    
    .action-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .modern-header {
        min-height: 60px;
    }
    
    .main-logo {
        height: 35px;
    }
    
    .avatar-circle {
        width: 32px;
        height: 32px;
    }
    
    .avatar-text {
        font-size: 12px;
    }
    
    .avatar-status {
        width: 10px;
        height: 10px;
    }
    
    .action-btn {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }
}

/* Dark/Light Theme Adjustments */
[data-bs-theme="light"] .modern-header {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #e9ecef 100%) !important;
    border-bottom-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

[data-bs-theme="light"] .brand-title {
    color: #3699FF;
}

[data-bs-theme="light"] .brand-subtitle {
    color: rgba(0, 0, 0, 0.6);
}

[data-bs-theme="light"] .user-name {
    color: #1e1e2e;
}

[data-bs-theme="light"] .user-role {
    color: rgba(0, 0, 0, 0.5);
}

[data-bs-theme="light"] .action-btn {
    color: rgba(0, 0, 0, 0.7);
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
}

[data-bs-theme="light"] .action-btn:hover {
    color: #1e1e2e;
}

/* Dark Theme Action Button Icons */
[data-bs-theme="dark"] .action-btn {
    color: rgba(255, 255, 255, 0.8);
}

[data-bs-theme="dark"] .action-btn:hover {
    color: #ffffff;
}

[data-bs-theme="dark"] .action-btn i {
    color: rgba(255, 255, 255, 0.8);
}

[data-bs-theme="dark"] .action-btn:hover i {
    color: #ffffff;
}

[data-bs-theme="light"] .quick-action-item {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
}

[data-bs-theme="light"] .modern-user-profile {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
}

[data-bs-theme="light"] .status-text {
    color: #50cd89;
}

[data-bs-theme="light"] .update-time {
    color: rgba(0, 0, 0, 0.6);
}

/* Veri Merkezi Kamerası Widget */
#widget-datacenter-camera .card {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.05) 0%, rgba(167, 139, 250, 0.05) 100%);
}

.camera-container {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 1rem;
}

.camera-feed-wrapper {
    position: relative;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.camera-feed {
    position: relative;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.camera-image {
    border-radius: 8px !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.camera-image:hover {
    transform: scale(1.02);
}

.camera-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    z-index: 2;
}

.camera-error {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    z-index: 2;
}

.camera-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.7) 0%,
        transparent 20%,
        transparent 80%,
        rgba(0, 0, 0, 0.7) 100%
    );
    pointer-events: none;
    border-radius: 8px;
    z-index: 1;
}

.camera-info-top {
    position: absolute;
    top: 10px;
    left: 15px;
    right: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.camera-info-bottom {
    position: absolute;
    bottom: 10px;
    left: 15px;
    right: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.camera-timestamp,
.camera-quality,
.camera-location {
    background: rgba(0, 0, 0, 0.6);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    color: white;
    backdrop-filter: blur(4px);
}

.camera-recording {
    background: rgba(220, 38, 38, 0.2);
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid rgba(220, 38, 38, 0.5);
}

.recording-indicator {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: white;
    font-weight: 600;
}

.blinking {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

/* Kamera Kontrolleri */
.camera-controls {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.control-group {
    margin-bottom: 1rem;
}

.control-group:last-child {
    margin-bottom: 0;
}

/* PTZ Kontrolleri */
.ptz-controls {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ptz-title {
    font-size: 14px;
    font-weight: 600;
}

.ptz-buttons {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
}

.ptz-direction-pad {
    display: grid;
    grid-template-rows: 1fr 1fr 1fr;
    gap: 4px;
    align-items: center;
}

.ptz-middle-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 4px;
    align-items: center;
}

.ptz-zoom-controls {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ptz-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.ptz-btn:hover {
    background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
    transform: translateY(-2px);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.ptz-btn:active {
    transform: translateY(0);
    box-shadow: 
        0 2px 6px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.ptz-home {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
}

.ptz-home:hover {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%) !important;
}

/* Tam Ekran Modu */
.camera-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: black;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.camera-fullscreen .camera-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.camera-fullscreen-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    color: white;
    font-size: 20px;
    cursor: pointer;
    z-index: 10000;
    transition: all 0.3s ease;
}

.camera-fullscreen-close:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .camera-controls .row {
        flex-direction: column;
    }
    
    .ptz-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .camera-info-top,
    .camera-info-bottom {
        flex-direction: column;
        gap: 5px;
        align-items: flex-start;
    }
    
    .camera-info-bottom {
        align-items: flex-end;
    }
    
    .ptz-btn {
        width: 35px;
        height: 35px;
        font-size: 12px;
    }
}

/* Kamera Durumu Animasyonları */
.camera-status-connecting {
    animation: pulse 1.5s infinite;
}

.camera-status-error {
    animation: shake 0.5s ease-in-out;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Widget Modal Z-Index Düzeltmeleri - GÜÇLÜ VERSİYON */
/* Tüm modal'lar için en yüksek z-index */
.modal.fade,
.modal,
body .modal,
* .modal {
    z-index: 99999 !important;
}

.modal-backdrop.fade,
.modal-backdrop,
body .modal-backdrop,
* .modal-backdrop {
    z-index: 99998 !important;
}

/* Widget içindeki modallar için sadece z-index ayarı */
.widget .modal,
.card .modal,
[id^="widget-"] .modal,
[class*="widget"] .modal {
    z-index: 100000 !important;
}

.widget .modal-backdrop,
.card .modal-backdrop,
[id^="widget-"] .modal-backdrop,
[class*="widget"] .modal-backdrop {
    z-index: 99999 !important;
}

/* Widget içindeki tüm tıklanabilir elementler */
.widget [data-bs-toggle="modal"],
.widget [data-bs-target],
.widget .btn,
.widget button,
.widget a,
.widget input,
.widget select,
.widget textarea,
.card [data-bs-toggle="modal"],
.card [data-bs-target],
.card .btn,
.card button,
.card a,
.card input,
.card select,
.card textarea,
[id^="widget-"] [data-bs-toggle="modal"],
[id^="widget-"] [data-bs-target],
[id^="widget-"] .btn,
[id^="widget-"] button,
[id^="widget-"] a,
[id^="widget-"] input,
[id^="widget-"] select,
[id^="widget-"] textarea {
    position: relative !important;
    z-index: 100 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
}

/* Widget container'ları için z-index sıfırlama */
.widget,
.card,
[id^="widget-"],
[class*="widget"] {
    position: relative !important;
    z-index: 1 !important;
}

/* Modal açık olduğunda sayfa scroll'unu engelle */
.modal.show {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.modal.show .modal-dialog {
    z-index: 100001 !important;
    position: relative !important;
    margin: 1.75rem auto !important;
    max-width: 90vw !important;
}

.modal.show .modal-content {
    z-index: 100002 !important;
    position: relative !important;
}

/* Bootstrap modal z-index değişkenleri override */
.modal {
    --bs-modal-zindex: 100000 !important;
}

.modal-backdrop {
    --bs-backdrop-zindex: 99999 !important;
}

/* Dropdown sadece açık olduğunda widget'ları arka plana al */
body.dropdown-open .widget:not(:hover),
body.dropdown-open .card:not(:hover),
body.dropdown-open [id^="widget-"]:not(:hover) {
    z-index: 1 !important;
}

/* Dropdown kapalıyken widget'ların normal z-index'i */
body:not(.dropdown-open) .widget,
body:not(.dropdown-open) .card,
body:not(.dropdown-open) [id^="widget-"] {
    z-index: auto !important;
}

/* Gelişmiş Ayarlar Modal Stilleri */
#settingsModal .modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

#settingsModal .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
}

#settingsModal .modal-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#settingsModal .nav-tabs {
    margin: 0;
}

#settingsModal .nav-link {
    font-weight: 600;
    color: #6c757d;
    border: none;
    position: relative;
    transition: all 0.3s ease;
}

#settingsModal .nav-link:hover {
    color: #3699ff;
    background: rgba(54, 153, 255, 0.1);
}

#settingsModal .nav-link.active {
    color: #3699ff;
    background: rgba(54, 153, 255, 0.1);
    border-bottom: 3px solid #3699ff;
}

/* Sessions Container */
.sessions-container {
    max-height: 500px;
    overflow-y: auto;
    padding-right: 10px;
}

.sessions-container::-webkit-scrollbar {
    width: 6px;
}

.sessions-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.sessions-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.sessions-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* History Container */
.history-container {
    max-height: 600px;
    overflow-y: auto;
    padding-right: 10px;
}

.history-container::-webkit-scrollbar {
    width: 6px;
}

.history-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.history-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

/* Session Cards */
.sessions-container .card,
.history-container .card {
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.sessions-container .card:hover,
.history-container .card:hover {
    border-color: #3699ff;
    box-shadow: 0 4px 15px rgba(54, 153, 255, 0.1);
    transform: translateY(-2px);
}

/* Device Type Colors */
.symbol-label.bg-light-primary {
    background-color: rgba(54, 153, 255, 0.1) !important;
}

.symbol-label.bg-light-success {
    background-color: rgba(80, 205, 137, 0.1) !important;
}

.symbol-label.bg-light-info {
    background-color: rgba(117, 161, 255, 0.1) !important;
}

.symbol-label.bg-light-warning {
    background-color: rgba(255, 199, 1, 0.1) !important;
}

.symbol-label.bg-light-danger {
    background-color: rgba(241, 65, 108, 0.1) !important;
}

/* Form Improvements */
#settingsModal .form-control,
#settingsModal .form-select {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

#settingsModal .form-control:focus,
#settingsModal .form-select:focus {
    border-color: #3699ff;
    box-shadow: 0 0 0 0.25rem rgba(54, 153, 255, 0.15);
}

/* Button Improvements */
#settingsModal .btn {
    border-radius: 8px;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

#settingsModal .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Card Hover Effects */
#settingsModal .card {
    border-radius: 12px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

#settingsModal .card:hover {
    border-color: #3699ff;
    box-shadow: 0 8px 25px rgba(54, 153, 255, 0.1);
    transform: translateY(-3px);
}

/* Stats Cards */
.bg-light-primary .card-body,
.bg-light-success .card-body,
.bg-light-danger .card-body,
.bg-light-info .card-body {
    border-radius: 12px;
}

/* Animation for Modal */
#settingsModal.fade .modal-dialog {
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
    opacity: 0;
}

#settingsModal.show .modal-dialog {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    #settingsModal .modal-dialog {
        margin: 1rem;
        max-width: calc(100vw - 2rem) !important;
    }
    
    #settingsModal .nav-link {
        padding: 1rem 0.5rem;
        font-size: 0.875rem;
    }
    
    #settingsModal .nav-link i {
        display: none;
    }
    
    .sessions-container,
    .history-container {
        max-height: 400px;
    }
}

/* Loading States */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3699ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success/Error Messages */
.alert {
    border-radius: 12px;
    border: none;
    padding: 1rem 1.5rem;
}

.alert-success {
    background: linear-gradient(135deg, rgba(80, 205, 137, 0.1) 0%, rgba(80, 205, 137, 0.05) 100%);
    color: #50cd89;
}

.alert-danger {
    background: linear-gradient(135deg, rgba(241, 65, 108, 0.1) 0%, rgba(241, 65, 108, 0.05) 100%);
    color: #f1416c;
}

.alert-info {
    background: linear-gradient(135deg, rgba(117, 161, 255, 0.1) 0%, rgba(117, 161, 255, 0.05) 100%);
    color: #75a1ff;
}

/* Badge Improvements */
.badge {
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
}

/* Form Switch Improvements */
.form-switch .form-check-input {
    width: 3rem;
    height: 1.5rem;
    border-radius: 1rem;
    background-color: #e9ecef;
    border: none;
}

.form-switch .form-check-input:checked {
    background-color: #3699ff;
    border-color: #3699ff;
}

/* Image Input Improvements */
.image-input .image-input-wrapper {
    border-radius: 12px;
    border: 2px dashed #e9ecef;
    transition: all 0.3s ease;
}

.image-input .image-input-wrapper:hover {
    border-color: #3699ff;
    background-color: rgba(54, 153, 255, 0.05);
}

/* Table Improvements */
#settingsModal .table {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

#settingsModal .table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
    font-weight: 600;
    color: #5e6278;
}

#settingsModal .table tbody tr:hover {
    background-color: rgba(54, 153, 255, 0.05);
}

/* Security Recommendations */
.bg-light-warning {
    background: linear-gradient(135deg, rgba(255, 199, 1, 0.1) 0%, rgba(255, 199, 1, 0.05) 100%) !important;
}

.text-warning {
    color: #ffc700 !important;
}

/* Dark Mode Support */
[data-bs-theme="dark"] #settingsModal .modal-content {
    background-color: #1e1e2e;
    color: #ffffff;
}

[data-bs-theme="dark"] #settingsModal .card {
    background-color: #2a2d3a;
    border-color: #3e4049;
}

[data-bs-theme="dark"] #settingsModal .form-control,
[data-bs-theme="dark"] #settingsModal .form-select {
    background-color: #2a2d3a;
    border-color: #3e4049;
    color: #ffffff;
}

[data-bs-theme="dark"] #settingsModal .table {
    background-color: #2a2d3a;
    color: #ffffff;
}

[data-bs-theme="dark"] #settingsModal .table thead th {
    background-color: #1e1e2e;
    color: #a6a6b8;
}

/* Genel Modal Pozisyon Düzeltmeleri */
.modal {
    display: none;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    outline: 0 !important;
}

.modal.show {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.modal-dialog {
    position: relative !important;
    width: auto !important;
    margin: 1.75rem auto !important;
    pointer-events: none !important;
}

.modal.show .modal-dialog {
    pointer-events: auto !important;
}

.modal-content {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    pointer-events: auto !important;
    background-clip: padding-box !important;
    border-radius: 0.5rem !important;
    outline: 0 !important;
}

/* Modal Responsive Düzeltmeleri */
@media (max-width: 576px) {
    .modal-dialog {
        margin: 1rem !important;
        max-width: calc(100vw - 2rem) !important;
    }
}

/* Modern Datacenter Status Widget */
.datacenter-status-widget {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.datacenter-status-widget:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.dc-widget-item {
    position: relative;
    transition: all 0.3s ease;
}

.dc-widget-item:hover {
    transform: scale(1.05);
}

.dc-status-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    min-width: 140px;
}

.dc-status-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.dc-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.dc-widget-item:nth-child(1) .dc-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.dc-widget-item:nth-child(2) .dc-icon {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e6cf 100%);
    box-shadow: 0 4px 15px rgba(86, 171, 47, 0.3);
}

.dc-widget-item:nth-child(3) .dc-icon {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 4px 15px rgba(240, 147, 251, 0.3);
}

.dc-widget-item:nth-child(4) .dc-icon {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.3);
}

.dc-widget-item:nth-child(5) .dc-icon {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    box-shadow: 0 4px 15px rgba(250, 112, 154, 0.3);
}

.dc-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.dc-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dc-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
}

.dc-status .status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: statusPulse 2s infinite;
}

.dc-status-operational .status-indicator {
    background: #10b981;
    box-shadow: 0 0 10px #10b981;
}

.dc-status-protected .status-indicator {
    background: #3b82f6;
    box-shadow: 0 0 10px #3b82f6;
}

.dc-metrics {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
}

.metric-value {
    font-size: 1rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.metric-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: metricPulse 1.5s infinite;
}

.metric-excellent {
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
}

.metric-good {
    background: #f59e0b;
    box-shadow: 0 0 8px #f59e0b;
}

.metric-poor {
    background: #ef4444;
    box-shadow: 0 0 8px #ef4444;
}

.dc-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
}

.location-flag {
    font-size: 1rem;
}

.location-text {
    font-weight: 600;
}

/* Animations */
@keyframes statusPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.2);
    }
}

@keyframes metricPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

/* Responsive Design */
@media (max-width: 1400px) {
    .datacenter-status-widget {
        gap: 0.75rem;
    }
    
    .dc-status-card {
        min-width: 120px;
        padding: 0.6rem 0.8rem;
    }
    
    .dc-icon {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .dc-label {
        font-size: 0.65rem;
    }
    
    .dc-status, .dc-metrics {
        font-size: 0.75rem;
    }
}

@media (max-width: 1200px) {
    .datacenter-status-widget {
        gap: 0.5rem;
    }
    
    .dc-status-card {
        min-width: 100px;
        padding: 0.5rem 0.6rem;
    }
    
    .dc-icon {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }
}

/* Dark Theme Adjustments */
[data-bs-theme="dark"] .datacenter-status-widget {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .dc-status-card {
    background: rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .dc-status-card:hover {
    background: rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Light Theme Adjustments */
[data-bs-theme="light"] .datacenter-status-widget {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

[data-bs-theme="light"] .dc-status-card {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.05);
}

[data-bs-theme="light"] .dc-status-card:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.1);
}

[data-bs-theme="light"] .dc-label {
    color: rgba(0, 0, 0, 0.6);
}

[data-bs-theme="light"] .dc-status,
[data-bs-theme="light"] .dc-metrics,
[data-bs-theme="light"] .dc-location {
    color: #1e293b;
}

/* Widget hover effects */
.dc-widget-item:hover .dc-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.dc-widget-item:nth-child(2):hover .dc-icon {
    box-shadow: 0 6px 20px rgba(86, 171, 47, 0.4);
}

.dc-widget-item:nth-child(3):hover .dc-icon {
    box-shadow: 0 6px 20px rgba(240, 147, 251, 0.4);
}

.dc-widget-item:nth-child(4):hover .dc-icon {
    box-shadow: 0 6px 20px rgba(79, 172, 254, 0.4);
}

.dc-widget-item:nth-child(5):hover .dc-icon {
    box-shadow: 0 6px 20px rgba(250, 112, 154, 0.4);
}

/* ===== SERVICE MODE SWITCHER ===== */
.service-mode-switcher {
    display: flex;
    align-items: center;
}

.mode-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 4px;
    gap: 4px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.mode-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-width: 110px;
    justify-content: center;
}

.mode-tab:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    text-decoration: none;
    transform: translateY(-1px);
}

.mode-tab.active {
    color: white;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.mode-tab i {
    font-size: 16px;
    transition: all 0.3s ease;
}

.mode-tab:hover i {
    transform: scale(1.1);
}

.mode-tab.active i {
    transform: scale(1.1);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Mode Tab Responsive */
@media (max-width: 768px) {
    .mode-tabs {
        padding: 2px;
        gap: 2px;
    }
    
    .mode-tab {
        padding: 6px 12px;
        font-size: 13px;
        min-width: 90px;
    }
    
    .mode-tab span {
        display: none;
    }
    
    .mode-tab i {
        font-size: 18px;
    }
}

@media (max-width: 576px) {
    .service-mode-switcher {
        margin-right: 8px !important;
    }
    
    .mode-tab {
        padding: 4px 8px;
        min-width: 40px;
    }
    
    .mode-tab i {
        font-size: 16px;
    }
}