/* Company ve Device dashboard için ortak sidebar ve logo stilleri */
:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #06b6d4;
    --dark-color: #1f2937;
    --light-color: #f8fafc;
    --sidebar-width: 280px;
    --topbar-height: 70px;
}
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #f1f5f9;
    margin: 0;
    padding: 0;
}
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: var(--sidebar-width);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}
.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    min-height: 60px;
    position: relative;
    z-index: 2;
}
.sidebar-brand {
    color: white;
    font-size: 24px;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 2;
}
.sidebar-brand img {
    max-height: 40px;
    max-width: 200px;
    object-fit: contain;
    transition: all 0.3s ease;
    display: block;
    margin: 0;
    background: transparent;
    position: relative;
    z-index: 2;
}
.sidebar-brand #defaultLogo {
    display: flex;
    align-items: center;
    justify-content: center;
}
.sidebar-brand i {
    margin-right: 10px;
    font-size: 28px;
}
.sidebar-nav {
    padding: 20px 0;
}
.nav-item {
    margin: 5px 15px;
}
.nav-link {
    color: rgba(255,255,255,0.8);
    padding: 12px 20px;
    border-radius: 10px;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    font-weight: 500;
}
.nav-link:hover, .nav-link.active {
    background: rgba(255,255,255,0.1);
    color: white;
    transform: translateX(5px);
}
.nav-link i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
}
.topbar {
    position: fixed;
    top: 0;
    left: var(--sidebar-width);
    right: 0;
    height: var(--topbar-height);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.topbar-left h4 {
    margin: 0;
    color: white;
    font-weight: 600;
}
.topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}
.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}
.user-info:hover {
    background: rgba(255,255,255,0.1);
}
.dropdown-menu {
    border: none;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    margin-top: 10px;
}
.dropdown-item {
    padding: 10px 15px;
    border-radius: 8px;
    margin: 2px 8px;
    transition: all 0.3s ease;
}
.dropdown-item:hover {
    background: var(--primary-color);
    color: white;
}
.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    border: 2px solid rgba(255,255,255,0.3);
}
.language-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}
.language-selector:hover {
    background: rgba(255,255,255,0.1);
}
.language-selector i {
    font-size: 16px;
}
.language-dropdown {
    min-width: 160px;
}
.language-dropdown .dropdown-item {
    font-size: 14px;
    font-weight: 500;
}
.language-dropdown .dropdown-item i {
    color: var(--primary-color);
}

/* ==================== Topbar Device Icons ==================== */
.topbar-icon-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
}
.topbar-icon-btn:hover {
    background: rgba(255,255,255,0.25);
    color: white;
    text-decoration: none;
}
.telemetry-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.18);
    min-width: 220px;
    padding: 0;
    z-index: 1001;
    overflow: hidden;
}
.topbar-icon-btn:hover .telemetry-dropdown {
    display: block;
}
.telemetry-header {
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    border-bottom: 1px solid #eee;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.telemetry-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    border-bottom: 1px solid #f5f5f5;
}
.telemetry-row:last-child {
    border-bottom: none;
}
.telemetry-label {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}
.telemetry-label i {
    color: var(--primary-color);
    width: 16px;
    text-align: center;
}
.telemetry-value {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.main-content {
    margin-left: var(--sidebar-width);
    margin-top: var(--topbar-height);
    padding: 30px;
    min-height: calc(100vh - var(--topbar-height));
}
/* ==================== Hamburger & Overlay (desktop: gizli) ==================== */
.topbar-hamburger {
    display: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    color: white;
    font-size: 20px;
    cursor: pointer;
    background: rgba(255,255,255,0.1);
    border: none;
    margin-right: 12px;
    flex-shrink: 0;
}
.topbar-hamburger:hover {
    background: rgba(255,255,255,0.25);
}
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}
.sidebar-overlay.visible {
    display: block;
}

/* ==================== Mobile (<=768px) ==================== */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.mobile-open {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0;
    }
    .topbar {
        left: 0;
        padding: 0 12px;
    }
    .topbar-hamburger {
        display: flex;
    }
    .topbar-left {
        display: flex;
        align-items: center;
    }
    .topbar-right {
        gap: 8px;
    }
}