* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto Mono', monospace;
    background: #0a0a0a;
    color: #00ff41;
    overflow: hidden;
    height: 100vh;
}

.container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: #111;
    border-bottom: 2px solid #00ff41;
    box-shadow: 0 2px 10px rgba(0, 255, 65, 0.3);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    font-family: 'Orbitron', monospace;
    font-size: 28px;
    font-weight: 900;
    color: #00ff41;
    text-shadow: 0 0 10px #00ff41;
    letter-spacing: 2px;
}

.subtitle {
    font-size: 14px;
    color: #00cc33;
    font-weight: 300;
    letter-spacing: 1px;
}

.header-right .status {
    color: #00ff41;
    font-weight: 500;
    padding: 5px 15px;
    border: 1px solid #00ff41;
    border-radius: 3px;
    background: rgba(0, 255, 65, 0.1);
}

/* User Info and Logout */
.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 20px;
}

.user-name {
    color: #00ff41;
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 1px;
}

.user-role {
    color: #00cc33;
    font-size: 10px;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.logout-btn {
    background: #ff4444;
    color: #fff;
    border: none;
    padding: 6px 12px;
    font-family: 'Roboto Mono', monospace;
    font-weight: 500;
    font-size: 10px;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.logout-btn:hover {
    background: #ff6666;
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.5);
    transform: translateY(-1px);
}

.logout-btn:active {
    transform: translateY(0);
}

/* Main Content */
.main-content {
    display: flex;
    flex: 1;
    gap: 2px;
    padding: 2px;
    background: #000;
}

/* Sidebar Menu */
.sidebar-menu {
    width: 280px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    overflow-y: auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #333;
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    position: relative;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #00ff41, #00cc33);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #000;
    font-size: 18px;
}

.status-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background: #00ff41;
    border: 2px solid #1a1a1a;
    border-radius: 50%;
    animation: status-pulse 2s ease-in-out infinite;
}

@keyframes status-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.username {
    color: #00ff41;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.user-status {
    color: #00cc33;
    font-size: 11px;
    font-weight: 300;
}

.sidebar-content {
    padding: 0;
}

.menu-section {
    margin-bottom: 8px;
}

.menu-title {
    color: #888;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 15px 20px 8px 20px;
    margin: 0;
    text-transform: uppercase;
}

.premium-title {
    color: #ffaa00;
    background: linear-gradient(90deg, #ffaa00, #ff8800);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-item {
    margin: 0;
}

.menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #ccc;
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.menu-link:hover {
    background: rgba(0, 255, 65, 0.1);
    color: #00ff41;
    border-left-color: #00ff41;
}

.menu-item.active .menu-link {
    background: rgba(0, 255, 65, 0.15);
    color: #00ff41;
    border-left-color: #00ff41;
    font-weight: 500;
}

.menu-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.expand-icon {
    margin-left: auto;
    font-size: 10px;
    transition: transform 0.3s ease;
    color: #666;
}

.menu-item.expandable.expanded .expand-icon {
    transform: rotate(180deg);
}

/* Submenu Styles */
.submenu {
    display: none;
    list-style: none;
    padding: 0;
    margin: 5px 0 0 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
    border-left: 3px solid #00ff41;
}

.menu-item.expanded .submenu {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 300px;
    }
}

.submenu-item {
    margin: 0;
}

.submenu-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px 10px 25px;
    color: #ccc;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.submenu-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    padding-left: 30px;
}

.submenu-item:last-child .submenu-link {
    border-bottom: none;
}

.submenu-item.active .submenu-link {
    background: rgba(0, 255, 65, 0.2);
    color: #00ff41;
    font-weight: 600;
    border-left: 3px solid #00ff41;
    padding-left: 27px;
}

/* Service Badges */
.service-badge {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.service-badge.free {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

.service-badge.premium {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #000;
    box-shadow: 0 2px 4px rgba(255, 215, 0, 0.4);
    animation: premiumGlow 2s ease-in-out infinite alternate;
}

@keyframes premiumGlow {
    from {
        box-shadow: 0 2px 4px rgba(255, 215, 0, 0.4);
    }
    to {
        box-shadow: 0 2px 8px rgba(255, 215, 0, 0.6);
    }
}

.premium-section {
    background: linear-gradient(135deg, rgba(255, 170, 0, 0.05), rgba(255, 136, 0, 0.05));
    border-top: 1px solid rgba(255, 170, 0, 0.2);
    margin-top: 10px;
    border-radius: 10px;
    padding: 10px;
}

.premium-title {
    position: relative;
}

.premium-title::before {
    content: "👑";
    margin-right: 8px;
    animation: crownBounce 2s ease-in-out infinite;
}

@keyframes crownBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

.premium-item .menu-link {
    background: rgba(255, 170, 0, 0.05);
    border-left-color: transparent;
    position: relative;
    overflow: hidden;
}

.premium-item .menu-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.premium-item .menu-link:hover::before {
    left: 100%;
}

.premium-item .menu-link:hover {
    background: rgba(255, 170, 0, 0.15);
    color: #ffaa00;
    border-left-color: #ffaa00;
    box-shadow: 0 4px 15px rgba(255, 170, 0, 0.4);
}

.premium-item.active .menu-link {
    background: rgba(255, 170, 0, 0.2);
    color: #ffaa00;
    border-left-color: #ffaa00;
}

.premium-item .submenu {
    background: linear-gradient(135deg, rgba(255, 170, 0, 0.15), rgba(255, 136, 0, 0.1));
    border-left-color: #ffaa00;
}

.premium-item .submenu-link {
    color: #ffaa00;
    font-weight: 500;
}

.premium-item .submenu-link:hover {
    background: rgba(255, 170, 0, 0.2);
    color: #fff;
}

/* Panels */
.left-panel, .right-panel {
    width: 300px;
    background: #111;
    border: 1px solid #333;
    padding: 15px;
    overflow-y: auto;
}

.center-panel {
    flex: 1;
    background: #111;
    border: 1px solid #333;
    display: flex;
    flex-direction: column;
}

.panel-section {
    margin-bottom: 25px;
}

.panel-section h3 {
    color: #00ff41;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 1px;
    border-bottom: 1px solid #333;
    padding-bottom: 5px;
}

/* Phone Input Section */
.phone-input-section label {
    display: block;
    color: #888;
    font-size: 11px;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.phone-input {
    width: 100%;
    background: #000;
    border: 1px solid #333;
    color: #00ff41;
    padding: 8px 12px;
    font-family: 'Roboto Mono', monospace;
    font-size: 14px;
    margin-bottom: 10px;
    border-radius: 2px;
}

.phone-input:focus {
    outline: none;
    border-color: #00ff41;
    box-shadow: 0 0 5px rgba(0, 255, 65, 0.3);
}

.phone-input::placeholder {
    color: #555;
    font-style: italic;
}

.button-group {
    display: flex;
    gap: 5px;
}

.btn-primary {
    flex: 1;
    background: #00ff41;
    color: #000;
    border: none;
    padding: 8px 15px;
    font-family: 'Roboto Mono', monospace;
    font-weight: 500;
    font-size: 11px;
    cursor: pointer;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #00cc33;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

.btn-close {
    background: #ff4444;
    color: #fff;
    border: none;
    padding: 8px 12px;
    font-family: 'Roboto Mono', monospace;
    font-weight: 700;
    cursor: pointer;
    border-radius: 2px;
}

/* Signal Chart */
.signal-chart {
    background: #000;
    border: 1px solid #333;
    margin-bottom: 15px;
    position: relative;
    height: 120px;
}

#signalCanvas {
    width: 100%;
    height: 100%;
}

/* Metrics */
.metrics {
    font-size: 11px;
}

.metric-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding: 3px 0;
}

.metric-label {
    color: #888;
}

.metric-value {
    color: #00ff41;
    font-weight: 500;
}

.metric-value.turkcell {
    color: #ffaa00;
    font-weight: 700;
}

/* Map Section */
.map-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #333;
}

.map-header h3 {
    color: #00ff41;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}

.map-controls {
    display: flex;
    gap: 5px;
}

.map-btn {
    background: #222;
    color: #888;
    border: 1px solid #333;
    padding: 5px 12px;
    font-family: 'Roboto Mono', monospace;
    font-size: 10px;
    cursor: pointer;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.map-btn.active,
.map-btn:hover {
    background: #00ff41;
    color: #000;
    border-color: #00ff41;
}

/* Map Container */
.map-container {
    flex: 1;
    background: #000;
    position: relative;
    overflow: hidden;
}

.radar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at center, transparent 30%, rgba(0, 255, 65, 0.05) 31%, rgba(0, 255, 65, 0.05) 60%, transparent 61%),
        linear-gradient(0deg, rgba(0, 255, 65, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 65, 0.1) 1px, transparent 1px);
    background-size: 100% 100%, 40px 40px, 40px 40px;
}

.radar-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 400px;
    height: 400px;
    border: 2px solid #00ff41;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.6;
}

.radar-circle::before,
.radar-circle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1px solid #00ff41;
    border-radius: 50%;
    opacity: 0.4;
}

.radar-circle::before {
    width: 200px;
    height: 200px;
    transform: translate(-50%, -50%);
}

.radar-circle::after {
    width: 600px;
    height: 600px;
    transform: translate(-50%, -50%);
}

.radar-sweep {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    transform: translate(-50%, -50%);
    background: conic-gradient(from 0deg, transparent 0deg, rgba(0, 255, 65, 0.3) 30deg, transparent 60deg);
    border-radius: 50%;
    animation: radar-sweep 4s linear infinite;
}

@keyframes radar-sweep {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.target-marker {
    position: absolute;
    top: 45%;
    left: 55%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.target-pulse {
    width: 20px;
    height: 20px;
    background: #00ff41;
    border-radius: 50%;
    position: relative;
    animation: pulse 2s ease-in-out infinite;
}

.target-pulse::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px solid #00ff41;
    border-radius: 50%;
    animation: pulse-ring 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes pulse-ring {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(2); opacity: 0; }
}

.target-info {
    position: absolute;
    top: 25px;
    left: -50px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #00ff41;
    padding: 5px 8px;
    font-size: 10px;
    color: #00ff41;
    white-space: nowrap;
    border-radius: 2px;
}

.target-info span {
    display: block;
    line-height: 1.3;
}

.signal-lines {
    position: absolute;
    top: 45%;
    left: 55%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
}

.signal-lines::before,
.signal-lines::after {
    content: '';
    position: absolute;
    background: #00ff41;
    opacity: 0.6;
}

.signal-lines::before {
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    animation: signal-horizontal 3s ease-in-out infinite;
}

.signal-lines::after {
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    animation: signal-vertical 3s ease-in-out infinite;
}

@keyframes signal-horizontal {
    0%, 100% { transform: scaleX(0.5); }
    50% { transform: scaleX(1.5); }
}

@keyframes signal-vertical {
    0%, 100% { transform: scaleY(0.5); }
    50% { transform: scaleY(1.5); }
}

@keyframes rotate {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.coordinates {
    position: absolute;
    bottom: 10px;
    right: 10px;
    color: #00ff41;
    font-size: 10px;
    opacity: 0.7;
}

/* Right Panel */
.device-info {
    font-size: 11px;
    line-height: 1.4;
}

.info-header {
    color: #00ff41;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 0 5px #00ff41;
}

.info-line {
    color: #ccc;
    margin-bottom: 5px;
}

.separator {
    color: #555;
    margin: 10px 0;
    font-size: 10px;
}

.activity-log {
    margin-top: 10px;
}

.log-item {
    color: #00cc33;
    margin-bottom: 3px;
    font-size: 10px;
}

/* System Logs */
.system-logs {
    background: #000;
    border: 1px solid #333;
    padding: 10px;
    height: 150px;
    overflow-y: auto;
    font-size: 10px;
}

.log-entry {
    color: #00ff41;
    margin-bottom: 3px;
    opacity: 0.8;
}

.log-entry:last-child {
    animation: blink 1s ease-in-out infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #111;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Sidebar Toggle Button */
.sidebar-toggle {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    background: #00ff41;
    color: #000;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
}

.sidebar-toggle:hover {
    background: #00cc33;
    transform: scale(1.05);
}

/* Sidebar Overlay for Mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
}

.sidebar-overlay.active {
    display: block;
}

/* Responsive */
@media (max-width: 1400px) {
    .sidebar-menu {
        width: 260px;
    }
    
    .left-panel, .right-panel {
        width: 280px;
    }
}

@media (max-width: 1200px) {
    .sidebar-menu {
        width: 240px;
    }
    
    .left-panel, .right-panel {
        width: 250px;
    }
    
    .logo {
        font-size: 24px;
    }
}

@media (max-width: 1000px) {
    .sidebar-toggle {
        display: block;
    }
    
    .sidebar-menu {
        position: fixed;
        top: 0;
        left: -280px;
        height: 100vh;
        z-index: 1000;
        transition: left 0.3s ease;
        width: 280px;
    }
    
    .sidebar-menu.active {
        left: 0;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .left-panel, .right-panel {
        width: 280px;
    }
}

@media (max-width: 900px) {
    .main-content {
        flex-direction: column;
        gap: 10px;
        padding: 10px;
    }
    
    .left-panel, .right-panel {
        width: 100%;
        height: 250px;
    }
    
    .center-panel {
        height: 400px;
        order: -1;
    }
    
    .sidebar-menu {
        width: 100%;
        left: -100%;
    }
    
    .sidebar-menu.active {
        left: 0;
    }
}

@media (max-width: 600px) {
    .header {
        padding: 8px 15px;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .header-left {
        gap: 10px;
    }
    
    .logo {
        font-size: 20px;
    }
    
    .subtitle {
        font-size: 10px;
    }
    
    .sidebar-header {
        padding: 15px;
    }
    
    .user-avatar {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .username {
        font-size: 12px;
    }
    
    .menu-link {
        padding: 10px 15px;
        font-size: 12px;
    }
    
    .menu-title {
        padding: 12px 15px 6px 15px;
        font-size: 10px;
    }
}