/* Import fonts: Keep Poppins as base, but adding a playful font for the colourful title */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Balsamiq+Sans:wght@700&display=swap'); /* For the colorful LOGIN title */

/* Reset margins and set the base font */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* Base body styling: using your custom background image that includes the header */
body.target-body {
    /* 👇 CHANGE THIS NAME to your exact image file name 👇 */
    background-image: url('classroom.png'); 
    
    background-size: cover; 
    background-position: top center; /* Keeps the header at the very top */
    background-repeat: no-repeat; 
    background-attachment: fixed;
    
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* MAIN CONTENT AREA: Centering the logo and login box */
.main-content-wrapper {
    margin: auto; /* Push content to exact center */
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 500px; /* Gives the whole layout a contained width */
    padding: 20px;
}

/* Centered Colorful Logo Styling */
.branding-logo {
    margin-bottom: 25px; /* Space between logo and box */
}

.main-logo-img {
    max-width: 250px; /* Limits the logo size */
    width: 100%;
}

/* LOGIN BOX CONTAINER: Rounded opaque cream box */
.login-box-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 400px;
    
    background-color: #ffefaf; /* The solid cream color from your Canva design image */
    padding: 40px;
    border-radius: 30px; /* Very rounded corners matching your image */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); /* Lighter shadow for a softer feel */
}

/* The colorful blue playful "LOGIN" title */
.colorful-title {
    font-family: 'Balsamiq Sans', cursive; 
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: #00a8cc; /* The exact colorful blue matching your Canva design title */
}

/* Updated input group and inputs */
.input-group {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 15px;
    margin-bottom: 20px;
}

input {
    width: 100%;
    padding: 15px 25px;
    border-radius: 30px; /* Pill shape */
    border: none;
    background-color: #b2d8d8; /* The dusty blue-grey color */
    color: #444; 
    font-size: 1rem;
    outline: none;
}

input::placeholder {
    color: #888; 
}

/* Main "Sign In" Button transformed into the playful orange button */
.btn-dark {
    width: 100%;
    padding: 18px 25px;
    border-radius: 30px; 
    border: none;
    
    background-color: #ffb74d; /* The orange-yellow color */
    color: white; 
    
    font-size: 1.1rem;
    font-weight: 600; 
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-dark:hover {
    background-color: #ffa726; /* A slightly deeper orange for hover feedback */
}


/* ==========================================
   RESTORED NAVBAR STYLES FOR DASHBOARD PAGES
   ========================================== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background-color: transparent; 
    width: 100%;
}

.logo {
    font-weight: 600;
    font-size: 1.2rem;
    color: #111;
}

.nav-links {
    font-weight: 500;
    font-size: 1.1rem;
    color: #111;
}

/* Styling for the 'Back to Dashboard' link */
.nav-links a {
    color: #5b21b6; /* The purple link color from your screenshot */
    text-decoration: underline;
    cursor: pointer;
}

.nav-links a:hover {
    color: #3b0764;
}


/* ==========================================
   PASSWORD TOGGLE ICON STYLES
   ========================================== */
.password-wrapper {
    position: relative;
    width: 100%;
}

/* Add padding to the right so long passwords don't type under the icon */
.password-wrapper input {
    padding-right: 45px; 
}

.eye-icon {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%); /* Perfectly centers it vertically */
    cursor: pointer;
    color: #888; /* Matches your placeholder color */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.eye-icon:hover {
    color: #444; /* Darkens slightly when hovered */
}


/* --- SLIDE-OUT SIDEBAR MENU --- */
.side-menu {
    position: fixed;
    top: 0;
    left: -320px; /* Hidden off-screen to the left */
    width: 320px;
    height: 100vh;
    background-color: #ffffff;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.15);
    z-index: 2000; /* Makes sure it sits on top of everything */
    transition: left 0.3s ease-in-out; /* The smooth sliding effect! */
    display: flex;
    flex-direction: column;
}

/* This class triggers the slide in */
.side-menu.active {
    left: 0; 
}

.menu-header {
    background-color: #f4cce0; /* Matches your pink navbar */
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-header h2 {
    margin: 0;
    font-size: 1.2rem;
    color: #532561; /* Dark purple */
    font-weight: 700;
}

.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    color: #532561;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.2s;
}

.close-btn:hover {
    transform: scale(1.2);
    color: #e53935; /* Red on hover */
}

.menu-links {
    list-style: none;
    padding: 10px 0;
    margin: 0;
}

.menu-links li {
    border-bottom: 1px solid #f0f0f0;
}

.menu-links a {
    display: block;
    padding: 18px 25px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: background-color 0.2s, color 0.2s, padding-left 0.2s;
}

.menu-links a:hover {
    background-color: #f7f6ec; 
    color: #00afee; /* Turns blue on hover */
    padding-left: 30px; /* Cool indentation effect on hover */
}

/* Dark overlay behind the menu */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black */
    z-index: 1999; /* Right below the menu */
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease-in-out, visibility 0.3s;
}

/* This class fades the background in */
.sidebar-overlay.active {
    visibility: visible;
    opacity: 1;
}

#highlighterBtn {
    background-color: #FCEBA7; /* Matches your yellow theme */
    border: 1px solid #F6D673; /* Thin black border just like the filter icon */
    border-radius: 50%; /* Makes it a perfect circle */
    width: 40px; /* Adjust size if needed */
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* Optional: slight shadow for depth */
    transition: all 0.2s ease;
}

/* Optional: Make it slightly darker when clicked/active */
#highlighterBtn.highlighter-active {
    background-color: #FDF9E6; 
    border-width: 2px;
}

/* --- IFRAME PREVIEW SECTION --- */
.preview-section {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 40px; 
    padding-bottom: 80px; 
    clear: both; /* Forces it below any floating elements */
}

.preview-container {
    background-color: #FDF4CD; /* The soft aesthetic yellow */
    border-radius: 40px; 
    padding: 40px;
    width: 85%; /* Forces it to be nice and wide */
    max-width: 1100px; /* Stops it from getting too crazy on huge monitors */
    min-width: 600px; /* Forces it to never shrink smaller than this */
    box-shadow: 0px 8px 25px rgba(0, 0, 0, 0.05); 
    border: 3px solid #FFF; /* Adds a clean white aesthetic rim */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.preview-title {
    color: #532561; 
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: 2px;
    margin-top: 0;
    margin-bottom: 25px;
    text-align: left; 
    font-family: 'Poppins', sans-serif;
}

.drive-iframe {
    width: 100%;
    height: 450px; /* Nice tall height so teachers can actually see the list */
    border: none;
    border-radius: 12px; 
    background-color: #FFFFFF; 
    box-shadow: inset 0px 4px 10px rgba(0, 0, 0, 0.05); /* Gives the iframe a sunken, embedded look */
}