@media (max-width: 600px) {
    footer {
        font-size: 0.95rem;
        padding: 8px 0;
        position: static;
        width: 100vw;
        min-height: 40px;
        box-sizing: border-box;
    }
footer {
    .main-content {
        margin-bottom: 50px;
    }
}
footer {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    background: #007bf0;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    font-size: 1rem;
    z-index: 100;
    letter-spacing: 0.5px;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.04);
}
/* Top Navigation for Mobile */
.topnav {
    display: none;
    width: 100%;
    background: linear-gradient(90deg, #007bf0 60%, #005fa3 100%);
    color: #fff;
    padding: 12px 0 12px 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    position: fixed;
    left: 0;
    z-index: 20;
}
.topnav-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin-right: 18px;
}
/* .topnav a cleaned up */
.topnav a {
    color: #fff;
    text-decoration: none;
    margin-right: 14px;
}
.topnav a:hover {
    text-decoration: underline;
}
body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
}
/* Sidebar */
.sidebar {
    width: 200px;
    background: linear-gradient(180deg, #007bf0 60%, #005fa3 100%);
    position: fixed;
    height: 100vh;
    padding-top: 30px;
    color: #fff;
    box-shadow: 2px 0 8px rgba(0,0,0,0.07);
    z-index: 10;
    transition: width 0.3s;
}

.sidebar h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.6rem;
    letter-spacing: 1px;
}

.sidebar a {
    display: block;
    color: #fff;
    padding: 12px 22px;
    text-decoration: none;
    font-size: 1.05rem;
    border-left: 3px solid transparent;
    transition: background 0.2s, border-color 0.2s;
}

.sidebar a:hover, .sidebar a.active {
    background: #005fa3;
    border-left: 3px solid #fff;
}

/* Main Content */
.main-content {
    margin-left: 200px;
    padding: 32px 24px 60px 24px;
    min-height: 100vh;
    background: #f4f6fa;
    transition: margin-left 0.3s;
}

/* Header */
.header {
    background: #007bf0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    margin-bottom: 24px;
}

.header .title {
    font-size: 1.5rem;
    color: white;
    font-weight: 600;
    letter-spacing: 1px;
}

.auth-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    margin-top: 0;
    margin-bottom: 0;
}

.btn {
    border: none;
    padding: 7px 18px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
}

.btn.login, .btn.register {
    text-decoration: none;
}

.login {
    background: white;
    color: #007bf0  ;
    font-weight: bold;
}

.login:hover {
    background: #005fa3;
}


.register {
    background: #fff;
    color: #007bf0;
    border: 1px solid #007bf0;
    font-weight: bold;
}

.register:hover {
    background: #218838;
}

/* Table */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 18px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

table th, table td {
    border: 1px solid #e3e6ed;
    padding: 12px 14px;
    text-align: left;
    font-size: 1rem;
}

table thead th {
    background: #007bf0;
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Footer */
footer {
    background: #007bf0;
    color: #fff;
    text-align: center;
    padding: 12px 0;
    position: fixed;
    bottom: 0;
    left: 200px;
    width: calc(100% - 200px);
    font-size: 1rem;
    letter-spacing: 1px;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.04);
}

/* Responsive Design */
@media (max-width: 800px) {
    .topnav {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
    }
    .sidebar {
        display: none;
    }
    .main-content {
        margin-left: 0;
        margin-top: 56px;
    }
}
@media (max-width: 600px) {
    .sidebar {
        width: 60px;
        padding-top: 18px;
    }
    .sidebar h2 {
        font-size: 1rem;
        margin-bottom: 18px;
    }
    .sidebar a {
        font-size: 0.9rem;
        padding: 10px 10px;
    }
    .main-content {
        margin-left: 60px;
        padding: 18px 8px 60px 8px;
    }
    footer {
        left: 60px;
        width: calc(100% - 60px);
        font-size: 0.9rem;
    }
    .auth-buttons {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 10px;
        margin-top: 0;
        margin-bottom: 0;
    }
}