/* ===========================
   Dark Bluish Theme Styles
=========================== */

/* Body */
body {
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", sans-serif;
    background: linear-gradient(145deg, #0f1c2c, #1a2a44);
    color: #e0e0e0;
    overflow-x: hidden;
}

/* Links */
a {
    color: #e0e0e0;
    text-decoration: none;
}
a:hover {
    color: #ff9800;
}

/* ===========================
   Sidebar
=========================== */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 250px;
    background-color: #0a1b33;
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    transition: width 0.3s;
    z-index: 1000;
    scrollbar-width: thin;
    scrollbar-color: #ff9800 #0a1b33;
}
.sidebar::-webkit-scrollbar {
    width: 6px;
}
.sidebar::-webkit-scrollbar-thumb {
    background-color: #ff9800;
    border-radius: 3px;
}
.sidebar::-webkit-scrollbar-track {
    background: #0a1b33;
}

.sidebar.collapsed {
    width: 80px;
}

.sidebar .sidebar-toggle {
    align-self: flex-end;
    margin-right: 10px;
    background-color: #ff9800;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    text-align: center;
    cursor: pointer;
    line-height: 32px;
    font-weight: bold;
    color: #0f1c2c;
    transition: transform 0.3s;
}

.sidebar a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    font-weight: 500;
    border-radius: 6px;
    margin: 4px 12px;
    transition: background 0.2s;
}
.sidebar a i {
    margin-right: 12px;
    min-width: 20px;
    text-align: center;
}
.sidebar.collapsed a span {
    display: none;
}
.sidebar a.active {
    background-color: #ff9800;
    color: #0f1c2c;
}
.sidebar a:hover {
    background-color: #1f2b4a;
}

/* ===========================
   Header
=========================== */
.top-header {
    position: fixed;
    top: 0;
    left: 250px;
    right: 0;
    height: 60px;
    background-color: #0a1b33;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    transition: left 0.3s;
    z-index: 900;
}
.top-header.collapsed {
    left: 80px;
}
.top-header h1 {
    font-size: 1.2rem;
    color: #fff;
    margin: 0;
}

/* ===========================
   Main Content
=========================== */
.main-content {
    margin-left: 250px;
    margin-top: 60px;
    padding: 20px;
    transition: margin-left 0.3s;
    min-height: calc(100vh - 60px);
    background: rgba(15,28,44,0.85);
}

.main-content.collapsed {
    margin-left: 80px;
}

/* Cards */
.card {
    background: linear-gradient(145deg, #1a2a44, #0f1c2c);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    margin-bottom: 20px;
    flex: 1;
    color: #e0e0e0;
    transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.7);
}
.cards-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* ===========================
   Footer
=========================== */
.footer {
    position: fixed;
    bottom: 0;
    left: 250px;
    right: 0;
    height: 40px;
    background-color: #0a1b33;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ccc;
    transition: left 0.3s;
}
.footer.collapsed {
    left: 80px;
}

/* ===========================
   Responsive
=========================== */
@media (max-width: 768px) {
    .sidebar {
        left: -250px;
    }
    .sidebar.collapsed {
        left: 0;
    }
    .top-header, .main-content, .footer {
        left: 0;
        margin-left: 0;
    }
}