body {
    margin: 0;
    font-family: Arial;
    background: #f5f5f5;
}

/* Login */
.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.login-box {
    width: 90%;
    max-width: 350px;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
}

.login-box input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
}

.login-box button {
    width: 100%;
    padding: 10px;
    background: #007bff;
    color: #fff;
    border: none;
}

/* Container */
.container {
    padding: 15px;
}

/* Cards */
.card {
    background: #fff;
    padding: 15px;
    margin: 10px 0;
    border-radius: 10px;
    text-align: center;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

/* Topbar */
.topbar {
    position: sticky;
    top: 0;
    background: #007bff;
    color: white;
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar .title {
    font-size: 16px;
    font-weight: bold;
}

.topbar .logout a {
    color: white;
    text-decoration: none;
    font-size: 14px;
}

  .bottom-nav {
    position: fixed;
    bottom: 10px;
    
    /* FIX: keep inside screen */
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 20px); /* always fits */

    height: 65px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);

    display: flex;
    justify-content: space-around;
    align-items: center;

    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    z-index: 1000;
}

/* Each item */
.nav-item {
    flex: 1;
    text-align: center;
    text-decoration: none;
    color: #888;
    font-size: 11px;
    font-weight: 500;
    transition: all 0.25s ease;
}

/* Icon */
.nav-item .icon {
    display: block;
    font-size: 20px;
    line-height: 1;
    margin-bottom: 3px;
    transition: 0.25s;
}

/* Label */
.nav-item .label {
    display: block;
    font-size: 11px;
    letter-spacing: 0.3px;
}

/* Active state */
.nav-item.active {
    color: #007bff;
}

/* Smooth lift effect */
.nav-item.active .icon {
    transform: translateY(-4px);
}

/* Optional glow for active */
.nav-item.active {
    font-weight: 600;
}

/* Tap effect */
.nav-item:active {
    transform: scale(0.95);
}