/* ===== UNIVERSAL HEADER STYLE ===== */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 40px 20px;
    border-radius: 0 0 15px 15px;
    margin-bottom: 40px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    letter-spacing: 3px;
}

.header h3 {
    font-size: 1.2em;
    margin-bottom: 5px;
    font-weight: 400;
}

.header p {
    font-size: 0.95em;
    color: #e6e6e6;
    margin: 0;
}

/* ===== PAGE CONTAINER ===== */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    background-color: #f4f6fa;
}

/* ===== CARD STYLE ===== */
.card2 {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 1000px;
    margin: 20px auto;
    text-align: center;
}

/* ===== FLEX CARD ===== */
.card-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    border-radius: 15px;
    background: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    width: 90%;
    max-width: 800px;
    margin: 20px auto;
}

.welcome-text {
    font-size: 1.5em;
    font-weight: bold;
    color: #333;
}

.dashboard-text {
    font-size: 1.2em;
    color: #555;
}

/* ===== BUTTON STYLE ===== */
button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    align-self: center;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    transition: 0.3s;
}

button:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

a.logout-btn {
    /* Inherits base button styles */
    background: linear-gradient(135deg, #ff6b6b 0%, #c0392b 100%);
    color: white;
    text-decoration: none;
    display: inline-block; /* Ensures it behaves like a block but flows with text */
    margin-top: 10px; /* From the old inline style */
    /* Ensure it behaves like other buttons */
    padding: 10px 18px; /* Standardized padding */
    border-radius: 8px; /* Standardized radius */
}

a.logout-btn:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, #e55039 0%, #b33939 100%);
}

/* ===== DELETE BUTTON ===== */
.delete-btn {
    /* Add properties to make it look like a button */
    display: inline-block;
    padding: 10px 18px;
    border-radius: 8px;
    color: white;
    text-decoration: none;
    background: linear-gradient(135deg, #ff6b6b 0%, #c0392b 100%);
}

.delete-btn:hover {
    background: linear-gradient(135deg, #e55039 0%, #b33939 100%);
}

footer {
    text-align: center;
    padding: 15px;
    color: #666;
    font-size: 0.9em;
}

/* ===== Animated Graduation Hat Background ===== */
.animation-container {
    position: fixed; /* Stays in place during scroll */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Puts it behind all other content */
    overflow: hidden; /* Hides hats when they go off-screen */
    background: linear-gradient(to bottom, #6cc9fe, #ffffff); /* Example: Light blue to white gradient */
}

.hat {
    position: absolute;
    display: block;
    list-style: none;
    font-size: 20px; /* Base size of the hat */
    color: rgba(118, 75, 162, 0.4); /* Semi-transparent purple */
    bottom: -150px; /* Start below the screen */
    animation: animate 25s linear infinite; /* The animation magic */
}

/* Position and size variations for each hat */
.hat:nth-child(1) { left: 25%; width: 100px; height: 100px; animation-delay: 0s; }
.hat:nth-child(2) { left: 10%; width: 25px; height: 25px; animation-delay: 2s; animation-duration: 12s; }
.hat:nth-child(3) { left: 70%; width: 25px; height: 25px; animation-delay: 4s; }
.hat:nth-child(4) { left: 40%; width: 75px; height: 75px; animation-delay: 0s; animation-duration: 18s; }
.hat:nth-child(5) { left: 65%; width: 25px; height: 25px; animation-delay: 0s; }
.hat:nth-child(6) { left: 75%; width: 130px; height: 130px; animation-delay: 3s; }
.hat:nth-child(7) { left: 35%; width: 180px; height: 180px; animation-delay: 7s; }
.hat:nth-child(8) { left: 50%; width: 30px; height: 30px; animation-delay: 15s; animation-duration: 45s; }
.hat:nth-child(9) { left: 20%; width: 20px; height: 20px; animation-delay: 2s; animation-duration: 35s; }
.hat:nth-child(10) { left: 85%; width: 180px; height: 180px; animation-delay: 0s; animation-duration: 11s; }

/* The animation keyframes that define the movement */
@keyframes animate {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(-120vh) rotate(720deg); /* Move up and off the screen while rotating */
        opacity: 0;
    }
}
