/* style.css - Styling for FUDMA ICT Landing Page and Portal */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* --- Design Tokens / Variables --- */
:root {
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Elegant Royal Blue / Emerald / Slate Palette */
    --color-primary: #1e40af; /* Deep Royal Blue */
    --color-primary-light: #3b82f6; /* Bright Blue */
    --color-primary-glow: rgba(59, 130, 246, 0.15);
    
    --color-accent: #059669; /* Emerald Green */
    --color-accent-light: #10b981; /* Light Emerald */
    --color-accent-glow: rgba(16, 185, 129, 0.15);
    
    --color-bg-dark: #ffffff; /* White background */
    --color-bg-card: #ffffff; /* White card */
    --color-bg-input: #f8fafc; /* Light gray input */
    --color-text-light: #0f172a; /* Slate 900 dark text */
    --color-text-muted: #64748b; /* Slate 500 gray text */
    --color-border: #e2e8f0; /* Light Slate border */
    
    /* Light Mode Portal / Elements */
    --color-light-bg: #f8fafc;
    --color-light-card: #ffffff;
    --color-light-border: #e2e8f0;
    --color-light-text: #0f172a;
    --color-light-muted: #64748b;
    
    /* Status Colors */
    --color-draft: #64748b;
    --color-submitted: #f59e0b; /* Amber */
    --color-recommended: #06b6d4; /* Cyan */
    --color-approved: #10b981; /* Green */
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-premium: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.3);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--color-bg-input);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary-light);
}

/* --- Layout Utility Classes --- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-padding {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--color-text-light);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary-light), var(--color-accent-light));
    margin: 10px auto 0;
    border-radius: 2px;
}

.section-header p {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Public Header & Navigation --- */
.public-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    transition: var(--transition-smooth);
}

.public-header.scrolled {
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px -10px rgba(0,0,0,0.1);
}

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

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    font-size: 1.8rem;
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: var(--font-heading);
    font-weight: 800;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-text-light);
    line-height: 1.2;
}

.logo-sub {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    letter-spacing: 0.05em;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-muted);
    position: relative;
    padding: 5px 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--color-text-light);
}

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

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

.btn-portal {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-portal:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    background: radial-gradient(circle at 10% 20%, rgba(30, 64, 175, 0.15) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(5, 150, 105, 0.15) 0%, transparent 40%),
                var(--color-bg-dark);
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--color-primary-glow) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--color-text-light) 60%, var(--color-text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content h1 span {
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    margin-bottom: 35px;
    max-width: 600px;
}

.hero-cta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
    color: white;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text-light);
    border: 1px solid var(--color-border);
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-text-muted);
    transform: translateY(-2px);
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Glassmorphic Logo Showcase Badge / Visual */
.hero-logo-frame {
    width: 320px;
    height: 320px;
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow-premium), inset 0 0 40px rgba(59, 130, 246, 0.1);
    position: relative;
    animation: float 6s ease-in-out infinite;
    padding: 30px;
}

.hero-university-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

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

/* --- About Us Section --- */
.about-section {
    background: var(--color-bg-card);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.about-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    padding: 20px;
    border-radius: 10px;
    transition: var(--transition-smooth);
}

.about-card:hover {
    border-color: var(--color-primary-light);
    transform: translateY(-5px);
}

.about-card-icon {
    font-size: 1.8rem;
    color: var(--color-accent-light);
    margin-bottom: 10px;
}

.about-card h4 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.about-card p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* --- Services Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--color-primary-light);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: var(--shadow-premium);
}

.service-card:hover::before {
    transform: scaleY(1);
}

.service-icon {
    font-size: 2.2rem;
    color: var(--color-primary-light);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

/* --- Products Section --- */
.products-section {
    background: #f1f5f9;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
}

.product-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-accent-light);
    box-shadow: var(--shadow-premium);
}

.product-image-placeholder {
    height: 180px;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.4), rgba(5, 150, 105, 0.4));
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.product-image-placeholder::after {
    content: '</>';
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.15);
}

.product-info {
    padding: 25px;
}

.product-badge {
    background: var(--color-accent-glow);
    color: var(--color-accent-light);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 12px;
}

.product-info h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.product-info p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: 20px;
}

.product-features-list {
    list-style: none;
    margin-bottom: 20px;
}

.product-features-list li {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.product-features-list li::before {
    content: '✓';
    color: var(--color-accent-light);
    font-weight: 700;
}

.product-link {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-primary-light);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.product-link:hover {
    color: var(--color-text-light);
}

/* --- Units Section --- */
.unit-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.unit-tab {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    padding: 10px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.unit-tab:hover, .unit-tab.active {
    background: var(--color-primary-light);
    border-color: var(--color-primary-light);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.unit-content {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 40px;
    display: none;
}

.unit-content.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

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

.unit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.unit-desc h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--color-text-light);
}

.unit-aims {
    margin-bottom: 25px;
}

.unit-aims h4, .unit-services h4 {
    font-size: 1.1rem;
    color: var(--color-accent-light);
    margin-bottom: 12px;
    font-weight: 600;
}

.unit-aims p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    white-space: pre-line;
}

.unit-services p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    white-space: pre-line;
}

.unit-staff-list {
    border-left: 1px solid var(--color-border);
    padding-left: 40px;
}

.unit-staff-list h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.unit-staff-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.unit-staff-row {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid var(--color-border);
    padding: 12px;
    border-radius: 8px;
}

.unit-staff-row img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-primary-light);
}

.unit-staff-info h5 {
    font-size: 0.95rem;
    font-weight: 600;
}

.unit-staff-info p {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* --- Staff Grid / Public Directory --- */
.staff-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 15px;
}

.staff-search-input {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    color: var(--color-text-light);
    padding: 10px 20px;
    border-radius: 8px;
    width: 320px;
    font-family: var(--font-body);
    font-size: 0.9rem;
}

.staff-search-input:focus {
    outline: none;
    border-color: var(--color-primary-light);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
}

.staff-select-filter {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    color: var(--color-text-light);
    padding: 10px 20px;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    cursor: pointer;
}

.staff-select-filter:focus {
    outline: none;
    border-color: var(--color-primary-light);
}

.staff-directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.staff-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: var(--transition-smooth);
    cursor: pointer;
    position: relative;
}

.staff-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary-light);
    box-shadow: var(--shadow-premium);
}

.staff-avatar-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
}

.staff-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--color-primary-light);
    background-color: var(--color-bg-dark);
}

.staff-unit-badge {
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-accent);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 10px;
    white-space: nowrap;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.staff-card h3 {
    font-size: 1.15rem;
    margin-bottom: 5px;
}

.staff-card .designation {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 12px;
}

.staff-skills-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    margin-top: 10px;
}

.skill-tag {
    background: rgba(255,255,255,0.05);
    color: var(--color-text-muted);
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid var(--color-border);
}

/* --- Contact Section --- */
.contact-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 40px;
}

.contact-info {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-info-item {
    display: flex;
    gap: 15px;
}

.contact-info-icon {
    font-size: 1.5rem;
    color: var(--color-primary-light);
}

.contact-info-text h4 {
    font-size: 1.05rem;
    margin-bottom: 5px;
}

.contact-info-text p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.contact-form-container {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 40px;
}

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

.form-group label {
    display: block;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    background: var(--color-bg-dark);
    border: 1px solid var(--color-border);
    color: var(--color-text-light);
    padding: 12px 15px;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary-light);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
}

textarea.form-control {
    resize: vertical;
}

/* --- Public Footer --- */
.public-footer {
    background: #f8fafc;
    border-top: 1px solid var(--color-border);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-top: 15px;
    max-width: 320px;
}

.footer-links h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    position: relative;
}

.footer-links h4::after {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background: var(--color-primary-light);
    margin-top: 5px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links ul a {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.footer-links ul a:hover {
    color: var(--color-text-light);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding-top: 25px;
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

/* --- Glassmorphic Modal --- */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-backdrop.active {
    opacity: 1;
    pointer-events: all;
}

.modal-window {
    background: #ffffff;
    border: 1px solid var(--color-border);
    width: 90%;
    max-width: 650px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-backdrop.active .modal-window {
    transform: scale(1);
}

.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.3rem;
}

.modal-close {
    font-size: 1.5rem;
    color: var(--color-text-muted);
    cursor: pointer;
    background: none;
    border: none;
}

.modal-close:hover {
    color: var(--color-text-light);
}

.modal-body {
    padding: 25px;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-staff-profile {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 25px;
}

.modal-staff-avatar {
    width: 150px;
    height: 150px;
    border-radius: 12px;
    object-fit: cover;
    border: 3px solid var(--color-primary-light);
}

.modal-staff-details h2 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.modal-staff-details .title {
    font-size: 1rem;
    color: var(--color-accent-light);
    font-weight: 600;
    margin-bottom: 10px;
}

.modal-staff-details .meta-item {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 5px;
}

.modal-profile-section {
    margin-top: 25px;
    border-top: 1px solid var(--color-border);
    padding-top: 20px;
}

.modal-profile-section h4 {
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin-bottom: 8px;
    font-weight: 600;
}

.modal-profile-section p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.modal-profile-section ul {
    list-style: none;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.modal-profile-section ul li {
    margin-bottom: 6px;
    white-space: pre-line;
}

/* --- Portal Layout & Components (Light & Premium Styled) --- */
.portal-body {
    background-color: var(--color-light-bg);
    color: var(--color-light-text);
}

.portal-login-section {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--color-light-bg);
    padding: 20px;
}

.login-card {
    background: #ffffff;
    border: 1px solid var(--color-light-border);
    width: 100%;
    max-width: 420px;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    color: var(--color-light-text);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header .logo {
    font-size: 2.2rem;
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: var(--font-heading);
    font-weight: 800;
    margin-bottom: 10px;
}

.login-header h2 {
    font-size: 1.4rem;
    font-weight: 600;
}

.login-header p {
    color: var(--color-light-muted);
    font-size: 0.85rem;
}

/* Portal Grid Layout */
.portal-container {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

.portal-sidebar {
    background: #0f172a;
    color: white;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 40px;
}

.sidebar-nav {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border-radius: 8px;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    font-weight: 500;
}

.sidebar-link:hover, .sidebar-link.active {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.sidebar-link.active {
    background: var(--color-primary);
    box-shadow: 0 4px 10px rgba(30, 64, 175, 0.4);
}

.sidebar-user {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-user img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.sidebar-user-info h5 {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
}

.sidebar-user-info p {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-transform: capitalize;
}

.portal-main {
    padding: 40px;
    background-color: var(--color-light-bg);
    overflow-y: auto;
    max-height: 100vh;
}

.portal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--color-light-border);
}

.portal-title h2 {
    font-size: 1.8rem;
    color: var(--color-light-text);
}

.portal-title p {
    color: var(--color-light-muted);
    font-size: 0.9rem;
}

.portal-date {
    font-weight: 500;
    color: var(--color-light-muted);
    font-size: 0.9rem;
}

/* Metric Cards */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-bottom: 35px;
}

.metric-card {
    background: var(--color-light-card);
    border: 1px solid var(--color-light-border);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.metric-info h4 {
    font-size: 0.85rem;
    color: var(--color-light-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 5px;
}

.metric-info .value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-light-text);
}

.metric-icon {
    font-size: 2rem;
    color: var(--color-primary-light);
    background: rgba(59, 130, 246, 0.08);
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Portal Card */
.portal-card {
    background: var(--color-light-card);
    border: 1px solid var(--color-light-border);
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    overflow: hidden;
}

.portal-card-header {
    padding: 20px 25px;
    border-bottom: 1px solid var(--color-light-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.portal-card-header h3 {
    font-size: 1.2rem;
    color: var(--color-light-text);
}

.portal-card-body {
    padding: 25px;
}

/* Tables in Portal */
.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.portal-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
}

.portal-table th {
    background: #f1f5f9;
    color: var(--color-light-muted);
    font-weight: 600;
    padding: 12px 18px;
    border-bottom: 1px solid var(--color-light-border);
}

.portal-table td {
    padding: 15px 18px;
    border-bottom: 1px solid var(--color-light-border);
    color: var(--color-light-text);
}

.portal-table tbody tr:hover {
    background: #f8fafc;
}

/* Status Badges */
.badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 50px;
    display: inline-block;
    text-transform: capitalize;
}

.badge-draft { background: #e2e8f0; color: #475569; }
.badge-submitted { background: #fef3c7; color: #d97706; }
.badge-recommended { background: #ecfeff; color: #0891b2; }
.badge-approved { background: #d1fae5; color: #059669; }

/* Dynamic alerts */
.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    border-left: 4px solid transparent;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border-left-color: #10b981;
}

.alert-danger {
    background: #fee2e2;
    color: #991b1b;
    border-left-color: #ef4444;
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
    border-left-color: #f59e0b;
}

.alert-info {
    background: #e0f2fe;
    color: #075985;
    border-left-color: #0ea5e9;
}

/* Form Styling - Portal Light Mode */
.portal-form .form-group {
    margin-bottom: 20px;
}

.portal-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-light-text);
    margin-bottom: 8px;
}

.portal-form .form-control {
    background: #ffffff;
    border: 1px solid var(--color-light-border);
    color: var(--color-light-text);
}

.portal-form .form-control:focus {
    border-color: var(--color-primary-light);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.flex-btn-group {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

/* File Upload styling */
.file-upload-wrapper {
    position: relative;
    border: 2px dashed var(--color-light-border);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    background: #f8fafc;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.file-upload-wrapper:hover {
    border-color: var(--color-primary-light);
    background: #f1f5f9;
}

.file-upload-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--color-light-muted);
}

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

/* Grid splits for dashboard contents */
.portal-split-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 30px;
}

/* Staff details profile page */
.profile-overview-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 40px;
}

.profile-overview-avatar {
    width: 200px;
    height: 200px;
    border-radius: 12px;
    object-fit: cover;
    border: 4px solid var(--color-light-border);
}

.profile-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px 30px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--color-light-border);
}

.meta-field h5 {
    font-size: 0.8rem;
    color: var(--color-light-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

.meta-field p {
    font-size: 0.95rem;
    font-weight: 500;
}

/* Section styling for portal sheets */
.portal-sheet-section {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid var(--color-light-border);
}

.portal-sheet-section h4 {
    font-size: 1.15rem;
    margin-bottom: 15px;
    color: var(--color-light-text);
}

/* Attendance edit sheet styling */
.attendance-staff-row {
    background: #f8fafc;
    border: 1px solid var(--color-light-border);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr 1fr 1.5fr;
    gap: 15px;
    align-items: center;
}

.attendance-staff-name h4 {
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.attendance-staff-name p {
    font-size: 0.8rem;
    color: var(--color-light-muted);
}

/* Emails history list in Director Portal */
.email-log-item {
    border-bottom: 1px solid var(--color-light-border);
    padding: 15px 0;
}

.email-log-item:last-child {
    border-bottom: none;
}

.email-log-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--color-light-muted);
    margin-bottom: 5px;
}

.email-log-subject {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-light-text);
    margin-bottom: 3px;
}

.email-log-body {
    font-size: 0.85rem;
    color: var(--color-light-muted);
    white-space: pre-wrap;
}

/* Simple Responsive overrides */
@media(max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    .hero-visual {
        display: none;
    }
    .about-grid, .unit-grid, .contact-grid, .portal-container {
        grid-template-columns: 1fr;
    }
    .portal-sidebar {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    .unit-staff-list {
        border-left: none;
        padding-left: 0;
        margin-top: 30px;
    }
    .profile-overview-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .profile-overview-avatar {
        margin: 0 auto;
    }
    .portal-split-grid {
        grid-template-columns: 1fr;
    }
    .attendance-staff-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

/* Print Stylesheet for Reports */
@media print {
    body, .portal-body, .portal-main {
        background: #ffffff !important;
        color: #000000 !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    .portal-sidebar, .portal-header, .portal-sidebar *, .sidebar-nav, .sidebar-user, .btn, button, .flex-btn-group, .portal-title p, .public-header, .public-footer {
        display: none !important;
    }
    .portal-container {
        display: block !important;
    }
    .portal-card {
        border: none !important;
        box-shadow: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .portal-card-header {
        border-bottom: 2px solid #000000 !important;
        padding: 10px 0 !important;
    }
    .portal-card-header h3 {
        font-size: 1.5rem !important;
        font-weight: 700 !important;
    }
    .portal-table th {
        background: #e2e8f0 !important;
        color: #000000 !important;
        border-bottom: 2px solid #000000 !important;
    }
    .portal-table td {
        border-bottom: 1px solid #cbd5e1 !important;
    }
    .print-show {
        display: block !important;
    }
    .badge {
        border: 1px solid #000000 !important;
        color: #000000 !important;
        background: transparent !important;
        padding: 2px 6px !important;
    }
}
.print-show {
    display: none;
}

/* Portal specific button colors override to fix invisible white secondary buttons */
.portal-main .btn-secondary, .login-card .btn-secondary {
    background: #ffffff !important;
    color: #1e293b !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.portal-main .btn-secondary:hover, .login-card .btn-secondary:hover {
    background: #f1f5f9 !important;
    border-color: #94a3b8 !important;
    color: #0f172a !important;
}

/* ==========================================================================
   KANBAN TASK BOARD SYSTEM
   ========================================================================== */
.kanban-board {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    align-items: start;
    margin-top: 20px;
}

.kanban-column {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    min-height: 500px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.3s ease;
}

.kanban-column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--color-light-border);
    margin-bottom: 8px;
}

.kanban-column-header h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Specific column colors */
.column-processing .kanban-column-header h4 {
    color: #4f46e5;
}
.column-on-stage .kanban-column-header h4 {
    color: #ea580c;
}
.column-completed .kanban-column-header h4 {
    color: #16a34a;
}

.kanban-count-badge {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.05);
    color: var(--color-light-text);
    font-weight: 600;
}

.kanban-tasks-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
}

/* Glassmorphic Task Card */
.task-card {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

.task-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

/* Left accent bar on card */
.task-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
}
.column-processing .task-card::before {
    background: #4f46e5;
}
.column-on-stage .task-card::before {
    background: #ea580c;
}
.column-completed .task-card::before {
    background: #16a34a;
}

.task-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-light-text);
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.task-card-desc {
    font-size: 0.8rem;
    color: var(--color-light-muted);
    margin: 0 0 12px 0;
    line-height: 1.4;
    white-space: pre-line;
}

.task-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.task-due-date {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
    color: var(--color-light-muted);
}
.task-due-date.overdue {
    color: #ef4444;
    font-weight: 600;
}
.task-due-date.soon {
    color: #f59e0b;
}

/* Assignee Avatars Stack */
.task-assignees-stack {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    align-items: center;
}

.task-assignee-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    margin-left: -6px;
    cursor: pointer;
    transition: transform 0.2s ease, z-index 0.2s;
    position: relative;
}

.task-assignee-avatar:hover {
    transform: scale(1.2) translateY(-2px);
    z-index: 10;
}

/* Task card action bar */
.task-card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    gap: 5px;
}

.task-card-actions form {
    margin: 0;
}

.btn-task-action {
    background: transparent;
    border: 1px solid var(--color-light-border);
    border-radius: 4px;
    padding: 3px 6px;
    font-size: 0.7rem;
    color: var(--color-light-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-task-action:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--color-light-text);
}

.btn-task-action.btn-stage {
    color: #ea580c;
    border-color: #ffedd5;
}
.btn-task-action.btn-stage:hover {
    background: #ffedd5;
}

.btn-task-action.btn-complete {
    color: #16a34a;
    border-color: #dcfce7;
}
.btn-task-action.btn-complete:hover {
    background: #dcfce7;
}

.btn-task-action.btn-process {
    color: #4f46e5;
    border-color: #e0e7ff;
}
.btn-task-action.btn-process:hover {
    background: #e0e7ff;
}

.btn-task-action.btn-delete {
    color: #ef4444;
    border-color: #fee2e2;
}
.btn-task-action.btn-delete:hover {
    background: #fee2e2;
}

/* Supervision overview header badge */
.supervision-badge {
    font-size: 0.8rem;
    padding: 3px 8px;
    border-radius: 4px;
    background: var(--color-primary-light);
    color: white;
    font-weight: 600;
    margin-left: 8px;
}


