/* Reset & base */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    display: flex;
    background-color: #f5f5f5;
    color: #333;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Sidebar */
.sidebar {
    width: 220px;
    background-color: #2d3748;
    border-right: 1px solid #4a5568;
    height: 100vh;
    position: sticky;
    top: 0;
    align-self: flex-start;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    padding: 0;
    box-sizing: border-box;
}

.sidebar h2 {
    color: #ffffff;
    font-size: 18px;
    margin: 0;
    padding: 0 20px;
    height: 56px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #4a5568;
    flex-shrink: 0;
    box-sizing: border-box;
}

.sidebar ul {
    list-style: none;
    padding: 12px 8px 0 8px;
    margin: 0;
    flex: 1;
}

.sidebar li {
    margin-bottom: 8px;
    padding: 0;
}

.sidebar a {
    text-decoration: none;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    padding: 12px 20px;
    border-radius: 6px;
    transition: background 0.3s ease, color 0.3s ease;
    color: #94a3b8;
    white-space: nowrap;
}

.sidebar a i {
    margin-right: 10px;
    min-width: 20px;
}

.sidebar a:hover {
    background-color: #DA1169;
    color: white;
}

.sidebar a.active {
    background-color: #DA1169;
    color: white;
}

.sidebar a,
.sidebar a:hover,
.sidebar a:focus {
    text-decoration: none !important;
}

/* Main content */
.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-width: 0;
}

/* Header */
.header {
    background-color: #2d3748;
    padding: 0 25px;
    height: 56px;
    position: sticky;
    top: 0;
    z-index: 900;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: none;
    box-sizing: border-box;
    border-bottom: 1px solid #4a5568;
}

.logout {
    color: #DA1169;
    font-weight: bold;
    text-decoration: none;
}

.logout:hover {
    color: #b8005a;
}

/* Content area */
.content {
    flex: 1;
    padding: 40px 30px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* Footer */
.footer {
    text-align: center;
    padding: 15px;
    font-size: 13px;
    color: #888;
    border-top: 1px solid #ddd;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        width: 60px;
        padding: 10px;
        overflow-x: hidden;
    }
    .sidebar h2 {
        display: none;
    }
    .sidebar a {
        font-size: 12px;
        padding: 8px 10px;
    }
    .content {
        padding: 20px 10px;
    }
}
