/* ===================================
   IMMERSION HUB - MAIN STYLESHEET
   =================================== */

/* CSS Variables - STI Theme Colors */
:root {
    --primary-color: #003087;        /* STI Blue */
    --primary-dark: #001f5c;         /* Darker Blue */
    --primary-light: #0050d0;        /* Lighter Blue */
    --secondary-color: #ffc72c;      /* STI Yellow */
    --accent-color: #ffc72c;         /* STI Yellow */
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #ffc72c;
    --info-color: #0050d0;

    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;

    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-dark: #111827;

    --border-color: #e5e7eb;
    --border-light: #f3f4f6;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;

    --transition: all 0.3s ease;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
    transition: var(--transition);
}

input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    outline: none;
    transition: var(--transition);
}

/* Container */
.container {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 0 clamp(1rem, 2vw, 2.5rem);
}

/* About and How It Works keep a centered, readable width rather than the
   full-bleed layout used by the navbar and hero. */
.about .container,
.how-it-works .container {
    max-width: 1200px;
    padding: 0 1.5rem;
}

/* ===================================
   BUTTONS
   =================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: var(--radius);
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-white {
    background-color: white;
    color: var(--primary-color);
}

.btn-white:hover {
    background-color: var(--bg-secondary);
    transform: translateY(-2px);
}

.btn-outline-white {
    background-color: transparent;
    color: white;
    border-color: white;
}

.btn-outline-white:hover {
    background-color: white;
    color: var(--primary-color);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-block {
    width: 100%;
}

/* ===================================
   HEADER / NAVBAR
   =================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    background-color: white;
    box-shadow: var(--shadow-md);
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    transition: var(--transition);
}

.logo i {
    font-size: 1.75rem;
    color: #ffc72c;
}

.header.scrolled .logo {
    color: var(--primary-color);
}
.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: white;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header.scrolled .nav-link {
    color: var(--text-primary);
}

.header.scrolled .nav-link:hover,
.header.scrolled .nav-link.active {
    color: var(--primary-color);
}

.nav-buttons {
    display: flex;
    gap: 1rem;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: var(--transition);
}

.header.scrolled .hamburger span {
    background-color: var(--primary-color);
}

/* ===================================
   HERO SECTION
   =================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.3) 0%, transparent 100%);
    pointer-events: none;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    color: white;
}

.hero-title {
    font-size: clamp(2rem, 3.4vw, 4.25rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-title .highlight {
    color: var(--secondary-color);
}

.hero-description {
    font-size: clamp(1rem, 1.15vw, 1.375rem);
    max-width: 40em;
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 3rem;
}

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

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.8;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
}

.hero-illustration-simple {
    position: relative;
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sti-students-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    margin: 0 auto;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.4));
}

/* Desktop: let the image column fill the hero's height and sit the
   students on the bottom edge of the section. */
@media (min-width: 1025px) {
    .hero {
        align-items: stretch;
    }

    .hero-container {
        min-height: calc(100vh - 80px);
        align-items: stretch;
    }

    .hero-content {
        align-self: center;
    }

    .hero-image {
        align-items: flex-end;
    }

    .hero-illustration-simple {
        max-width: none;
        height: 100%;
        align-items: flex-end;
    }

    .sti-students-image {
        width: auto;
        max-width: 100%;
        max-height: calc(100vh - 110px);
    }

    .sti-students-shadow {
        display: none;
    }
}

.sti-students-shadow {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 30px;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.3) 0%, transparent 70%);
    border-radius: 50%;
}

.sti-logo-large {
    width: 380px;
    height: auto;
    filter: drop-shadow(0 25px 40px rgba(0, 0, 0, 0.4));
    animation: float 4s ease-in-out infinite;
}

.sti-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 280px;
    height: auto;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.3));
    animation: float 3s ease-in-out infinite;
}

.sti-logo-small {
    width: 180px;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
}

.sti-logo-auth {
    width: 160px;
    height: auto;
    filter: brightness(0) invert(1) drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* ===================================
   SECTIONS
   =================================== */
.section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

/* ===================================
   ABOUT SECTION
   =================================== */
.about {
    background-color: var(--bg-secondary);
}

.about-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.about-feature i {
    color: var(--success-color);
    font-size: 1.25rem;
}

.about-feature span {
    color: var(--text-primary);
    font-weight: 500;
}

.about-image {
    display: flex;
    justify-content: center;
}

.about-illustration {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-xl);
}

.about-illustration img {
    width: 200px;
    height: auto;
    filter: brightness(0) invert(1);
}

.about-illustration i {
    font-size: 8rem;
    color: white;
}

/* ===================================
   FEATURES SECTION
   =================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-light);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon i {
    font-size: 1.5rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===================================
   COMPANIES SECTION
   =================================== */
.companies {
    background-color: var(--bg-secondary);
}

.companies-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.company-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.company-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.company-logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.company-logo i {
    font-size: 2rem;
    color: white;
}

.company-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.company-industry {
    display: block;
    font-size: 0.875rem;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.company-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.companies-cta {
    text-align: center;
    margin-top: 3rem;
}

/* ===================================
   HOW IT WORKS SECTION
   =================================== */
.steps-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.step-item {
    text-align: center;
    position: relative;
}

/* Connector runs through the middle of the number circles, from the edge
   of this step's circle to the edge of the next one (across the 2rem gap). */
.step-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 19px;
    left: calc(50% + 28px);
    width: calc(100% + 2rem - 56px);
    height: 2px;
    background: linear-gradient(to right, var(--primary-light), var(--primary-color));
}

.step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    position: relative;
    z-index: 1;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: var(--bg-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    border: 3px solid var(--primary-light);
}

.step-icon i {
    font-size: 2rem;
    color: var(--primary-color);
}

.step-item h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.step-item p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===================================
   CTA SECTION
   =================================== */
.cta {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.cta-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    background-color: var(--bg-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 4rem 0 2rem;
}

.footer-logo {
    margin-bottom: 1.5rem;
}

.sti-logo-footer {
    width: 120px;
    height: auto;
    filter: brightness(0) invert(1);
}

.sti-logo-white {
    width: 140px;
    height: auto;
    filter: brightness(0) invert(1);
}

.footer-description {
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-about .logo {
    margin-bottom: 1rem;
}

.footer-about p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
}

.footer-links h4,
.footer-contact h4 {
    color: white;
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.footer-links ul,
.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact i {
    color: var(--primary-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
}

/* ===================================
   AUTH PAGES (Login & Register)
   =================================== */
.auth-page {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-container {
    width: 100%;
    max-width: 1100px;
}

.auth-card {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.auth-card.register-card {
    grid-template-columns: 1fr 1.2fr;
}

.auth-left {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.auth-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.auth-branding {
    position: relative;
    z-index: 1;
}

.auth-branding .logo {
    margin-bottom: 2rem;
    display: inline-flex;
}

.auth-branding h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.auth-branding p {
    opacity: 0.9;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.auth-illustration {
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem auto 0;
}

.auth-illustration img {
    width: 150px;
    height: auto;
    filter: brightness(0) invert(1) drop-shadow(0 5px 15px rgba(0, 0, 0, 0.2));
}

.auth-right {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-form-container {
    max-width: 450px;
    margin: 0 auto;
    width: 100%;
}

.auth-header {
    margin-bottom: 2rem;
}

.auth-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--text-secondary);
}

/* Role Tabs */
.role-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.role-tab {
    flex: 1;
    padding: 1rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-weight: 500;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.role-tab i {
    font-size: 1.125rem;
}

.role-tab.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.role-tab:hover:not(.active) {
    border-color: var(--primary-light);
    color: var(--primary-color);
}

/* Forms */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group label i {
    color: var(--primary-light);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    background: white;
    color: var(--text-primary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.password-input {
    position: relative;
}

.password-input input {
    width: 100%;
    padding-right: 3rem;
}

/* Hide native browser password reveal button (Edge / Chrome) */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear { display: none; }

.toggle-password {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    background: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
}

.toggle-password:hover {
    color: var(--primary-color);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    accent-color: var(--primary-color);
}

.forgot-link {
    font-size: 0.875rem;
    color: var(--primary-color);
    font-weight: 500;
}

.forgot-link:hover {
    text-decoration: underline;
}

.auth-form .btn {
    margin-top: 0.5rem;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.auth-footer p {
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--primary-color);
    font-weight: 600;
}

.auth-back {
    text-align: center;
    margin-top: 1rem;
}

.auth-back a {
    color: var(--text-secondary);
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-back a:hover {
    color: var(--primary-color);
}

/* File Upload */
.file-upload {
    position: relative;
}

.file-upload input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 1;
}

.file-upload-label {
    padding: 2rem;
    border: 2px dashed var(--border-color);
    border-radius: var(--radius);
    text-align: center;
    background: var(--bg-secondary);
    transition: var(--transition);
}

.file-upload:hover .file-upload-label {
    border-color: var(--primary-light);
    background: rgba(59, 130, 246, 0.05);
}

.file-upload-label i {
    font-size: 2rem;
    color: var(--primary-light);
    margin-bottom: 0.5rem;
    display: block;
}

.file-upload-label span {
    display: block;
    color: var(--text-primary);
    font-weight: 500;
}

.file-upload-label small {
    color: var(--text-secondary);
    font-size: 0.75rem;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

/* Tablet */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content {
        order: 2;
    }
    
    .hero-image {
        order: 1;
    }

    .hero-container {
        gap: 2rem;
    }

    .hero-illustration-simple {
        max-width: 480px;
    }

    .sti-students-image {
        max-height: 50vh;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-illustration {
        width: 300px;
        height: 300px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .companies-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .steps-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .step-item:not(:last-child)::after {
        display: none;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        box-shadow: var(--shadow-lg);
        transition: var(--transition);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        color: var(--text-primary);
    }
    
    .nav-buttons {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .hero-title {
        font-size: 2rem;
    }

    .hero-illustration-simple {
        max-width: 380px;
    }

    .sti-students-image {
        max-height: 45vh;
    }

    .hero-stats {
        gap: 1.5rem;
    }
    
    .section {
        padding: 4rem 0;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .companies-grid {
        grid-template-columns: 1fr;
    }
    
    .steps-container {
        grid-template-columns: 1fr;
    }
    
    .cta-title {
        font-size: 1.75rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .auth-card,
    .auth-card.register-card {
        grid-template-columns: 1fr;
    }
    
    .auth-left {
        display: none;
    }
    
    .auth-right {
        padding: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .role-tabs {
        flex-direction: column;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .about-illustration {
        width: 200px;
        height: 200px;
    }
    
    .about-illustration i {
        font-size: 4rem;
    }
}

/* ===================================
   ANIMATIONS
   =================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fadeIn {
    animation: fadeIn 0.6s ease;
}

.animate-slideUp {
    animation: slideUp 0.6s ease;
}

.animate-slideInLeft {
    animation: slideInLeft 0.6s ease;
}

.animate-slideInRight {
    animation: slideInRight 0.6s ease;
}

/* Reveal on Scroll */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================
   DASHBOARD STYLES
   =================================== */

/* Dashboard Layout */
.dashboard-body {
    background-color: #f5f7fa;
    overflow-x: hidden;
}

.dashboard-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    /* Layered fallbacks: dvh tracks the mobile URL bar, and --app-height is
       measured from the visible viewport by js/sidebar.js, which stays correct
       under device emulation where viewport units can resolve against the
       real window instead of the emulated one. */
    height: 100vh;
    height: 100dvh;
    height: var(--app-height, 100dvh);
    /* Hard ceiling: if the measured value above is ever stale, the engine's
       own dynamic viewport still keeps the logout button on screen. */
    max-height: 100vh;
    max-height: 100dvh;
    width: 260px;
    background: linear-gradient(180deg, #003087 0%, #001f5c 100%);
    color: white;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    /* Only transform and width animate — height changes every time a mobile
       URL bar slides, and animating that would visibly lag the panel. */
    transition: transform 0.3s ease, width 0.3s ease;
    /* The nav scrolls, not the whole panel, so header and logout stay put. */
    overflow: hidden;
}

.sidebar.collapsed {
    width: 80px;
}

.sidebar.collapsed .sidebar-header .logo span,
.sidebar.collapsed .sidebar-nav span,
.sidebar.collapsed .sidebar-footer span {
    display: none;
}

/* Icon-rail layout — desktop only; on phones the drawer always opens full. */
@media (min-width: 769px) {
    .sidebar.collapsed .sidebar-header {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1.25rem 0.5rem;
    }

    .sidebar.collapsed .sidebar-header .logo {
        gap: 0;
        justify-content: center;
    }

    .sidebar.collapsed .nav-item,
    .sidebar.collapsed .btn-logout {
        justify-content: center;
        padding-left: 0;
        padding-right: 0;
    }

    .sidebar.collapsed .sidebar-footer {
        padding: 1rem 0.5rem;
    }
}

.sidebar-header {
    flex: 0 0 auto;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header .logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    text-decoration: none;
}

.sidebar-header .logo i {
    font-size: 1.5rem;
    color: #ffc72c;
}

.sidebar-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

.sidebar-nav {
    flex: 1 1 auto;
    /* min-height:0 lets this shrink below its content height; without it the
       nav pushes the logout button out of the panel entirely. */
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 1rem 0;
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav li {
    margin-bottom: 0.25rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.nav-item.active {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border-left-color: #ffc72c;
}

.nav-item i {
    font-size: 1.125rem;
    width: 20px;
    text-align: center;
    color: #ffc72c;
}

.sidebar-footer {
    flex: 0 0 auto;
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: inherit;
}

.btn-logout {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.btn-logout:hover {
    background: rgba(239, 68, 68, 0.3);
    color: white;
}

/* Main Content */
.main-content {
    margin-left: 260px;
    min-height: 100vh;
    transition: var(--transition);
}

.main-content.sidebar-collapsed {
    margin-left: 80px;
}

/* Top Bar */
.top-bar {
    position: sticky;
    top: 0;
    background: white;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.25rem;
    color: #6b7280;
    cursor: pointer;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Notifications */
.notifications {
    position: relative;
}

.notification-btn {
    position: relative;
    background: #f3f4f6;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.notification-btn:hover {
    background: #e5e7eb;
}

.notification-btn i {
    font-size: 1.125rem;
    color: #6b7280;
}

.notification-btn .badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444;
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
}

.notification-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 360px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 1000;
}

.notification-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.notification-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.notification-header h4 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
}

.mark-all-read {
    background: none;
    border: none;
    color: #003087;
    font-size: 0.8rem;
    cursor: pointer;
}

.notification-list {
    max-height: 320px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
    transition: var(--transition);
}

.notification-item:hover {
    background: #f9fafb;
}

.notification-item.unread {
    background: #eff6ff;
}

.notification-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification-icon.success     { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.notification-icon.info        { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.notification-icon.warning     { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.notification-icon.error       { background: rgba(239, 68, 68, 0.1);  color: #ef4444; }
.notification-icon.assignment  { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; }
.notification-icon.application { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.notification-icon.grade       { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }

.notification-content {
    flex: 1;
}

.notification-message {
    font-size: 0.875rem;
    color: #1f2937;
    margin: 0 0 0.25rem 0;
    line-height: 1.4;
}

.notification-time {
    font-size: 0.75rem;
    color: #9ca3af;
}

.no-notifications {
    padding: 2rem 1.25rem;
    text-align: center;
    color: #9ca3af;
}

.no-notifications i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* User Menu */
.user-menu {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.user-menu:hover {
    background: #f3f4f6;
}

.user-info {
    text-align: right;
}

.user-name {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    color: #1f2937;
}

.user-role {
    display: block;
    font-size: 0.75rem;
    color: #9ca3af;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #003087, #0050d0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.125rem;
}

.avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    object-fit: cover;
}

/* Dashboard Content */
.dashboard-content {
    padding: 1.5rem;
}

/* Welcome Card */
.welcome-card {
    background: linear-gradient(135deg, #003087 0%, #0050d0 100%);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    color: white;
}

.welcome-text h2 {
    font-size: 1.75rem;
    margin: 0 0 0.5rem 0;
}

.welcome-text p {
    margin: 0;
    opacity: 0.9;
}

.welcome-image {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.welcome-image i {
    font-size: 2.5rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon i {
    font-size: 1.5rem;
}

.stat-content h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
    color: #1f2937;
}

.stat-content p {
    margin: 0;
    font-size: 0.875rem;
    color: #6b7280;
}

/* Content Card */
.content-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
}

/* Clean Table (shared across dashboards) */
.clean-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.clean-table thead th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    color: #64748b;
    border-bottom: 2px solid #e2e8f0;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.clean-table tbody td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    color: #475569;
    vertical-align: middle;
}
.clean-table tbody tr:last-child td { border-bottom: none; }
.clean-table tbody tr:hover { background: #f8fafc; }

.profile-container {
    max-width: 900px;
    margin: 0 auto;
}

.profile-card {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 2rem;
    margin-bottom: 2rem;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.avatar-wrapper {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    flex-shrink: 0;
}

.profile-info h2 {
    margin: 0;
    color: var(--text-primary);
}

.profile-info p {
    margin: 0.5rem 0 0;
    color: var(--text-secondary);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    background: white;
    color: var(--text-primary);
}

.form-group input:focus {
    border-color: var(--primary-light);
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.profile-readonly {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    background: #f8fafc;
    color: var(--text-secondary);
    user-select: none;
    pointer-events: none;
}

.btn-save {
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-save:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

.btn-save:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

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

    .profile-header {
        flex-direction: column;
        text-align: center;
    }
}

.view-all {
    color: #003087;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.view-all:hover {
    color: #001f5c;
}

/* Tables */
.assignments-table,
.students-table,
.interns-table,
.approvals-table {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: #f9fafb;
}

th {
    padding: 0.875rem 1.25rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

td {
    padding: 1rem 1.25rem;
    border-top: 1px solid #e5e7eb;
    font-size: 0.875rem;
    color: #1f2937;
}

.no-data {
    text-align: center;
    color: #9ca3af;
    padding: 2rem !important;
}

.assignment-title,
.student-name {
    color: #1f2937;
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: capitalize;
}

.status-badge.completed { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.status-badge.pending { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.status-badge.active { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.status-badge.overdue { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
.status-badge.submitted { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; }

/* Action Buttons */
.btn-action {
    background: #f3f4f6;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    transition: var(--transition);
}

.btn-action:hover {
    background: #003087;
    color: white;
}

.btn-approve {
    background: rgba(16, 185, 129, 0.1);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #10b981;
    transition: var(--transition);
}

.btn-approve:hover {
    background: #10b981;
    color: white;
}

.btn-reject {
    background: rgba(239, 68, 68, 0.1);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ef4444;
    transition: var(--transition);
}

.btn-reject:hover {
    background: #ef4444;
    color: white;
}

.btn-review {
    background: #003087;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    color: white;
    font-size: 0.8rem;
    font-weight: 500;
    transition: var(--transition);
}

.btn-review:hover {
    background: #001f5c;
}

.btn-view {
    background: #f3f4f6;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    color: #003087;
    font-size: 0.8rem;
    font-weight: 500;
    transition: var(--transition);
}

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

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Company Info */
.company-card-mini {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
}

.company-logo {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #003087, #0050d0);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.company-details h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    color: #1f2937;
}

.company-details p {
    margin: 0;
    font-size: 0.8rem;
    color: #6b7280;
}

.company-contact {
    font-size: 0.75rem !important;
    color: #9ca3af !important;
}

.btn-view-company {
    margin-left: auto;
    background: none;
    border: none;
    color: #003087;
    cursor: pointer;
    font-size: 1.125rem;
}

.no-company {
    text-align: center;
    padding: 2rem;
    color: #9ca3af;
}

.no-company i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* Schedule */
.schedule-list {
    padding: 0.5rem;
}

.schedule-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.875rem 1rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    background: #f9fafb;
}

.schedule-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #6b7280;
}

.schedule-title {
    font-weight: 500;
    color: #1f2937;
}

.schedule-type {
    font-size: 0.7rem;
    text-transform: uppercase;
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    align-self: flex-start;
    font-weight: 600;
}

.schedule-type.online { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.schedule-type.onsite { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.schedule-type.meeting { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; }

.no-schedule {
    text-align: center;
    padding: 2rem;
    color: #9ca3af;
}

/* Progress Section */
.progress-section {
    padding: 1.5rem;
}

.progress-item {
    margin-bottom: 1.5rem;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.progress-info span:first-child {
    color: #6b7280;
}

.progress-info span:last-child {
    font-weight: 600;
    color: #003087;
}

.progress-bar {
    height: 10px;
    background: #e5e7eb;
    border-radius: 5px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #003087, #0050d0);
    border-radius: 5px;
    transition: width 0.5s ease;
}

.progress-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.progress-stat {
    text-align: center;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    color: #9ca3af;
    margin-bottom: 0.25rem;
}

.stat-value {
    display: block;
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    color: #1f2937;
    font-weight: 500;
}

.quick-action-btn i {
    font-size: 1.5rem;
    color: #003087;
}

.quick-action-btn:hover {
    border-color: #003087;
    background: #eff6ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 48, 135, 0.15);
}

/* Lists */
.submissions-list,
.companies-list,
.assignments-list,
.activity-list {
    padding: 0.5rem;
}

.submission-item,
.company-item,
.assignment-item,
.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    background: #f9fafb;
    transition: var(--transition);
}

.submission-item:hover,
.company-item:hover,
.assignment-item:hover {
    background: #f3f4f6;
}

.submission-info strong,
.company-info-small strong,
.assignment-info strong {
    display: block;
    font-size: 0.875rem;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.submission-info p,
.assignment-info p {
    margin: 0;
    font-size: 0.75rem;
    color: #9ca3af;
}

.submission-date {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-left: auto;
}

.company-logo-small {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

.company-info-small {
    flex: 1;
}

.company-info-small p {
    margin: 0;
    font-size: 0.75rem;
    color: #9ca3af;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-icon.login { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.activity-icon.logout { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
.activity-icon.submission { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.activity-icon.assignment { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; }

.activity-content {
    flex: 1;
}

.activity-content p {
    margin: 0 0 0.25rem 0;
    font-size: 0.875rem;
    color: #1f2937;
}

.activity-time {
    font-size: 0.75rem;
    color: #9ca3af;
}

/* Platform Stats */
.platform-stats {
    padding: 1rem;
}

.platform-stat {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.platform-stat:last-child {
    border-bottom: none;
}

.platform-stat-label {
    color: #6b7280;
    font-size: 0.875rem;
}

.platform-stat-value {
    font-weight: 600;
    color: #1f2937;
}

/* Mini Progress Bar */
.mini-progress {
    width: 100px;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.5rem;
    overflow: hidden;
}

.mini-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #3b82f6);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.75rem;
    color: #6b7280;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* Backdrop behind the mobile drawer (injected by js/sidebar.js) */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.25s ease;
    -webkit-tap-highlight-color: transparent;
}

@media (max-width: 768px) {
    /* --- Off-canvas sidebar --- */
    .sidebar {
        width: 82vw;
        max-width: 300px;
        transform: translateX(-100%);
    }

    /* Keep the logout clear of the home indicator / gesture bar. */
    .sidebar-footer {
        padding-bottom: calc(1rem + env(safe-area-inset-bottom));
    }

    /* Bigger tap target for the in-drawer close button. */
    .sidebar-toggle {
        width: 38px;
        height: 38px;
        font-size: 1.05rem;
        background: rgba(255, 255, 255, 0.15);
    }

    /* The desktop icon-rail must never apply on phones: a half-open 80px
       strip would just eat screen width with no way to dismiss it. */
    .sidebar.collapsed {
        width: 82vw;
        max-width: 300px;
    }

    .sidebar.collapsed .sidebar-header .logo span,
    .sidebar.collapsed .sidebar-nav span,
    .sidebar.collapsed .sidebar-footer span {
        display: inline;
    }

    .sidebar.mobile-open {
        transform: translateX(0);
        box-shadow: 0 0 40px rgba(0, 0, 0, 0.35);
    }

    .sidebar-overlay.visible {
        display: block;
        opacity: 1;
    }

    body.sidebar-open {
        overflow: hidden;
    }

    .sidebar-nav {
        padding: 0.5rem 0;
    }

    .nav-item {
        padding: 0.8rem 1.25rem;
    }

    /* Content never shifts for the drawer — it overlays instead. */
    .main-content,
    .main-content.sidebar-collapsed {
        margin-left: 0;
    }

    /* --- Top bar --- */
    .top-bar {
        padding: 0.75rem 1rem;
        gap: 0.75rem;
    }

    .top-bar-left {
        flex: 1;
        min-width: 0;
        gap: 0.625rem;
    }

    .top-bar-right {
        gap: 0.75rem;
        flex: 0 0 auto;
    }

    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
        width: 40px;
        height: 40px;
        border-radius: 8px;
        background: #f3f4f6;
        color: #374151;
    }

    .page-title {
        font-size: 1.125rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        min-width: 0;
    }

    .notification-btn {
        width: 38px;
        height: 38px;
    }

    /* --- Content --- */
    .dashboard-content {
        padding: 1rem;
    }

    .welcome-card {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
        gap: 1rem;
    }

    .welcome-text h2 {
        font-size: 1.375rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .progress-stats {
        grid-template-columns: 1fr;
    }

    .notification-dropdown {
        width: calc(100vw - 2rem);
        right: -1rem;
    }
}

@media (max-width: 480px) {
    .sidebar {
        width: 86vw;
        max-width: 280px;
    }

    .sidebar.collapsed {
        width: 86vw;
        max-width: 280px;
    }

    .top-bar {
        padding: 0.625rem 0.875rem;
    }

    .page-title {
        font-size: 1rem;
    }

    .dashboard-content {
        padding: 0.875rem;
    }

    .welcome-card {
        padding: 1.25rem;
    }

    .welcome-text h2 {
        font-size: 1.2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.875rem;
    }

    .stat-card {
        padding: 1.125rem;
    }

    .stat-icon {
        width: 46px;
        height: 46px;
    }

    .stat-icon i {
        font-size: 1.25rem;
    }

    .stat-content h3 {
        font-size: 1.5rem;
    }

    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }

    .user-info {
        display: none;
    }
}

/* Application Banners */
.application-banner,
.assigned-company-banner {
    margin-bottom: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
}

.application-banner .banner-content {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border: 1px solid #bfdbfe;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.application-banner .banner-content i {
    font-size: 2rem;
    color: #003087;
}

.application-banner .banner-text {
    flex: 1;
}

.application-banner .banner-text strong {
    display: block;
    color: #1e40af;
    margin-bottom: 0.25rem;
}

.application-banner .banner-text p {
    margin: 0;
    color: #6b7280;
    font-size: 0.875rem;
}

.assigned-company-banner .banner-content {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border: 1px solid #a7f3d0;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.assigned-company-banner .banner-content.success i {
    font-size: 2rem;
    color: #10b981;
}

.assigned-company-banner .banner-text strong {
    display: block;
    color: #065f46;
    margin-bottom: 0.25rem;
}

.assigned-company-banner .banner-text p {
    margin: 0;
    color: #6b7280;
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    .application-banner .banner-content,
    .assigned-company-banner .banner-content {
        flex-direction: column;
        text-align: center;
    }

    .application-banner .banner-text,
    .assigned-company-banner .banner-text {
        text-align: center;
    }
}

/* ===================================
   NOTIFICATION STYLES
   =================================== */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 9999;
    max-width: 400px;
    animation: slideInRight 0.3s ease;
}

.notification.notification-success {
    background: #10b981;
    color: white;
}

.notification.notification-error {
    background: #ef4444;
    color: white;
}

.notification.notification-warning {
    background: #f59e0b;
    color: white;
}

.notification.notification-info {
    background: #0ea5e9;
    color: white;
}

.notification-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 0.25rem;
    margin-left: auto;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.notification-close:hover {
    opacity: 1;
}

/* ===================================
   SHARED CONFIRM / ALERT MODAL
   =================================== */

.app-modal {
    /* Longhands rather than the `inset` shorthand, and an explicit width, so
       the backdrop is anchored to the viewport on every engine. */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: var(--app-height, 100dvh);
    max-height: 100vh;
    max-height: 100dvh;
    box-sizing: border-box;
    /* Centring is declared three ways on purpose: flex centring for the
       normal case, and margin:auto on the box (below) which also keeps the
       top reachable when the box is taller than the screen. */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.45);
    z-index: 99999;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.app-modal-box,
.app-modal > * {
    margin: auto;
    max-height: 100%;
    overflow-y: auto;
    box-sizing: border-box;
}

.app-modal-box {
    width: 100%;
    max-width: 400px;
    background: #fff;
    border-radius: 14px;
    padding: 1.5rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.app-modal-head {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 0.75rem;
}

.app-modal-head h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
}

.app-modal-icon {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    color: #003087;
    font-size: 0.95rem;
}

.app-modal-box.danger .app-modal-icon {
    background: #fee2e2;
    color: #dc2626;
}

.app-modal-text {
    margin: 0 0 1.25rem;
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.5;
}

.app-modal-actions {
    display: flex;
    gap: 0.625rem;
    justify-content: flex-end;
}

.app-modal-btn {
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    font-family: inherit;
    cursor: pointer;
    border: 1px solid transparent;
}

.app-modal-btn-cancel {
    background: #fff;
    color: #003087;
    border-color: #cbd5e1;
}

.app-modal-btn-ok {
    background: #003087;
    color: #fff;
}

.app-modal-box.danger .app-modal-btn-ok {
    background: #dc2626;
}

/* Compact layout for phones */
@media (max-width: 480px) {
    .app-modal {
        padding: 0.75rem;
    }

    .app-modal-box {
        max-width: 300px;
        padding: 1.1rem;
        border-radius: 12px;
    }

    .app-modal-head {
        gap: 0.5rem;
        margin-bottom: 0.5rem;
    }

    .app-modal-head h3 {
        font-size: 0.9rem;
    }

    .app-modal-icon {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }

    .app-modal-text {
        margin-bottom: 1rem;
        font-size: 0.82rem;
    }

    /* Stacked and full width, with Cancel nearest the thumb. */
    .app-modal-actions {
        flex-direction: column-reverse;
        gap: 0.5rem;
    }

    .app-modal-btn {
        width: 100%;
        padding: 0.55rem 1rem;
        font-size: 0.85rem;
    }
}

/* Top-layer dialog variant. The UA positions the top layer against the
   viewport, so this cannot be pushed off-centre by document width or by a
   horizontally scrolled page the way a fixed-position div can. */
dialog.app-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    margin: 0;
    padding: 1rem;
    border: 0;
    background: transparent;
    overflow-y: auto;
    overscroll-behavior: contain;
    box-sizing: border-box;
}

dialog.app-modal[open] {
    display: flex;
    align-items: center;
    justify-content: center;
}

dialog.app-modal::backdrop {
    background: rgba(0, 0, 0, 0.45);
}

/* ===================================
   MOBILE OVERFLOW GUARDS
   =================================== */

@media (max-width: 768px) {
    /* A document wider than the screen is what lets the page pan sideways and
       drags fixed overlays out of position. Clip on both html and body: body
       alone is unreliable, because the viewport takes its overflow from html. */
    html,
    body.dashboard-body {
        max-width: 100%;
        overflow-x: hidden;
    }

    .main-content,
    .dashboard-content,
    .content-card {
        max-width: 100%;
        min-width: 0;
    }

    /* Wide data tables scroll inside their own card rather than widening the
       whole page. Dialogs are appended to <body>, so they sit outside
       .dashboard-content and need naming separately — otherwise a table in a
       modal is clipped with no way to reach its right-hand columns. */
    .dashboard-content table,
    dialog.app-modal table,
    .app-modal table {
        display: block;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* The modal body scrolls vertically; let it scroll sideways too so a wide
       table is reachable even where the table itself cannot scroll. */
    dialog.app-modal [style*="overflow-y:auto"],
    dialog.app-modal [style*="overflow-y: auto"] {
        overflow-x: auto;
    }

    /* Making a table scrollable is not enough on its own: a table whose cells
       can wrap simply crushes its columns to fit the screen, so it never
       overflows and there is nothing to drag. Headers are short labels and
       never need to wrap; data cells get a floor so they cannot be squeezed
       into a two-character column. Together these give the table its natural
       width back, which is what makes it scroll. */
    .dashboard-content table th,
    dialog.app-modal table th,
    .app-modal table th {
        white-space: nowrap;
    }

    .dashboard-content table td,
    dialog.app-modal table td,
    .app-modal table td {
        min-width: 96px;
    }

    /* Cells that opt into truncation or their own width keep their own rules. */
    .dashboard-content table td[style*="max-width"],
    dialog.app-modal table td[style*="max-width"],
    .app-modal table td[style*="max-width"] {
        min-width: 0;
    }
}

/* Inner boxes of converted dialogs.
   These are generated with inline styles at ~30 call sites (padding:2rem,
   max-width:700px and similar), so !important is the only thing that can
   bring them down to phone size without rewriting every template. */
dialog.app-modal > * {
    margin: auto;
    max-height: 100%;
    overflow-y: auto;
    box-sizing: border-box;
}

@media (max-width: 480px) {
    dialog.app-modal {
        padding: 0.75rem;
    }

    dialog.app-modal > div {
        width: 100% !important;
        max-width: 100% !important;
        margin: auto !important;
        padding: 1.1rem !important;
        border-radius: 12px !important;
        max-height: 100% !important;
    }

    /* The confirm dialog keeps its own tighter width. */
    dialog.app-modal > .app-modal-box {
        max-width: 300px !important;
    }
}

/* ===================================
   TABLE TOOLBAR
   Category filters + search + sort, mounted above a data table or card grid
   by initTableControls() in js/script.js.
   =================================== */

.table-toolbar {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 1.15rem;
}

.table-toolbar select,
.table-toolbar input[type="search"] {
    padding: 0.55rem 0.85rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: inherit;
    background: white;
    color: #1e293b;
    min-width: 0;
}

.table-toolbar select {
    flex: 0 0 auto;
    cursor: pointer;
}

.table-toolbar input[type="search"] {
    flex: 1 1 220px;
}

.table-toolbar select:focus,
.table-toolbar input[type="search"]:focus {
    outline: none;
    border-color: #003087;
    box-shadow: 0 0 0 3px rgba(0, 48, 135, 0.12);
}

.table-toolbar .tt-count {
    margin-left: auto;
    font-size: 0.82rem;
    color: #6b7280;
    white-space: nowrap;
}

/* The page's own action button, e.g. "New Batch". */
.table-toolbar .tt-actions {
    flex: 0 0 auto;
    display: inline-flex;
}

.table-toolbar .tt-actions .btn {
    white-space: nowrap;
}

/* On a phone every control takes its own line: a row of shrunken selects is
   unreadable, and the search field is the one that needs the width. */
@media (max-width: 768px) {
    .table-toolbar {
        gap: 0.5rem;
    }

    .table-toolbar select,
    .table-toolbar input[type="search"] {
        flex: 1 1 100%;
        width: 100%;
    }

    .table-toolbar .tt-actions {
        flex: 1 1 100%;
    }

    .table-toolbar .tt-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .table-toolbar .tt-count {
        margin-left: 0;
    }
}