:root {
    --bg-color: #f4f6f9;
    --sidebar-bg: #14213d;
    --primary: #fca311;
    --secondary: #e5e5e5;
    --text-dark: #333;
    --text-light: #fff;
    --card-bg: #ffffff;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-dark);
    margin: 0;
    overflow-x: hidden;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background-color: var(--sidebar-bg);
    color: var(--text-light);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 1000;
    transition: 0.3s;
    box-shadow: 4px 0 10px rgba(0,0,0,0.1);
}

.sidebar-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-header h3 {
    color: var(--primary);
    margin: 0;
    font-weight: 700;
}

.sidebar-menu {
    padding: 20px 0;
    list-style: none;
    margin: 0;
}

.sidebar-menu li {
    padding: 10px 20px;
}

.sidebar-menu li a {
    color: var(--secondary);
    text-decoration: none;
    display: flex;
    align-items: center;
    font-size: 15px;
    transition: 0.3s;
    border-radius: 8px;
    padding: 10px;
}

.sidebar-menu li a:hover, .sidebar-menu li.active a {
    background-color: rgba(252, 163, 17, 0.1);
    color: var(--primary);
}

.sidebar-menu li a i {
    margin-right: 15px;
    width: 20px;
    text-align: center;
}

/* Main Content */
.main-content {
    margin-left: 260px;
    padding: 20px 30px;
    min-height: 100vh;
}

/* Topbar */
.topbar {
    background: var(--card-bg);
    padding: 15px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-role-badge {
    background: rgba(252, 163, 17, 0.1);
    color: #b3730b;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Cards */
.silo-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    transition: 0.3s;
    border: 1px solid rgba(0,0,0,0.02);
}

.silo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: rgba(252, 163, 17, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.stat-details h4 {
    margin: 0;
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
}

.stat-details h2 {
    margin: 5px 0 0 0;
    font-size: 24px;
    font-weight: 700;
    color: var(--sidebar-bg);
}

/* Glassmorphism utility */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.page-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--sidebar-bg);
    margin-bottom: 20px;
}

/* Sidebar Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Responsive Tasarım */
@media (max-width: 768px) {
    .sidebar {
        left: -260px;
    }
    .sidebar.show {
        left: 0;
    }
    .main-content {
        margin-left: 0;
        padding: 15px;
    }
    .topbar {
        padding: 15px;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .topbar-search {
        width: 100%;
        display: flex;
        align-items: center;
    }
    .topbar-user {
        width: 100%;
        justify-content: space-between;
    }
    .stat-card {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

/* Bağlantı Durum Göstergesi (Pulse) */
.status-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
    position: relative;
    vertical-align: middle;
}

.status-online {
    background-color: #28a745;
    box-shadow: 0 0 0 rgba(40, 167, 69, 0.4);
    animation: pulse-green 2s infinite;
}

.status-offline {
    background-color: #dc3545;
    background-image: linear-gradient(45deg, rgba(255,255,255,0.2) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0.2) 75%, transparent 75%, transparent);
    background-size: 4px 4px;
}

@keyframes pulse-green {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(40, 167, 69, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}
