* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
    display: flex;
    height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background-color: #1a1a1a;
    color: #fff;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    margin-bottom: 20px;
}

.logo img {
    width: 30px;
    height: 30px;
    margin-right: 10px;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #aaa;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
}

.menu-item:hover {
    background-color: #2a2a2a;
    color: #fff;
}

.menu-item.active {
    background-color: #2a2a2a;
    color: #fff;
    border-left: 3px solid #fff;
}

.menu-item i {
    width: 24px;
    height: 24px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spacer {
    flex: 1;
}

.bottom-menu {
    margin-top: auto;
    border-top: 1px solid #333;
    padding-top: 15px;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 30px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.header-left h1 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.header-left p {
    color: #777;
}

.user-profile {
    display: flex;
    align-items: center;
    background-color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.user-profile img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 10px;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 20px;
    margin-bottom: 20px;
}

.dashboard-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.card-icon {
    width: 40px;
    height: 40px;
    background-color: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.card-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
}

.offer-card {
    background-color: #1a1a1a;
    color: #fff;
}

.offer-card .card-content {
    display: flex;
    justify-content: space-between;
}

.offer-card h3 {
    font-size: 22px;
    font-weight: normal;
}

.server-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 5px 0;
}

.status-icon {
    display: flex;
    align-items: center;
}

.status-icon.online {
    color: #4CAF50;
}

.status-icon.offline {
    color: #F44336;
}

.create-server-row {
    grid-column: span 3;
}

.create-server-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    cursor: pointer;
}

.create-server-card .card-icon {
    margin-right: 10px;
}

/* Toggle sidebar button */
.toggle-sidebar {
    position: absolute;
    bottom: 20px;
    left: 260px;
    width: 25px;
    height: 25px;
    background-color: #1a1a1a;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transform: translateX(50%);
    z-index: 100;
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .create-server-row {
        grid-column: span 1;
    }
    
    .sidebar {
        width: 70px;
    }
    
    .logo span, .menu-item span {
        display: none;
    }
    
    .menu-item i {
        margin-right: 0;
    }
    
    .main-content {
        margin-left: 70px;
    }
    
    .toggle-sidebar {
        left: 70px;
    }
    
    .sidebar.expanded {
        width: 260px;
    }
    
    .sidebar.expanded .logo span, 
    .sidebar.expanded .menu-item span {
        display: inline;
    }
    
    .sidebar.expanded .menu-item i {
        margin-right: 15px;
    }
}