/* === COMBINED CSS PRESERVING ORIGINAL DESIGN === */
/* Original acr.css content */
:root {
    --primary: #1e3c72;
    --secondary: #2a5298;
    --accent: #1E90FF;
    --light: #f8f9fa;
    --dark: #1a2530;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --focus: #ff9900;
}

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

body {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    font-size: 1rem;
}

/* Skip navigation for keyboard users */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--dark);
    color: white;
    padding: 8px;
    z-index: 10000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* RTL support */
body[dir="rtl"] {
    text-align: right;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    flex-wrap: wrap;
}

.header-top {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    outline: none;
}

.logo-container:focus {
    outline: 3px solid var(--focus);
}

.logo-container img {
    height: 50px;
    width: auto;
    max-width: 100%;
}

.brand-name {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(to right, #63b3ed, #90cdf4);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.home-btn {
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    border: 2px solid transparent;
}

.home-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.home-btn:focus {
    border-color: var(--focus);
    outline: none;
}

/* Language Switcher - Positioned top left */
.language-switcher {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1000;
    display: flex;
    gap: 10px;
    align-items: center;
}

.language-switcher select {
    padding: 8px 12px;
    border-radius: 5px;
    background: white;
    color: var(--accent);
    border: 2px solid var(--accent);
    font-weight: 500;
    font-size: 1rem;
}

.language-switcher select:focus {
    border-color: var(--focus);
    outline: none;
}

/* Main Content */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.page-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.page-header h1 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.page-header p {
    font-size: 1.2rem;
    color: #555;
    max-width: 700px;
    margin: 0 auto;
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 2rem;
}

.contact-info {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.contact-methods {
    margin-top: 1.5rem;
}

.contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.contact-icon {
    background: var(--accent);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-details h3 {
    color: var(--primary);
    margin-bottom: 5px;
    font-size: 1.3rem;
}

.contact-form-section {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary);
    font-size: 1.1rem;
}

input, textarea, select {
    width: 100%;
    padding: 14px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

/* REQUESTED CHANGE: 70% width email/password fields */
/* Add this to your main.css */
#authEmail, 
#authPassword {
    width: 70%;             /* Maintain your width */
    padding: 4px 14px;      /* Drastically reduced vertical padding */
    font-size: 0.9rem;      /* Reduced font size */
    line-height: 1.2;       /* Tighter line spacing */
    height: auto;           /* Allow natural height */
    display: block;
    margin: 3px auto;       /* Reduced vertical margin */
    border: 1px solid #ddd; /* Thinner border */
    border-radius: 4px;     /* Smaller border radius */
}

@media (max-width: 768px) {
    #authEmail, 
    #authPassword {
        width: 100%;         /* Full width on mobile */
        padding: 8px 14px;   /* Slightly more padding for touch */
        font-size: 1rem;     /* Readable text size */
        line-height: 1.4;    /* Comfortable spacing */
        margin: 5px auto;    /* Standard spacing */
    }
}

input:focus, textarea:focus, select:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(30, 144, 255, 0.2);
}

textarea {
    min-height: 150px;
    resize: vertical;
}

.btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: linear-gradient(to right, var(--accent), #0066CC);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    border: 2px solid transparent;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn:focus {
    border-color: var(--focus);
    outline: none;
}

/* Verification Section */
.verification-section {
    display: none;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px dashed #ddd;
}

.otp-container {
    display: flex;
    gap: 10px;
    margin: 15px 0;
}

.otp-input {
    flex: 1;
    height: 60px;
    text-align: center;
    font-size: 1.8rem;
    font-weight: bold;
    border: 2px solid #ddd;
}

.otp-input:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(30, 144, 255, 0.2);
}

.status-message {
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    text-align: center;
    display: none;
    font-size: 1.1rem;
}

.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.info {
    background: #cce5ff;
    color: #004085;
    border: 1px solid #b8daff;
}

.timer {
    text-align: center;
    font-weight: 600;
    margin: 10px 0;
    color: #e74c3c;
    font-size: 1.2rem;
}

.resend-link {
    text-align: center;
    margin-top: 15px;
    color: var(--accent);
    cursor: pointer;
    display: none;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: underline;
    padding: 5px;
}

.resend-link:hover {
    text-decoration: none;
}

.resend-link:focus {
    outline: 2px solid var(--focus);
    border-radius: 4px;
}

.security-info {
    background: #f8f9fa;
    border-left: 4px solid var(--accent);
    padding: 15px;
    margin: 25px 0;
    border-radius: 0 8px 8px 0;
    font-size: 1rem;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 2rem;
    text-align: center;
    margin-top: 3rem;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #63b3ed, #90cdf4);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-text {
    color: #cbd5e0;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.1rem;
}

.compliance-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.compliance-badges img {
    height: 50px;
    width: auto;
    max-width: 100%;
}

.legal {
    color: #a0aec0;
    font-size: 1rem;
    margin-top: 25px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.legal a {
    color: #cbd5e0;
    text-decoration: underline;
}

.legal a:focus {
    outline: 2px solid var(--focus);
    border-radius: 4px;
}

/* Accessibility Controls */
.accessibility-controls {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 1000;
}

.accessibility-btn {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.accessibility-btn:focus {
    border-color: var(--focus);
    outline: none;
}

/* High Contrast Mode */
body.high-contrast {
    background: black !important;
    color: white !important;
}

body.high-contrast .header,
body.high-contrast .footer {
    border: 2px solid yellow;
}

body.high-contrast section,
body.high-contrast .contact-info,
body.high-contrast .contact-form-section {
    background: #222 !important;
    border: 2px solid yellow !important;
    color: rgb(244, 6, 6) !important;
}

/* Larger Text Mode */
body.large-text {
    font-size: 1.25rem;
}

body.large-text h1 {
    font-size: 2.5rem;
}

body.large-text h2 {
    font-size: 2rem;
}

body.large-text h3 {
    font-size: 1.5rem;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
    
    .btn:hover {
        transform: none;
    }
}

/* Fixed Navigation Bar */
nav { 
    background-color: #1a365d; 
    overflow: hidden; 
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 0 20px;
}

nav a { 
    float: left;
    display: block;
    color: white;
    text-align: center;
    padding: 18px 22px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

nav a:hover { 
    background-color: #2c5282; 
    color: #fff; 
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background-color: #63b3ed;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 80%;
}

/* Header adjustment for fixed nav */
header {
    margin-top: 60px; /* Height of fixed nav */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    position: relative;
    gap: 20px;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
}

/* Section navigation buttons */
.section-nav {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 10;
}

.nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #1E90FF;
    color: white;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    margin-top: 10px;
}

/* Smaller back-to-top button */
.nav-btn.back-to-top {
    width: 24px; /* 60% of 40px */
    height: 24px; /* 60% of 40px */
    font-size: 12px; /* 60% of 18px */
    background-color: #0066CC; /* Different color for visibility */
}

.nav-btn:hover {
    background-color: #0066CC;
    transform: translateY(-3px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.25);
}

.logo img {
    width: 150px;
    height: auto;
    margin-top: 10px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.header-right {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
    margin-left: auto;
}

/* Section styles */
section { 
    margin: 40px 20px; 
    padding: 30px; 
    border-radius: 15px; 
    background-color: white; 
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08); 
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

section:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

h2 {
    color: #1e3c72;
    border-bottom: 3px solid #63b3ed;
    padding-bottom: 12px;
    margin-top: 0;
    font-size: 2rem;
}

/* About section */
#about p {
    font-size: 1.1rem;
    word-wrap: break-word;
    white-space: normal;
    overflow-wrap: break-word;
    max-width: 100%;
    line-height: 1.8;
    text-align: left;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.content-card {
    background: #f0f9ff;
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
    border: 1px solid #e2f1ff;
}

.content-card:hover {
    background: #e1f0ff;
    transform: translateY(-5px);
}

.content-card h3 {
    color: #1e3c72;
    margin-top: 0;
}

/* Technology section */
.tech-stack {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.tech-item {
    text-align: center;
    padding: 25px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.tech-item:hover {
    background: #e9ecef;
    transform: translateY(-5px);
}

.tech-item img {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

/* Features section */
.feature-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.feature {
    background: #f0f9ff;
    border-radius: 12px;
    padding: 25px;
    border-left: 4px solid #1E90FF;
}

.feature h3 {
    color: #1e3c72;
    margin-top: 0;
}

.feature ul {
    padding-left: 20px;
}

.feature li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Workflow section */
.workflow-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.step {
    text-align: center;
    padding: 25px 20px;
    background: #f0f9ff;
    border-radius: 12px;
    position: relative;
    border: 1px solid #cfe8ff;
}

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: #1E90FF;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

/* Team section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    justify-items: center;
    margin: 30px 0;
}

.team-member {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 280px;
    padding: 25px;
    background: #f0f9ff;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-align: center;
}

.team-member:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Logo classes with proper sizing */
.university-logo {
    max-height: 90px;
    width: auto;
    object-fit: contain;
    margin-bottom: 15px;
}

.blockenergy-logo {
    max-height: 30px; /* Reduced size */
    width: auto;
    object-fit: contain;
    margin-bottom: 15px;
}

.team-member h3 {
    color: #1e3c72;
    margin: 15px 0 5px;
}

.governance {
    background: #f0f9ff;
    border-radius: 12px;
    padding: 25px;
    margin-top: 30px;
    border-left: 4px solid #1E90FF;
}

/* Contact section */
.contact-methods {
    background: #f0f9ff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
}

.contact-methods p {
    margin: 15px 0;
    font-size: 1.1rem;
}

.contact-methods a {
    color: #1E90FF;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.contact-methods a:hover {
    color: #0066CC;
    text-decoration: underline;
}

.contact-form {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.contact-form h3 {
    margin-top: 0;
    color: #1e3c72;
    border-bottom: 2px solid #63b3ed;
    padding-bottom: 10px;
}

#researchContactForm {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#researchContactForm input,
#researchContactForm textarea {
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

#researchContactForm input:focus,
#researchContactForm textarea:focus {
    border-color: #1E90FF;
    outline: none;
    box-shadow: 0 0 0 3px rgba(30, 144, 255, 0.2);
}

#researchContactForm textarea {
    min-height: 150px;
    resize: vertical;
}

#researchContactForm button[type="submit"] {
    background: linear-gradient(to right, #1E90FF, #0066CC);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    margin-top: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

#researchContactForm button[type="submit"]:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Footer */
footer {
    background: linear-gradient(135deg, #1a365d 0%, #1e3c72 100%);
    padding: 40px 20px;
    text-align: center;
    border-radius: 15px 15px 0 0;
    margin-top: 50px;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

/* Session Timer */
#session-timer {
    position: relative !important;
    margin: 0 auto 10px auto;
    display: block;
    text-align: center;
    color: red;
    font-weight: bold;
    font-size: 1.2em;
}

/* Flashing animation */
@keyframes flash {
    0%   { color: red; }
    50%  { color: yellow; }
    100% { color: red; }
}

#session-timer.flash-warning {
    animation: flash 1s infinite;
}

/* RTL support */
:root:lang(ar) {
    direction: rtl;
    unicode-bidi: embed;
}

:lang(ar) {
    body, header, footer, section, nav {
        text-align: right;
        font-family: Tahoma, Arial, sans-serif;
    }
    
    header { 
        flex-direction: row-reverse;
        justify-content: flex-end;
    }
    
    nav a { float: right; }
    
    .language-switcher { 
        left: auto;
        right: 20px;
    }
    
    .timeline, .tokenomics { 
        flex-direction: row-reverse; 
    }
    
    #about p {
        text-align: right;
        margin: 0;
    }
    
    input, select, textarea { 
        direction: rtl; 
    }
    
    .header-content {
        margin-right: 20px;
        margin-left: 0;
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .content-grid, .tech-stack, .feature-container, 
    .workflow-steps, .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    header {
        flex-direction: column;
        text-align: center;
    }
    
    .header-right {
        align-items: center;
        margin: 20px auto 0;
    }
}

@media (max-width: 768px) {
    nav a {
        padding: 14px 12px;
        font-size: 0.9rem;
    }
    
    .language-switcher {
        position: relative;
        top: 0;
        left: 0;
        margin-bottom: 15px;
        justify-content: center;
    }
    
    .section-nav {
        bottom: 15px;
        right: 15px;
    }
    
    section {
        padding: 25px 20px;
        margin: 30px 15px;
    }

    /* Email/Password fields at full width on mobile */
    #authEmail, 
    #authPassword {
        width: 100%;
    }
}

@media (max-width: 576px) {
    nav a {
        padding: 12px 8px;
        font-size: 0.85rem;
    }
    
    .nav-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .content-grid, .tech-stack, .feature-container, 
    .workflow-steps, .team-grid {
        grid-template-columns: 1fr;
    }
}

/* Timer display styling */
#session-timer {
    position: relative;
    margin: 0 auto 10px auto;
    display: block;
    text-align: center;
    font-weight: bold;
    font-size: 1.2em;
    transition: color 0.3s ease;
}

#timer-text {
    font-family: 'Courier New', monospace;
    background: rgba(0, 0, 0, 0.2);
    padding: 2px 8px;
    border-radius: 4px;
}

/* Normal state */
#session-timer.normal {
    color: #4CAF50; /* Green */
}

/* Warning state (last 30 seconds) */
#session-timer.warning {
    color: #FFC107; /* Yellow */
    animation: pulse 1.5s infinite;
}

/* Critical state (last 10 seconds) */
#session-timer.critical {
    color: #F44336; /* Red */
    animation: flash 0.5s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

@keyframes flash {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}

/* DeepSeek ChatBot Styles */
.chatbot-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
}

.chatbot-button {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.chatbot-button:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.chatbot-button:focus {
    border-color: #ff9900;
    outline: none;
}

.chat-modal {
    display: none;
    position: fixed;
    bottom: 80px;
    left: 20px;
    width: 350px;
    max-width: 90%;
    height: 400px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.2);
    flex-direction: column;
    z-index: 1001;
    overflow: hidden;
}

.chat-header {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.close-button {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #f8f9fa;
}

.message {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 18px;
    line-height: 1.4;
}

.message.user {
    background: #1E90FF;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 5px;
}

.message.ai {
    background: #e9ecef;
    color: #333;
    align-self: flex-start;
    border-bottom-left-radius: 5px;
}

.chat-input {
    display: flex;
    padding: 10px;
    background: white;
    border-top: 1px solid #eee;
}

.chat-input input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
}

.chat-input button {
    margin-left: 10px;
    padding: 10px 20px;
    background: #1e3c72;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .chat-modal {
        width: 300px;
        height: 350px;
    }
}

@media (max-width: 576px) {
    .chatbot-container {
        bottom: 15px;
        left: 15px;
    }
    
    .chat-modal {
        left: 5%;
        width: 90%;
        bottom: 70px;
    }
}
/* Make the Researcher Login button text red and bold */
.cta-button.login-button {
    color: red;
    font-weight: bold;
}
/* Make the “Join Research Network” button text red and bold */
.cta-button.join-button {
    color: red;
    font-weight: bold;
  }
  .username-display {
    font-weight: bold;
    margin-right: 10px;
    color: red; /* or whatever fits your theme */
  }
  