* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
    /* outline: 1px solid red; */
}

html,
body {
    height: 100%;
        margin: 0;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;

    background: url("img/back_6.jpg") no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    overflow-x: hidden;
    /* 🔥 important */
}

/* .wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: url("img/back_6.jpg") no-repeat center center/cover;
} */

/* slight Dark background */
/* body::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.55);
        z-index: 0;
    } */


.navbar,
.footer {
    
    margin-top: auto;
    position: relative;
    z-index: 1;
}

/* NAVBAR */
.navbar {
    position: sticky;
    top: 0;
    background: rgba(0, 0, 0, 0.7);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    transition: box-shadow 0.3s ease;
    backdrop-filter: blur(8px);
    background: rgba(0, 0, 0, 0.6);
}

.navbar.scrolled {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.navbar h2 {
    letter-spacing: 1px;
}

.nav-links a {
    color: white;
    margin-left: 20px;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #00d2ff;
}

.logoname {
    margin: 0;
    padding: 0;
    font-size: 2.2rem;
    font-family: "Calisto MT", "Times New Roman", serif;
    font-weight: 700;
    color: red;

    font-variant: small-caps;
    letter-spacing: 2px;

    /* display: flex; */
    align-items: center;
}

.logoname .big {
    font-family: "Calisto MT", "Times New Roman", serif;
    font-size: 2.5rem;
    font-variant: normal;
    /* prevents small-caps on big letters */
}

.logoname span {
    margin: 0 2px;
}

.logo-img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    /* makes it circular like your image */
    margin-right: 10px;
    object-fit: cover;
}

.error-msg {
    background: #ffebee;
    color: #d32f2f;
    padding: 10px;
    margin-top: 10px;
    border-radius: 5px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    transition: 0.5s;
}

/* MAIN CONTENT */
.main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

h1 {
    color: white;
    margin-bottom: 30px;
}

/* your old container now becomes centered card block */
.container {
    background: rgba(0, 0, 0, 0.6);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    backdrop-filter: blur(10px);
    margin-top: 0px;
}

.main-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.75);
    font-size: 1rem;
    margin-bottom: 25px;
}

/* 2x2 style */
.links {
    display: grid;
    grid-template-columns: repeat(2, 230px);
    gap: 25px;
    justify-content: center;
}

/* 3x2 style */
/* .links {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
        justify-content: center;
        max-width: 900px;
        margin: 0 auto;
    } */

.card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    text-decoration: none;
    color: white;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    min-height: 160px;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}

/* ICON */
.card .icon {
    font-size: 40px;
    margin-bottom: 10px;
}

/* TITLE */
.card h3 {
    margin-bottom: 8px;
    font-size: 20px;
}

/* DESCRIPTION */
.card p {
    font-size: 14px;
    opacity: 0.8;
}

/* HOVER EFFECT */
.card:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.4);
}

/* GLOW EFFECT */
.card::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    top: 0;
    left: -100%;
    transition: 0.5s;
}

.card:hover::before {
    left: 100%;
}

.card:nth-child(1) {
    border-top: 3px solid #00c6ff;
}

.card:nth-child(2) {
    border-top: 3px solid #f7971e;
}

.card:nth-child(3) {
    border-top: 3px solid #38ef7d;
}

.card:nth-child(4) {
    border-top: 3px solid #c471f5;
}

.layout {
    flex: 1;
    display: flex;
    /* border: 2px solid red; */
}

/*  .side {
    width: 18%;
    padding: 15px;
}  */

.center {
    width: 64%;
    /* balance remaining space */
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 20px;
}

/* LEFT + RIGHT */
.side {
    width: 20%;
    padding: 20px;
    color: white;
    backdrop-filter: blur(10px);
}

/* CENTER FIX */
.center {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 10px;
}



/* RIGHT SIDE */
.side.right {
    width: 20%;
    padding: 20px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
}

.side.right h3{
    margin-top: 5px;
    margin-bottom: 20px;
}

/* USER BOX */
.user-box {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(6px);
    padding: 12px;
    border-radius: 8px;
    color: #fff;
    margin-bottom: 15px;
}

.user-box h4 {
    margin-bottom: 10px;
    font-size: 14px;
}

.user-box input {
    width: 100%;
    margin-bottom: 8px;
    padding: 6px;
    border: none;
    border-radius: 4px;
    font-size: 12px;
}

.user-box button {
    width: 100%;
    padding: 6px;
    background: #3498db;
    border: none;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
}

.user-box button:hover {
    background: #2980b9;
}

#loginMsg {
    margin-top: 5px;
    font-size: 12px;
    color: #ffcccb;
}

/* NOTICE BOX */
.notice-box {
    height: 300px;
        /* FIXED height */
        overflow: hidden;
        /* IMPORTANT */
        position: relative;
}

/* SCROLL ANIMATION */
.notice-scroll {
    display: flex;
        flex-direction: column;
        animation: scrollUp 15s linear infinite;
}

.notice-scroll p {
    background: rgba(255, 255, 255, 0.1);
    margin: 8px 0;
    padding: 10px;
    border-radius: 8px;
    font-size: 14px;
}

.notice-scroll:hover {
    animation-play-state: paused;
}

.sidebar {
    width: 240px;
    height: 100vh;
    padding: 15px;

    background: rgba(0, 0, 0, 0.6);   /* dark transparent */
    backdrop-filter: blur(8px);       /* glass effect */
    -webkit-backdrop-filter: blur(8px);

    color: #fff;
}

.sidebar h2 {
    margin-bottom: 5px;
}

.sidebar .subtitle {
    font-size: 12px;
    color: #ccc;
    margin-bottom: 15px;
}

.menu {
    list-style: none;
    padding: 0;
}

.menu li {
    margin-bottom: 5px;
}

.menu li a .icon {
    margin-right: 8px;
    font-size: 16px;
}

.menu li a {
    display: block;
    padding: 8px 10px;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
}

.menu li a:hover {
    background: #34495e;
}

.menu-title {
    font-size: 11px;
    color: #bbbb;
    margin-top: 10px;
}

/* KEYFRAMES */
@keyframes scrollUp {
    0% {
        transform: translateY(100%);
    }

    100% {
        transform: translateY(-100%);
    }
}

/* FOOTER */
.footer {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    text-align: center;
    padding: 10px;
    font-size: 14px;
}

@media (max-width: 900px) {
    .links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .links {
        grid-template-columns: 1fr;
    }
}

