/* --------------------------------------------------------
Style for MindSpark
version: 1.2
date: 08 Dec 2025
author: Deepak Rawat  +91 9720548172
Powered By: MindSpark
----------------------------------------------------------*/

@import url("theme.css"); /* Load color + font variables */

/* --------------------------------------------------------
GLOBAL FONT
----------------------------------------------------------*/
@font-face {
    font-family: "Inter";
    font-weight: 400;
    font-style: normal;
    src: url("fonts/Inter/static/Inter_18pt-Regular.ttf") format("truetype");
}

body {
    font-family: "Inter", sans-serif !important;
    background: var(--neutral-50);
    color: var(--neutral-400);
}

/* --------------------------------------------------------
BUTTON GLOBAL DESIGN (REUSABLE FOR ADMIN + STUDENT)
----------------------------------------------------------*/

.btn-primary {
    background: var(--primary-600);
    color: var(--white);
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-size: var(--font-button-size);
    font-weight: var(--font-button-weight);
    transition: 0.25s;
}
.btn-primary:hover {
    background: var(--primary-500);
}

/* Secondary button */
.btn-secondary {
    background: var(--neutral-200);
    color: var(--neutral-700);
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-size: var(--font-button-size);
    font-weight: var(--font-button-weight);
}
.btn-secondary:hover {
    background: var(--neutral-300);
}

/* For student theme later */
.student-theme .btn-primary {
    background: #4CAF50;
}
.student-theme .btn-primary:hover {
    background: #43A047;
}

/* --------------------------------------------------------
LOGIN PAGE FIXES
----------------------------------------------------------*/


.login-right-panel {
    background: linear-gradient(135deg, var(--login-bg-start), var(--login-bg-end));
}


/* Fade + Pop animation for success card */
@keyframes fadePop {
    0% {
        opacity: 0;
        transform: scale(0.85) translateY(20px);
    }
    60% {
        opacity: 1;
        transform: scale(1.02) translateY(0);
    }
    100% {
        transform: scale(1);
    }
}

.success-container {
    animation: fadePop 0.8s ease-out forwards;
}

/* -----------------------------------
   SIDEBAR MAIN
----------------------------------- */
.sidebar {
    width: 260px;
    background: #1A6172;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    padding-top: 10px;
    transition: 0.3s ease;
    transform: translateX(-260px); /* Mobile hidden */
    z-index: 40;
}

/* Desktop always visible */
@media(min-width: 1024px) {
    .sidebar {
        transform: translateX(0);
    }
}

/* -----------------------------------
   MOBILE OVERLAY
----------------------------------- */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 30;
}

/* -----------------------------------
   LOGO WRAPPER & TOP RIGHT ICON
----------------------------------- */
.logo-wrapper {
    width: 100%;
    position: relative;
    padding-bottom: 10px;
}

.logo-section {
    display: flex;
    justify-content: center;
    width: 100%;
}

.logo {
    width: 65px;
    height: 65px;
    background: white;
    border-radius: 50%;
    padding: 5px;
}

.sidebar-menu-icon {
    position: absolute;
    right: 15px;
    top: 10px;
    background: transparent;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
}

/* -----------------------------------
   BORDER BELOW LOGO
----------------------------------- */
.logo-border {
    width: 100%;
    height: 1px;
    background: rgba(255,255,255,0.3);
    margin-bottom: 15px;
}

/* -----------------------------------
   MENU LIST
----------------------------------- */
.menu {
    list-style: none;
    padding: 0;
    margin-top: 10px;
}

/* NORMAL MENU BUTTON (NO BACKGROUND) */
.menu-btn {
    width: 90%;
    margin: 8px auto;
    padding: 12px 14px;
    border-radius: 8px;
    background: transparent;  /* DEFAULT WITHOUT BG */
    color: white;
    display: flex;
    align-items: center;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: 0.22s ease;
}

/* Hover effect */
.menu-btn:hover {
    background: rgba(255,255,255,0.06);
}

/* ACTIVE MENU BUTTON (ONLY THIS HAS BG) */
.menu-btn.active {
    background: #2A7381;  /* ACTIVE BG COLOR */
    font-weight: bold;
}

/* ICON INSIDE MENU */
.icon {
    font-size: 18px;
    margin-right: 12px;
}

/* -----------------------------------
   LOGOUT SECTION
----------------------------------- */
.logout {
    position: absolute;
    bottom: 20px;
    left: 25px;
}

.logout a {
    color: #DDE8EA;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logout-icon {
    margin-right: 8px;
}




/* ======================
   LOGIN PAGE MOBILE VIEW
   ====================== */
@media (max-width: 767px){

    /* TOP GRADIENT HEADER */
			.login-page .mobile-header {
			background: linear-gradient(135deg, var(--login-bg-start), var(--login-bg-end));
			padding: 25px 22px;
			color: white;
			text-align: center;
			width:100%;
		}
	.login-page{
		    flex-direction: column;
	}

    /* WHITE FORM CARD (Figma style) */
    .login-page .login-form-section {
        background: transparent;
        padding: 35px 22px !important;
        margin-top: -60px;             /* Pull under gradient */
        margin-left: 20px;
        margin-right: 20px;
        border-radius: 25px;
        box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    }

    /* Hide right panel in mobile */
    .login-page .login-right-panel {
        display: none !important;
    }
}




