* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Arial, sans-serif;
}

body, html {
    height: auto !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

/* 25% Blur Background */
.bg-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('img/lyceum_building.webp'); 
    background-size: cover;
    background-position: center;
    filter: blur(8px); /* 25% visual blur */
    z-index: -1;
    transform: scale(1.05);
}

.welcome-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle, #1e3a8a 0%, #172554 100%); 
    z-index: 100;
    /* Remove animation: overlayHide from here, we will handle it with the redirect */
}

/* Stage 1: "Welcome to..." Text */
.splash-text {
    position: absolute;
    font-size: 4.5rem;
    font-weight: 400; /* Thinner weight looks more modern */
    color: #ffffff; /* White text to match your theme */
    letter-spacing: 5px;
    opacity: 0;
    animation: fadeInOut 2s forwards;
}

/* Stage 2: Splash Logo */
.splash-logo {
    width: 750px; /* Slightly bigger for impact */
    height: auto;
    opacity: 0;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.2)); /* Subtle glow */
    animation: fadeInOut 2s forwards 2.5s;
}

.main-content {
    display: flex;
    height: 100vh;
    width: 100%;
    /* Remove the opacity: 0 and animation from here */
}

/* Fades an element in, waits, then fades out */
@keyframes fadeInOut {
    0% { opacity: 0; transform: scale(0.9); }
    30% { opacity: 1; transform: scale(1); }
    70% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.05); }
}

@keyframes overlayHide {
    to { opacity: 0; visibility: hidden; }
}

@keyframes finalFadeIn {
    to { opacity: 1; }
}

@keyframes fadeOut {
    to { opacity: 0; visibility: hidden; }
}

/* Layout Container */
.main-content {
    display: flex;
    height: 100vh;
    width: 100%;
    opacity: 0;
    animation: fadeIn 1s forwards 1s;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* Left Side - Branding */
.branding-side {
    flex: 1;
	position: relative;
	height: 100vh;
}

.logo-wrapper {
    display: flex;
    flex-direction: column; /* Stacked logos */
    gap: 30px;
}

.web-logo {
    position: absolute;
    height: auto;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.4));
    transition: transform 0.3s ease;
}

.school-logo {
    top: 40px;
    left: 40px;
    width: 500px; /* Standard size for school branding */
}

.caps-logo {
    bottom: 40px;
    left: 40px;
    width: 700px; /* Increased size to emphasize the system identity */
}

/* Right Side - Form */
.form-side {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-right: 5%;
}

.login-card {
    background: rgba(255, 255, 255, 0.9);
    width: 100%;
    max-width: 420px;
    padding: 50px;
    border-radius: 25px; /* Corner rounding */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3); /* Shadow */
    backdrop-filter: blur(5px);
}

/* Form Details */
h2 {
    margin-bottom: 30px;
    color: #222;
    font-size: 2rem;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
}

.input-group input {
    width: 100%;
    padding: 14px;
    border: 1.5px solid #ccc;
    border-radius: 10px;
    font-size: 1rem;
}

.form-options {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    font-size: 0.85rem;
}

.dashboard-wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

.dashboard-locked {
    display: flex;
    width: 100%;
    min-height: 100vh;
    filter: blur(5px);
    pointer-events: none;
    user-select: none;
}

.login-btn {
    width: 100%;
    padding: 15px;
    background: #1a73e8;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.login-btn:hover {
    background: #1557b0;
    transform: translateY(-2px);
}

.register-text {
    text-align: center;
    margin-top: 25px;
}

.register-link {
    color: #1a73e8;
    text-decoration: none;
    font-weight: bold;
}

/* --- REGISTRATION SELECTION STYLES --- */

.selection-page {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

/* Logos for this page */
.top-left {
    position: absolute;
    top: 30px;
    left: 30px;
    width: 350px; /* Same size as requested */
}

.top-right {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 350px; /* Same size as requested */
}

.selection-container {
    display: flex;
    justify-content: center; /* Horizontal center */
    align-items: center;     /* Vertical center */
    gap: 40px;              /* Space between the two cards */
    min-height: 100vh;       /* Gives space for the top logos and bottom text */
}

/* Bigger Choice Cards */
.choice-card {
    background: rgba(255, 255, 255, 0.9);
    width: 320px;           /* Increased from 320px */
    height: 400px;          /* Increased from 400px */
    border-radius: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: #333;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Added a slight bounce */
    border: 5px solid transparent;
}

.choice-card:hover {
    transform: translateY(-20px) scale(1.02); /* Lifts and slightly grows */
    background: #ffffff;
    border-color: #1e3a8a;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

/* Larger Icons */
.card-icon img {
    width: 175px;           /* Increased from 175px */
    height: auto;
    margin-bottom: 30px;
}

/* Bigger Text */
.choice-card h3 {
    font-size: 1.8rem;      /* Increased from 1.8rem */
    letter-spacing: 3px;
    font-weight: 800;
    margin: 0;
}

/* Bottom Center Link */
.bottom-center {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.bottom-center a {
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 20px;
    border-radius: 50px;
    transition: 0.3s;
}

.bottom-center a:hover {
    background: #1e3a8a;
}
/* --- UPDATED HIDDEN ADMIN LINK --- */

.admin-trigger {
    position: fixed;
    bottom: 0;
    right: 0;
    padding: 20px; /* Creates a small hover zone in the corner */
    z-index: 100;
}

.admin-trigger a {
    color: rgba(255, 255, 255, 0.8); /* White but slightly transparent */
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.5); /* Semi-black pill background */
    padding: 8px 15px;
    border-radius: 5px;
    
    opacity: 0; 
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s;
}

/* ONLY show when the mouse is specifically hovering the trigger zone */
.admin-trigger:hover a {
    opacity: 1;
    visibility: visible;
}

/* Optional: Slight highlight when hovering the text itself */
.admin-trigger a:hover {
    background: #1e3a8a; /* Your theme blue */
    color: #ffffff;
}

/* Alumni Specific Layout */

/* Centering and card width */
.center-layout {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

/* Force show class for the 5-second animation */
.force-show {
    transform: translateX(0) !important;
}

/* Identical logo sizing to match Admin Portal */
.admin-page .top-left, 
.admin-page .top-right {
    position: absolute;
    top: 30px;
    width: 400px;
}

/* Make Registration Card Wider as requested */
.registration-card {
    max-width: 600px; /* Increased from 420px */
    width: 90%;
}

/* Updated Back Button Animations */
.back-pill, .back-pill-left {
    /* ... existing styles ... */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* This class will be added by JS to show the button for 5 seconds */
.force-show {
    transform: translateX(0) !important;
}

.alumni-layout {
    display: flex;
    justify-content: flex-start; /* Form on the left */
    align-items: center;
    padding-left: 5%;
}

.form-side-left {
    flex: 1;
    max-width: 500px;
    z-index: 2; /* Keeps form on top of any logo shadow */
}

.form-header {
    text-align: center;
    margin-bottom: 20px;
}

.form-icon-top {
    width: 60px;
    margin-bottom: 10px;
}

/* Horizontal input rows for Names */
.input-row {
    display: flex;
    gap: 15px;
}

/* Position the System Logo on the far right of the alumni page */
.logo-right-side {
    position: absolute;
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
    width: 600px; /* Large as requested */
    filter: drop-shadow(0 15px 30px rgba(0,0,0,0.4));
    z-index: 1;
}

/* Password meter base */
.strength-meter {
    height: 6px;
    background: #e0e0e0;
    margin-top: 8px;
    border-radius: 10px;
    overflow: hidden;
}

.bar {
    height: 100%;
    width: 0%;
    transition: width 0.3s ease, background 0.3s ease;
}

/* Strength Colors */
.weak { background: #ff4d4d; width: 30%; }
.medium { background: #ffd93d; width: 60%; }
.strong { background: #2ecc71; width: 100%; }

.show-pass-label {
    display: block;
    font-size: 0.8rem;
    margin-top: 5px;
    cursor: pointer;
    color: #555;
}

/* Right-side Back Trigger */
.back-trigger-zone {
    position: fixed;
    right: 0;
    top: 0;
    height: 100vh;
    width: 100px; /* Hover area */
    display: flex;
    align-items: center;
    justify-content: flex-end;
    z-index: 10;
}

.back-pill {
    background: #1e3a8a;
    color: white;
    padding: 15px 25px;
    text-decoration: none;
    border-radius: 50px 0 0 50px;
    font-weight: bold;
    transform: translateX(100%); /* Hidden to the right */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.back-trigger-zone:hover .back-pill {
    transform: translateX(0); /* Slides in on hover */
}

/* --- INDUSTRY PAGE SPECIFIC --- */

.industry-layout {
    display: flex;
    justify-content: flex-end; /* Pushes form to the right */
    align-items: center;
    padding-right: 5%;
}

.logo-left-side {
    position: absolute;
    top: 50%;
    left: 5%;
    transform: translateY(-50%);
    width: 600px;
    filter: drop-shadow(0 15px 30px rgba(0,0,0,0.4));
}

/* Back button for Industry (Slides in from the Left) */
.back-trigger-zone-left {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 100px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    z-index: 10;
}

.back-pill-left {
    background: #1e3a8a;
    color: white;
    padding: 15px 25px;
    text-decoration: none;
    border-radius: 0 50px 50px 0;
    font-weight: bold;
    transform: translateX(-100%); /* Hidden to the left */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.back-trigger-zone-left:hover .back-pill-left {
    transform: translateX(0);
}

/* --- ADMIN PAGE SPECIFIC --- */

/* Centering the entire main content area */
.center-layout {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100%;
}

.admin-card {
    border-top: 5px solid #1e3a8a; /* Added a blue accent border at the top */
    background: rgba(255, 255, 255, 0.98); /* Slightly more solid than user cards */
}

.admin-btn {
    background: #1e3a8a; /* Uses the darker blue theme */
}

.admin-btn:hover {
    background: #172554;
}

.form-header p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
    text-align: center;
}

/* Positioning for the logos on the Admin page */
.admin-page .top-left {
    position: absolute;
    top: 30px;
    left: 30px;
    width: 400px;
}

.admin-page .top-right {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 400px;
}

/* --- DASHBOARD STYLES --- */

.dashboard-body {
    display: flex;
    width: 100%;          /* ADD THIS */
    min-height: 100vh;    /* ADD THIS */
    background: #f0f4f8;  /* also consider a lighter bg color */
    overflow: auto;
}

/* Sidebar */
.sidebar {
    background: var(--sidebar-bg);
}

.sidebar-header {
    padding: 30px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(170, 170, 170, 0.1);
}

.sidebar-logo {
    width: 250px;
    margin-bottom: 10px;
}

.nav-links {
    list-style: none;
    padding: 20px 0;
}

.nav-links li {
    padding: 15px 25px;
    transition: 0.3s;
}

.nav-links li a {
    color: rgba(122, 122, 122, 0.7);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-links li:hover, .nav-links li.active {
    background: rgba(255,255,255,0.1);
    border-left: 4px solid #3b82f6;
}

.nav-links li.active a, .nav-links li:hover a {
    color: white;
}

.logout-link {
    margin-top: auto;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Main Content Area */
.dashboard-main {
    margin-left: 260px; /* Same as sidebar width */
    width: calc(100% - 260px);
    min-height: 100vh;
}

.top-bar {
    height: 70px;
    background: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.search-box {
    background: #f4f7fe;
    padding: 10px 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-box input {
    border: none;
    background: none;
    outline: none;
}

.admin-profile {
    display: flex;
    align-items: center;
    gap: 15px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ccc;
}

/* Content Layout */
.content-wrapper {
    padding: 40px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.stat-card i {
    font-size: 2.5rem;
    color: #1e3a8a;
}

/* Data Table */
.card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.data-table th {
    text-align: left;
    padding: 15px;
    border-bottom: 2px solid #f4f7fe;
    color: #666;
}

.data-table td {
    padding: 15px;
    border-bottom: 1px solid #f4f7fe;
}

.status-pill {
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
}

.pending { background: #fff3cd; color: #856404; }
.verified { background: #d4edda; color: #155724; }

/* Table search and filters */
.table-controls {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.table-search {
    padding: 8px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    width: 300px;
}

/* Partner Grid Style */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.partner-item {
    text-align: center;
}

.partner-logo-placeholder {
    width: 80px;
    height: 80px;
    background: #f1f5f9;
    margin: 0 auto 15px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--accent-gray);
}

.partner-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-top: 15px;
    color: var(--accent-gray);
}

.view-btn, .export-btn, .add-btn {
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    background: white;
    cursor: pointer;
    border-radius: 4px;
    transition: 0.3s;
}

.add-btn {
    background: var(--sidebar-bg);
    color: white;
}

.view-btn:hover {
    background: #f8fafc;
}

.error-message {
    background: #e53935;
    color: #fff;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
}

.success-message {
    background: 73C24C;
    color: #fff;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
}
