/**
 * Terraprep Stylesheet
 * 
 * This CSS file contains all the styling for the Terraprep landing page
 * and registration page. It includes:
 * - UMD color palette and CSS variables
 * - Responsive design and layout
 * - Animation and transition effects
 * - Form styling and validation states
 * - Chatbot interface styling (COMMENTED OUT)
 * - Background effects and visual elements
 * 
 * Author: Terraprep Development Team
 * Version: 1.0
 */

/* ==========================================================================
   CSS Variables - UMD Color Palette
   ========================================================================== */
:root {
    --maryland-red: #e21833;      /* Primary UMD red color */
    --maryland-gold: #ffd200;     /* UMD gold accent color */
    --white: #ffffff;             /* Pure white */
    --black: #000000;             /* Pure black */
    --dark-gray: #454545;         /* Dark gray for text */
    --medium-gray: #7f7f7f;       /* Medium gray for secondary text */
    --light-gray: #e6e6e6;        /* Light gray for borders */
    --bronze-testudo: #ad7231;    /* Bronze color for Testudo references */
}

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

/* ==========================================================================
   Body and Background Styles
   ========================================================================== */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #fdf9ea;              /* Warm cream background */
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;               /* Prevent horizontal scroll */
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Subtle overlay for depth */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(253, 249, 234, 0.1);
    z-index: -1;
}

/* ==========================================================================
   Top Navigation Bar
   ========================================================================== */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(25px);        /* Glass morphism effect */
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 20px;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   Branding Elements in Top Bar
   ========================================================================== */
.top-bar-brand {
    display: flex;
    align-items: center;
    gap: 4px;  /* 4px gap between logo and Terraprep text */
    position: absolute;
    left: 50px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1002;
}

.top-bar-logo-image {
    height: 40px;
    width: auto;
    border: none;
    outline: none;
    background: transparent;
}

.top-bar-text {
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    height: 100%;
}

/* ==========================================================================
   Login Button in Top Bar
   ========================================================================== */
.btn-login {
    position: fixed !important;
    top: 8px !important;
    right: 50px !important;
    padding: 16px 32px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-decoration: none;
    display: inline-block;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(226, 24, 51, 0.9), rgba(226, 24, 51, 0.7));
    backdrop-filter: blur(20px);
    color: var(--white);
    box-shadow: 
        0 4px 25px rgba(226, 24, 51, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(255, 255, 255, 0.1);
    z-index: 1001;
    position: relative;
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.8s ease;
}

.btn-login:hover::before {
    left: 100%;
}

.btn-login:hover {
    background: linear-gradient(135deg, rgba(226, 24, 51, 0.95), rgba(226, 24, 51, 0.8));
    backdrop-filter: blur(20px);
    color: var(--white);
    transform: translateY(-4px);
    box-shadow: 
        0 8px 35px rgba(226, 24, 51, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(255, 255, 255, 0.15);
}

/* ==========================================================================
   Background Shapes and Animations
   ========================================================================== */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.background-shapes {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Base shape styling for floating background elements */
.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 15s infinite linear;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--maryland-red);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: var(--maryland-gold);
    top: 60%;
    right: 15%;
    animation-delay: -5s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    background: var(--bronze-testudo);
    top: 30%;
    right: 30%;
    animation-delay: -10s;
}

.shape-4 {
    width: 100px;
    height: 100px;
    background: var(--maryland-red);
    bottom: 20%;
    left: 20%;
    animation-delay: -15s;
}

.shape-5 {
    width: 250px;
    height: 250px;
    background: var(--maryland-gold);
    top: 70%;
    left: 60%;
    animation-delay: -8s;
}

@keyframes logoAppear {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) translateY(30px) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) translateY(0px) scale(1);
    }
}

@keyframes logoFloat {
    0% {
        transform: translate(-50%, -50%) translateY(0px) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) translateY(-2px) scale(1.02);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) translateY(-3px) scale(1.05);
        opacity: 1;
    }
}

/* ==========================================================================
   Main Container and Hero Section
   ========================================================================== */
.container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 90px 20px 20px 20px; /* Added top padding for top bar */
    text-align: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0;
}

/* Login page specific - remove top padding for perfect centering */
body.login-page .container {
    padding: 20px;
}

/* Profile Setup and Profile Page specific - remove top padding for perfect centering */
body.profile-setup-page .container,
body.profile-page .container {
    padding: 20px;
}

.hero {
    text-align: center;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* ==========================================================================
   Logo and Branding Elements
   ========================================================================== */
.logo-container {
    margin-bottom: 40px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.logo-image-container {
    position: absolute;
    top: -110px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.logo-image {
    height: 160px;
    width: auto;
    opacity: 0.9;
    border: none;
    outline: none;
    background: transparent;
    animation: logoGlow 3s ease-in-out infinite alternate;
}

.logo-text {
    font-size: clamp(4rem, 12vw, 8rem);
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 0 auto;
    width: 100%;
}

.terraprep {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    letter-spacing: -0.02em;
    position: relative;
}

.terra-text {
    color: var(--maryland-red);
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 0.9em;
    letter-spacing: -0.02em;
    position: relative;
    display: inline-block;
    animation: terraGlow 2.5s ease-in-out infinite alternate;
    text-shadow: 0 0 15px rgba(226, 24, 51, 0.4);
}

.prep-text {
    color: var(--maryland-gold);
    font-family: 'Pacifico', cursive;
    font-weight: 400;
    font-size: 1.1em;
    letter-spacing: -0.02em;
    position: relative;
    display: inline-block;
    animation: prepGlow 2.8s ease-in-out infinite alternate;
    text-shadow: 0 0 15px rgba(255, 210, 0, 0.4);
    margin-left: -2px; /* Slight overlap for seamless look */
}

@keyframes terraGlow {
    0% {
        filter: brightness(1) drop-shadow(0 0 10px rgba(226, 24, 51, 0.3));
        transform: scale(1) translateY(0);
    }
    50% {
        filter: brightness(1.15) drop-shadow(0 0 20px rgba(226, 24, 51, 0.6));
        transform: scale(1.02) translateY(-2px);
    }
    100% {
        filter: brightness(1.3) drop-shadow(0 0 30px rgba(226, 24, 51, 0.8));
        transform: scale(1.05) translateY(-3px);
    }
}

@keyframes prepGlow {
    0% {
        filter: brightness(1) drop-shadow(0 0 10px rgba(255, 210, 0, 0.3));
        transform: scale(1) translateY(0);
    }
    50% {
        filter: brightness(1.2) drop-shadow(0 0 20px rgba(255, 210, 0, 0.6));
        transform: scale(1.03) translateY(-2px);
    }
    100% {
        filter: brightness(1.4) drop-shadow(0 0 30px rgba(255, 210, 0, 0.8));
        transform: scale(1.06) translateY(-3px);
    }
}

@keyframes logoGlow {
    0% {
        transform: scale(1) translateY(0);
    }
    50% {
        transform: scale(1.02) translateY(-2px);
    }
    100% {
        transform: scale(1.04) translateY(-3px);
    }
}

.word {
    display: inline-block;
    position: relative;
    opacity: 0;
    transition: transform 0.3s ease;
}

.texttype-container {
    margin-top: 20px;
    min-height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}


.subtitle {
    margin-bottom: 50px;
    opacity: 0;
    animation: fadeIn 1s ease-out 1.8s forwards;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.subtitle-text {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: var(--dark-gray);
    font-weight: 400;
    line-height: 1.5;
    max-width: 600px;
    margin: 0 auto;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeIn 1s ease-out 2.3s forwards;
    margin: 0 auto;
}

/* ==========================================================================
   Button Styles and Interactions
   ========================================================================== */
.btn {
    padding: 16px 32px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, rgba(226, 24, 51, 0.9), rgba(226, 24, 51, 0.7));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    box-shadow: 
        0 4px 25px rgba(226, 24, 51, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.8s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: linear-gradient(135deg, rgba(226, 24, 51, 0.95), rgba(226, 24, 51, 0.8));
    backdrop-filter: blur(20px);
    color: var(--white);
    transform: translateY(-4px);
    box-shadow: 
        0 8px 35px rgba(226, 24, 51, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(255, 255, 255, 0.15);
}

.btn-secondary {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(226, 24, 51, 0.3);
    color: var(--maryland-red);
    box-shadow: 
        0 4px 15px rgba(226, 24, 51, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.8s ease;
}

.btn-secondary:hover::before {
    left: 100%;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, rgba(226, 24, 51, 0.9), rgba(226, 24, 51, 0.7));
    backdrop-filter: blur(20px);
    color: var(--white);
    transform: translateY(-4px);
    box-shadow: 
        0 8px 25px rgba(226, 24, 51, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(255, 255, 255, 0.15);
}

/* Responsive Design */
@media (max-width: 768px) {
    .learn-more-section {
        padding: 40px 15px;
        min-height: calc(100vh - 80px);
    }
    
    .learn-more-title {
        font-size: 2rem;
    }
    
    .learn-more-subtitle {
        font-size: 1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 30px;
    }
    
    .feature-box {
        padding: 20px;
    }
    
    .register-section {
        padding: 40px 15px;
        min-height: calc(100vh - 80px);
    }
    
    .btn-login {
        top: 15px;
        right: 15px;
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .logo-text {
        font-size: clamp(3rem, 15vw, 6rem);
    }
    
    .subtitle-text {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 200px;
    }
    
    .shape {
        display: none;
    }
}

/* ==========================================================================
   Registration Page Styles
   ========================================================================== */
.register-container {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
    border-radius: 20px;
    padding: 40px;
    max-width: 450px;
    width: 100%;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(255, 255, 255, 0.03);
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

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

.register-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--maryland-red);
    margin-bottom: 10px;
}

.register-subtitle {
    color: var(--dark-gray);
    font-size: 1rem;
    font-weight: 400;
}

.register-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-weight: 600;
    color: var(--dark-gray);
    font-size: 0.9rem;
    text-align: left;
}

.form-input {
    padding: 12px 16px;
    border: 2px solid var(--light-gray);
    border-radius: 15px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: var(--maryland-red);
    box-shadow: 0 0 0 3px rgba(226, 24, 51, 0.1);
}

.form-input.error {
    border-color: #e74c3c;
}

.form-input.success {
    border-color: #27ae60;
}

.error-message {
    color: #e74c3c;
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 4px;
    min-height: 0;
    line-height: 1.2;
    height: auto;
}

.error-message:empty {
    margin-top: 0;
    height: 0;
    overflow: hidden;
}

.password-checklist {
    margin-top: 4px;
    display: none;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 2px;
}

.check-item:last-child {
    margin-bottom: 0;
}

.check-circle {
    font-size: 0.6rem;
    font-weight: bold;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.check-circle.valid {
    background: #27ae60;
    color: white;
}

.check-circle.invalid {
    background: #e74c3c;
    color: white;
}

.check-circle.neutral {
    background: var(--light-gray);
    color: var(--dark-gray);
}

.check-text {
    font-size: 0.75rem;
    color: var(--dark-gray);
    font-weight: 500;
}

.confirm-message {
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 4px;
}

.confirm-message.match {
    color: #27ae60;
}

.confirm-message.no-match {
    color: #e74c3c;
}

.btn-register {
    margin-top: 10px;
    padding: 14px;
    font-size: 1.1rem;
}

.login-link {
    text-align: center;
    margin-top: 20px;
}

.login-link p {
    color: var(--dark-gray);
    font-size: 0.9rem;
}

.link {
    color: var(--maryland-red);
    text-decoration: none;
    font-weight: 600;
}

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

@media (max-width: 480px) {
    .btn-login {
        top: 10px;
        right: 10px;
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .container {
        padding: 15px;
    }
    
    .hero {
        padding-top: 50px;
    }
    
    .logo-container {
        margin-bottom: 30px;
    }
    
    .subtitle {
        margin-bottom: 40px;
    }
    
    .register-container {
        padding: 30px 20px;
        margin: 10px;
    }
    
    .register-title {
        font-size: 1.5rem;
    }
}

/* Learn More Section Styles */
.learn-more-section {
    padding: 80px 20px;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.learn-more-section.revealed {
    opacity: 1;
    transform: translateY(0);
}

.learn-more-container {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

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

.learn-more-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--maryland-red);
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(226, 24, 51, 0.2);
    letter-spacing: -0.5px;
}

.learn-more-subtitle {
    color: var(--dark-gray);
    font-size: 1.2rem;
    font-weight: 400;
    opacity: 0.8;
    line-height: 1.5;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 20px;
    margin: 30px auto;
    max-width: 900px;
    width: 100%;
}

.feature-box {
    background: linear-gradient(135deg, rgba(226, 24, 51, 0.1), rgba(226, 24, 51, 0.05));
    border-radius: 20px;
    padding: 20px 30px;
    text-align: center;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 8px 25px rgba(226, 24, 51, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    min-height: 120px;
    position: relative;
    overflow: hidden;
}

.feature-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.8s ease;
}

.feature-box:hover::before {
    left: 100%;
}

.feature-box:hover {
    background: linear-gradient(135deg, rgba(226, 24, 51, 0.15), rgba(226, 24, 51, 0.08));
    backdrop-filter: blur(20px);
    transform: translateY(-4px);
    box-shadow: 
        0 8px 35px rgba(226, 24, 51, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(255, 255, 255, 0.15);
}

.top-left {
    grid-column: 1;
    grid-row: 1;
}

.top-right {
    grid-column: 2;
    grid-row: 1;
}

.bottom-center {
    grid-column: 1 / 3;
    grid-row: 2;
    justify-self: center;
    max-width: 500px;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.feature-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--maryland-red);
    margin-bottom: 10px;
}

.feature-description {
    color: var(--dark-gray);
    line-height: 1.5;
    font-size: 0.95rem;
}

.user-counter {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.counter-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--maryland-red);
    text-shadow: 0 2px 4px rgba(226, 24, 51, 0.3);
}

.counter-text {
    font-size: 1rem;
    color: var(--dark-gray);
    font-weight: 500;
}

.learn-more-cta {
    text-align: center;
    margin-top: 25px;
}

.learn-more-cta .btn {
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    background: linear-gradient(135deg, rgba(226, 24, 51, 0.9), rgba(226, 24, 51, 0.7));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    box-shadow: 
        0 4px 25px rgba(226, 24, 51, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.learn-more-cta .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.8s ease;
}

.learn-more-cta .btn:hover::before {
    left: 100%;
}

.learn-more-cta .btn:hover {
    background: linear-gradient(135deg, rgba(226, 24, 51, 0.95), rgba(226, 24, 51, 0.8));
    backdrop-filter: blur(20px);
    color: var(--white);
    transform: translateY(-4px);
    box-shadow: 
        0 8px 35px rgba(226, 24, 51, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(255, 255, 255, 0.15);
}

/* Registration Section Styles */
.register-section {
    padding: 80px 20px;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.register-section.revealed {
    opacity: 1;
    transform: translateY(0);
}


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

.register-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--maryland-red);
    margin-bottom: 10px;
}

.register-subtitle {
    color: var(--dark-gray);
    font-size: 1rem;
    font-weight: 400;
}

.register-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    opacity: 0;
    transform: translateY(20px);
    animation: formReveal 0.6s ease-out forwards;
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.2s; }
.form-group:nth-child(3) { animation-delay: 0.3s; }
.form-group:nth-child(4) { animation-delay: 0.4s; }

@keyframes formReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-label {
    font-weight: 600;
    color: var(--dark-gray);
    font-size: 0.9rem;
    text-align: left;
}

.form-input {
    padding: 12px 16px;
    border: 2px solid var(--light-gray);
    border-radius: 15px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: var(--maryland-red);
    box-shadow: 0 0 0 3px rgba(226, 24, 51, 0.1);
}

.form-input.error {
    border-color: #e74c3c;
}

.form-input.success {
    border-color: #27ae60;
}

.error-message {
    color: #e74c3c;
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 4px;
    min-height: 0;
    line-height: 1.2;
    height: auto;
}

.error-message:empty {
    margin-top: 0;
    height: 0;
    overflow: hidden;
}

.password-checklist {
    margin-top: 4px;
    display: none;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 2px;
}

.check-item:last-child {
    margin-bottom: 0;
}

.check-circle {
    font-size: 0.6rem;
    font-weight: bold;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.check-circle.valid {
    background: #27ae60;
    color: white;
}

.check-circle.invalid {
    background: #e74c3c;
    color: white;
}

.check-circle.neutral {
    background: var(--light-gray);
    color: var(--dark-gray);
}

.check-text {
    font-size: 0.75rem;
    color: var(--dark-gray);
    font-weight: 500;
}

.confirm-message {
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 4px;
}

.confirm-message.match {
    color: #27ae60;
}

.confirm-message.no-match {
    color: #e74c3c;
}

.btn-register {
    margin-top: 10px;
    padding: 14px;
    font-size: 1.1rem;
}

.forgot-password-link {
    text-align: right;
    margin-top: 6px;
    margin-bottom: 0;
}

.forgot-password-link a {
    font-size: 0.85rem;
    color: var(--maryland-red);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.forgot-password-link a:hover {
    text-decoration: underline;
    color: #c01e3a;
}

.login-link {
    text-align: center;
    margin-top: 20px;
}

.login-link p {
    color: var(--dark-gray);
    font-size: 0.9rem;
}

.link {
    color: var(--maryland-red);
    text-decoration: none;
    font-weight: 600;
}

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

/* Password Reset Modal */
.password-reset-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.password-reset-modal-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
    backdrop-filter: blur(30px);
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: slideUp 0.3s ease;
}

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

.password-reset-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px;
    border-bottom: 1px solid rgba(226, 24, 51, 0.1);
}

.password-reset-modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--maryland-red);
    margin: 0;
    font-family: 'Inter', sans-serif;
}

.password-reset-close-btn {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--maryland-red);
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.password-reset-close-btn:hover {
    background: rgba(226, 24, 51, 0.1);
    transform: scale(1.1);
}

.password-reset-modal-body {
    padding: 28px;
    color: var(--dark-gray);
    font-family: 'Inter', sans-serif;
}

.password-reset-info {
    margin-bottom: 20px;
    padding: 12px;
    background: rgba(226, 24, 51, 0.05);
    border-left: 4px solid var(--maryland-red);
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--dark-gray);
}

.password-reset-status {
    margin-top: 16px;
    min-height: 24px;
}

.password-reset-success,
.password-reset-error {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
}

.password-reset-success {
    background: rgba(39, 174, 96, 0.1);
    color: #27ae60;
    border-left: 3px solid #27ae60;
}

.password-reset-error {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border-left: 3px solid #e74c3c;
}

.password-reset-modal-actions {
    display: flex;
    gap: 12px;
    padding: 20px 28px 28px 28px;
    border-top: 1px solid rgba(226, 24, 51, 0.1);
}

.password-reset-cancel-btn,
.password-reset-submit-btn {
    flex: 1;
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.password-reset-cancel-btn {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(226, 24, 51, 0.3);
    color: var(--maryland-red);
    box-shadow: 
        0 4px 15px rgba(226, 24, 51, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(255, 255, 255, 0.1);
}

.password-reset-cancel-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.8s ease;
}

.password-reset-cancel-btn:hover::before {
    left: 100%;
}

.password-reset-cancel-btn:hover {
    background: linear-gradient(135deg, rgba(226, 24, 51, 0.9), rgba(226, 24, 51, 0.7));
    backdrop-filter: blur(20px);
    color: var(--white);
    transform: translateY(-4px);
    box-shadow: 
        0 8px 25px rgba(226, 24, 51, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(255, 255, 255, 0.15);
}

.password-reset-submit-btn {
    background: linear-gradient(135deg, rgba(226, 24, 51, 0.9), rgba(226, 24, 51, 0.7));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    box-shadow: 
        0 4px 25px rgba(226, 24, 51, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(255, 255, 255, 0.1);
}

.password-reset-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.8s ease;
}

.password-reset-submit-btn:hover::before {
    left: 100%;
}

.password-reset-submit-btn:hover {
    background: linear-gradient(135deg, rgba(226, 24, 51, 0.95), rgba(226, 24, 51, 0.8));
    backdrop-filter: blur(20px);
    color: var(--white);
    transform: translateY(-4px);
    box-shadow: 
        0 8px 35px rgba(226, 24, 51, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(255, 255, 255, 0.15);
}

.password-reset-submit-btn:disabled {
    background: #ccc;
    color: #666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    backdrop-filter: none;
    border: 1px solid #999;
}

.password-reset-submit-btn:disabled::before {
    display: none;
}

/* ==========================================================================
   Rapr Notification Styles
   COMMENTED OUT: Rapr Chatbot Feature
   ========================================================================== */
/*
.rapr-notification {
    position: fixed;
    bottom: 100px;
    right: 20px;
    background: rgba(254, 249, 234, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--black);
    border-radius: 15px;
    padding: 0;
    box-shadow: 
        0 4px 25px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05);
    max-width: 300px;
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1000;
    pointer-events: none;
}

.rapr-notification.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.rapr-notification-content {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rapr-notification-text {
    flex: 1;
    font-size: 0.9rem;
    color: var(--black);
    font-family: 'Inter', sans-serif;
    line-height: 1.4;
}

.rapr-terra {
    color: var(--maryland-red);
    font-family: 'Inter', sans-serif;
    font-weight: 700;
}

.rapr-prep {
    color: var(--maryland-gold);
    font-family: 'Pacifico', cursive;
    font-weight: 400;
    font-size: 1.2em;
}

.rapr-notification-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--maryland-red);
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.rapr-notification-close:hover {
    background: rgba(226, 24, 51, 0.1);
    transform: scale(1.1);
}

/* ==========================================================================
   Rapr Chatbot Styles
   ========================================================================== */
.chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
}

.chatbot-button {
    display: flex;
    align-items: center;
    gap: 4px;  /* 4px gap between logo and rapr text */
    background: rgba(254, 249, 234, 0.9);  /* Glassy fef9ea background */
    backdrop-filter: blur(20px);
    border: 1px solid var(--black);  /* Thin UMD black border */
    border-radius: 50px;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05);
    animation: chatbotGlow 3s ease-in-out infinite alternate;
}

.chatbot-button:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 12px 35px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.chatbot-logo {
    height: 30px;
    width: auto;
    border: none;
    outline: none;
    background: transparent;
}

.chatbot-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--maryland-red);  /* Red color for better contrast on glassy background */
    display: flex;
    align-items: center;  /* Center vertically */
    height: 100%;  /* Take full height of button */
}

.chatbot-pr {
    transform: translateY(-3px);  /* Move "pr" up by 3px (adjusted from -2px) */
}

.chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background: rgba(254, 249, 234, 0.9);  /* fef9ea background */
    backdrop-filter: blur(20px);
    border: 1px solid var(--black);  /* Thin UMD black border */
    border-radius: 20px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(255, 255, 255, 0.1);
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.chatbot-header {
    display: flex;
    align-items: center;  /* Center content vertically */
    justify-content: space-between;
    padding: 15px 20px;
    background: rgba(254, 249, 234, 0.95);  /* Slightly more opaque fef9ea */
    border-bottom: 1px solid var(--black);  /* Thin UMD black border */
}

.chatbot-header-info {
    display: flex;
    align-items: center;
    gap: 4px;  /* 4px gap between logo and rapr text */
}

.chatbot-header-logo {
    height: 25px;
    width: auto;
    border: none;
    outline: none;
    background: transparent;
}

.chatbot-header-name {
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;  /* Ensure vertical centering */
    height: 100%;  /* Take full height of container */
}

.chatbot-header-pr {
    transform: translateY(-3px);  /* Move "pr" up by 3px in header (adjusted from -2px) */
}

.chatbot-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--maryland-red);
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.chatbot-close:hover {
    background: rgba(226, 24, 51, 0.1);
}

.chatbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chatbot-message {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.chatbot-avatar {
    height: 32.32px;  /* Increased by 1% from 32px */
    width: 32.32px;    /* Increased by 1% from 32px */
    border-radius: 50%;
    border: 1px solid var(--black);  /* Thin UMD black border */
    outline: none;
    background: transparent;
    flex-shrink: 0;
    object-fit: cover;  /* Prevent image squishing */
}

.chatbot-message-content {
    background: rgba(226, 24, 51, 0.1);
    padding: 12px 16px;
    border-radius: 18px;
    border-top-left-radius: 4px;
    max-width: 80%;
}

.chatbot-message-content p {
    margin: 0;
    color: var(--dark-gray);
    font-size: 0.9rem;
    line-height: 1.4;
}

.chatbot-input-container {
    display: flex;
    padding: 15px 20px;
    gap: 10px;
    background: rgba(254, 249, 234, 0.95);  /* fef9ea background */
    border-top: 1px solid var(--black);  /* Thin UMD black border */
}

.chatbot-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--black);  /* UMD black border */
    border-radius: 15px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    background: white;
    outline: none;
}

.chatbot-input:focus {
    outline: none;
    border-color: var(--maryland-red);
    box-shadow: 0 0 0 3px rgba(226, 24, 51, 0.1);
}

.chatbot-send {
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(226, 24, 51, 0.9), rgba(226, 24, 51, 0.7));
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s;
}

.chatbot-send:hover {
    background: linear-gradient(135deg, rgba(226, 24, 51, 1), rgba(226, 24, 51, 0.8));
    transform: translateY(-1px);
}

@keyframes chatbotGlow {
    0% {
        transform: scale(1) translateY(0);
    }
    50% {
        transform: scale(1.02) translateY(-2px);
    }
    100% {
        transform: scale(1.04) translateY(-3px);
    }
}
*/

/* ==========================================================================
   Profile Setup and Profile Page Styles
   ========================================================================== */

/* Profile Picture Upload */
.profile-picture-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.profile-picture-preview {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    position: relative;
}

.profile-picture-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-picture-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--medium-gray);
    background: var(--light-gray);
}

.file-input {
    display: none;
}

.file-input-label {
    cursor: pointer;
    display: inline-block;
}

/* Select Dropdown Styling */
select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23454545' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

select.form-input:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23e21833' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
}

/* Form Hint */
.form-hint {
    font-size: 0.85rem;
    color: var(--medium-gray);
    margin-top: 5px;
    text-align: left;
}

/* Profile Display */
.profile-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding: 20px 0;
}

.profile-picture-display {
    display: flex;
    justify-content: center;
}

.profile-picture-large {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--maryland-red);
    box-shadow: 0 10px 30px rgba(226, 24, 51, 0.2);
}

.profile-picture-large.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-gray);
    color: var(--medium-gray);
    border-color: var(--light-gray);
}

.profile-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.profile-info-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.profile-label {
    font-weight: 600;
    color: var(--dark-gray);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-value {
    font-size: 1.1rem;
    color: var(--dark-gray);
    font-weight: 500;
}

.profile-loading,
.profile-error {
    text-align: center;
    padding: 40px 20px;
    color: var(--medium-gray);
    font-size: 1rem;
}

.profile-error {
    color: var(--maryland-red);
}

/* Responsive adjustments for profile pages */
@media (max-width: 768px) {
    .profile-picture-preview {
        width: 120px;
        height: 120px;
    }
    
    .profile-picture-large {
        width: 150px;
        height: 150px;
    }
    
    .profile-info-item {
        padding: 12px;
    }
}

/* ==========================================================================
   Profile Setup Page - Clean Modern Design
   ========================================================================== */

body.profile-setup-page {
    overflow-y: auto;
    min-height: 100vh;
}

.profile-setup-container {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Header Section */
.profile-setup-header {
    text-align: center;
    margin-bottom: 20px;
}

.profile-setup-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 12px;
    display: inline-block;
}

.profile-setup-title .welcome-text {
    color: var(--maryland-red);
    font-weight: 700;
    font-family: 'Inter', sans-serif;
}

.profile-setup-title .terra-text {
    color: var(--maryland-red);
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    animation: none;
    text-shadow: none;
    transform: translateY(-1px);
}

.profile-setup-title .prep-text {
    color: var(--maryland-gold);
    font-family: 'Pacifico', cursive;
    font-weight: 400;
    font-size: 1.2em;
    margin-left: -2px;
    animation: none;
    text-shadow: none;
    transform: translateY(-1px);
}

.profile-setup-subtitle {
    font-size: 1.1rem;
    color: var(--dark-gray);
    font-weight: 400;
    margin: 0;
}

/* Form Card - Matching Signup Box Theme */
.profile-setup-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-setup-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Form Fields */
.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark-gray);
    font-family: 'Inter', sans-serif;
    text-align: left;
}

.field-label .required-text {
    color: var(--medium-gray);
    font-weight: 400;
    font-size: 0.85em;
}

.field-label .optional-text {
    color: var(--medium-gray);
    font-weight: 400;
    font-size: 0.85em;
}

.field-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--light-gray);
    border-radius: 15px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    background: white;
    color: var(--dark-gray);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.field-input:focus {
    outline: none;
    border-color: var(--maryland-red);
    box-shadow: 0 0 0 3px rgba(226, 24, 51, 0.1);
}

.field-input::placeholder {
    color: var(--medium-gray);
}

.field-input.error {
    border-color: #e74c3c;
}

.field-input.success {
    border-color: #27ae60;
}

.field-error {
    color: #e74c3c;
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 4px;
    min-height: 0;
    line-height: 1.2;
    height: auto;
    font-family: 'Inter', sans-serif;
    text-align: left;
}

.field-error:empty {
    margin-top: 0;
    height: 0;
    overflow: hidden;
}

.field-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23454545' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

.field-select:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23e21833' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
}

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

/* Profile Picture */
.profile-picture-field {
    align-items: center;
}

.profile-picture-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.profile-picture-preview {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(226, 24, 51, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(226, 24, 51, 0.05), rgba(255, 210, 0, 0.05));
    flex-shrink: 0;
}

.profile-picture-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-picture-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--medium-gray);
}

.profile-picture-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.file-input {
    display: none;
}

.file-label {
    padding: 8px 20px;
    background: rgba(226, 24, 51, 0.1);
    border: 2px solid rgba(226, 24, 51, 0.3);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--maryland-red);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.file-label:hover {
    background: rgba(226, 24, 51, 0.15);
    border-color: rgba(226, 24, 51, 0.5);
}

.file-hint {
    font-size: 0.75rem;
    color: var(--medium-gray);
    font-family: 'Inter', sans-serif;
}

/* Classes Dropdown - UMD white with UMD red border, glassy and curvier */
.classes-wrapper {
    position: relative;
}

.classes-input {
    width: 100%;
}

.classes-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid var(--maryland-red);
    border-top: none;
    border-radius: 0 0 28px 28px;
    max-height: 220px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 
        0 8px 28px rgba(226, 24, 51, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    margin-top: -1px;
}

.classes-dropdown.show {
    display: block;
}

.classes-dropdown-item {
    padding: 14px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(226, 24, 51, 0.12);
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    color: var(--dark-gray);
}

.classes-dropdown-item:first-child {
    padding-top: 16px;
}

.classes-dropdown-item:last-child {
    border-bottom: none;
    padding-bottom: 16px;
}

.classes-dropdown-item:hover {
    background: linear-gradient(135deg, rgba(226, 24, 51, 0.1), rgba(226, 24, 51, 0.05));
    color: var(--maryland-red);
    transform: translateX(4px);
}

.selected-classes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    margin-bottom: 0;
    min-height: 30px;
}

.class-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(226, 24, 51, 0.1);
    color: var(--maryland-red);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(226, 24, 51, 0.2);
    font-family: 'Inter', sans-serif;
}

.class-chip-remove {
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    color: var(--maryland-red);
    font-weight: bold;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(226, 24, 51, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.class-chip-remove:hover {
    background: rgba(226, 24, 51, 0.25);
    transform: scale(1.1);
}

/* Submit Button */
.submit-button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, rgba(226, 24, 51, 0.9), rgba(226, 24, 51, 0.7));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    margin-top: 0;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 4px 25px rgba(226, 24, 51, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(255, 255, 255, 0.1);
}

.submit-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.8s ease;
}

.submit-button:hover::before {
    left: 100%;
}

.submit-button:hover {
    background: linear-gradient(135deg, rgba(226, 24, 51, 0.95), rgba(226, 24, 51, 0.8));
    backdrop-filter: blur(20px);
    color: white;
    transform: translateY(-4px);
    box-shadow: 
        0 8px 35px rgba(226, 24, 51, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(255, 255, 255, 0.15);
}

.submit-button:active {
    transform: translateY(-2px);
}

.submit-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Responsive */
@media (max-width: 768px) {
    .profile-setup-container {
        padding: 40px 16px;
    }
    
    .profile-setup-title {
        font-size: 2rem;
    }
    
    .profile-setup-card {
        padding: 32px 24px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .profile-setup-container {
        padding: 30px 16px;
        gap: 30px;
    }
    
    .profile-setup-title {
        font-size: 1.75rem;
    }
    
    .profile-setup-card {
        padding: 24px 20px;
    }
}

/* ==========================================================================
   Homepage Styles
   ========================================================================== */

body.home-page {
    overflow-y: auto;
    min-height: 100vh;
}

/* Top Navigation Bar */
.home-top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(25px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(255, 255, 255, 0.1);
}

.home-top-bar-brand {
    display: flex;
    align-items: center;
    gap: 4px;
    position: absolute;
    left: 50px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1002;
}

.home-top-bar-logo-image {
    height: 40px;
    width: auto;
    border: none;
    outline: none;
    background: transparent;
}

.home-top-bar-text {
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    height: 100%;
}

/* Navigation Tabs */
.home-nav-tabs {
    display: flex;
    align-items: center;
    gap: 10px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1001;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(255, 255, 255, 0.1);
}

.home-nav-tab {
    background: transparent;
    border: none;
    padding: 10px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark-gray);
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    white-space: nowrap;
    overflow: hidden;
}

.home-nav-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.8s ease;
}

.home-nav-tab:hover::before {
    left: 100%;
}

.home-nav-tab:hover {
    color: var(--maryland-red);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
    backdrop-filter: blur(20px);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.home-nav-tab.active {
    color: white;
    background: linear-gradient(135deg, rgba(226, 24, 51, 0.9), rgba(226, 24, 51, 0.7));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 4px 25px rgba(226, 24, 51, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(255, 255, 255, 0.1);
}

.home-nav-tab.active:hover {
    background: linear-gradient(135deg, rgba(226, 24, 51, 0.95), rgba(226, 24, 51, 0.8));
    box-shadow: 
        0 4px 25px rgba(226, 24, 51, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(255, 255, 255, 0.15);
}

.home-settings-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(226, 24, 51, 0.4);
    border-radius: 8px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--maryland-red);
    backdrop-filter: blur(10px);
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1002;
    box-shadow: 
        0 2px 8px rgba(226, 24, 51, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.home-settings-btn:hover {
    background: rgba(226, 24, 51, 0.1);
    border-color: rgba(226, 24, 51, 0.6);
    box-shadow: 
        0 4px 12px rgba(226, 24, 51, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.home-settings-btn svg {
    width: 20px;
    height: 20px;
}

/* Main Container */
.home-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 100px 20px 40px 20px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Home Sections */
.home-section {
    width: 100%;
}

.home-section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 24px;
    font-family: 'Inter', sans-serif;
}

/* User Profile Card */
.home-profile-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.home-profile-loading {
    text-align: center;
    color: var(--medium-gray);
    padding: 20px;
}

/* Users Grid */
.home-users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.home-users-loading {
    text-align: center;
    color: var(--medium-gray);
    padding: 40px;
    grid-column: 1 / -1;
}

/* User Card */
.home-user-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.home-user-card:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(255, 255, 255, 0.05);
}

.home-user-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.home-user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(226, 24, 51, 0.2);
    flex-shrink: 0;
}

.home-user-avatar-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(226, 24, 51, 0.1), rgba(255, 210, 0, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(226, 24, 51, 0.2);
    color: var(--medium-gray);
    flex-shrink: 0;
}

.home-user-info {
    flex: 1;
    min-width: 0;
}

.home-user-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 4px;
    font-family: 'Inter', sans-serif;
}

.home-user-major {
    font-size: 0.9rem;
    color: var(--medium-gray);
    font-family: 'Inter', sans-serif;
}

.home-user-classes {
    margin-top: 16px;
}

.home-user-classes-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 8px;
    font-family: 'Inter', sans-serif;
}

.home-user-classes-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.home-user-class-tag {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(226, 24, 51, 0.1);
    color: var(--maryland-red);
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(226, 24, 51, 0.2);
    font-family: 'Inter', sans-serif;
}

.home-user-class-tag.matching-class {
    background: linear-gradient(135deg, rgba(226, 24, 51, 0.25), rgba(226, 24, 51, 0.15));
    color: var(--maryland-red);
    border: 2px solid rgba(226, 24, 51, 0.4);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(226, 24, 51, 0.2);
}

/* Connect Tab - New Layout */
.connect-user-avatar-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 16px;
}

.connect-user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(226, 24, 51, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.connect-user-avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(226, 24, 51, 0.15), rgba(255, 210, 0, 0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(226, 24, 51, 0.3);
    color: var(--medium-gray);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.connect-user-info {
    text-align: left;
}

.connect-user-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 8px;
    font-family: 'Inter', sans-serif;
    text-align: left;
}

.connect-user-detail {
    font-size: 0.9rem;
    color: var(--medium-gray);
    margin-bottom: 4px;
    font-family: 'Inter', sans-serif;
    text-align: left;
}

.connect-user-classes {
    margin-top: 16px;
    margin-bottom: 16px;
    text-align: left;
}

.connect-classes-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 8px;
    font-family: 'Inter', sans-serif;
    text-align: left;
}

.connect-classes-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    text-align: left;
}

.connect-user-rating {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
}

.star-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    text-align: left;
}

.star {
    font-size: 1.2rem;
    color: var(--maryland-gold);
    line-height: 1;
}

.star-full {
    color: var(--maryland-gold);
}

.star-half {
    color: var(--maryland-gold);
    opacity: 0.6;
}

.star-empty {
    color: var(--light-gray);
}

.rating-value {
    margin-left: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark-gray);
    font-family: 'Inter', sans-serif;
}

.no-rating-text {
    font-size: 0.85rem;
    color: var(--medium-gray);
    font-style: italic;
    font-family: 'Inter', sans-serif;
}

/* Texts Tab - WhatsApp Style Layout */
.texts-container {
    display: flex;
    height: calc(100vh - 180px);
    min-height: 600px;
    max-height: 800px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
    backdrop-filter: blur(20px);
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid rgba(226, 24, 51, 0.4);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 0 20px rgba(226, 24, 51, 0.2);
    margin: 20px;
}

#texts-tab {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 0;
}

#texts-tab .texts-container {
    flex: 1;
    margin: 20px;
    border-radius: 20px;
}

/* Sidebar */
.texts-sidebar {
    width: 350px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
}

.texts-sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.texts-sidebar-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin: 0;
    font-family: 'Inter', sans-serif;
}

.texts-conversations-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.texts-loading,
.texts-empty,
.texts-error {
    padding: 20px;
    text-align: center;
    color: var(--medium-gray);
    font-family: 'Inter', sans-serif;
}

.texts-conversation-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 4px;
}

.texts-conversation-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.texts-conversation-item.active {
    background: rgba(226, 24, 51, 0.1);
    border-left: 3px solid var(--maryland-red);
}

.texts-conversation-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid rgba(226, 24, 51, 0.2);
}

.texts-conversation-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.texts-conversation-avatar-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(226, 24, 51, 0.15), rgba(255, 210, 0, 0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--medium-gray);
}

.texts-conversation-info {
    flex: 1;
    min-width: 0;
}

.texts-conversation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.texts-conversation-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark-gray);
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.texts-status-badge {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
}

.texts-status-badge.accepted {
    background: rgba(39, 174, 96, 0.15);
    color: #27ae60;
}

.texts-status-badge.denied {
    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
}

.texts-status-badge.pending {
    background: rgba(255, 210, 0, 0.15);
    color: var(--maryland-gold);
}

.texts-conversation-preview {
    font-size: 0.85rem;
    color: var(--medium-gray);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: 'Inter', sans-serif;
}

/* Chat Area */
.texts-chat-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}

.texts-chat-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--medium-gray);
}

.texts-chat-empty-icon {
    font-size: 4rem;
    margin-bottom: 16px;
}

.texts-chat-empty-text {
    font-size: 1.1rem;
    font-family: 'Inter', sans-serif;
}

.texts-chat-active {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.texts-chat-header {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.texts-chat-header-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.texts-chat-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.texts-studied-with-btn {
    display: none;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(255, 210, 0, 0.15), rgba(255, 210, 0, 0.1));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 210, 0, 0.3);
    color: var(--maryland-gold);
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 
        0 2px 8px rgba(255, 210, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.texts-studied-with-btn:hover {
    background: linear-gradient(135deg, rgba(255, 210, 0, 0.2), rgba(255, 210, 0, 0.15));
    border-color: rgba(255, 210, 0, 0.5);
    transform: translateY(-2px);
    box-shadow: 
        0 4px 12px rgba(255, 210, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.texts-studied-with-btn svg {
    width: 18px;
    height: 18px;
}

.texts-chat-header-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-gray);
    font-family: 'Inter', sans-serif;
}

.texts-chat-header-status {
    font-size: 0.85rem;
    font-family: 'Inter', sans-serif;
}

.texts-chat-header-status.accepted {
    color: #27ae60;
}

.texts-chat-header-status.denied {
    color: #e74c3c;
}

.texts-chat-header-status.pending {
    color: var(--maryland-gold);
}

.texts-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.texts-no-messages {
    text-align: center;
    color: var(--medium-gray);
    padding: 40px;
    font-family: 'Inter', sans-serif;
}

.texts-message {
    max-width: 70%;
    padding: 10px 14px;
    border-radius: 12px;
    word-wrap: break-word;
    font-family: 'Inter', sans-serif;
    animation: fadeIn 0.2s ease;
}

.texts-message-sent {
    align-self: flex-end;
    background: linear-gradient(135deg, rgba(226, 24, 51, 0.9), rgba(226, 24, 51, 0.7));
    color: white;
    border-bottom-right-radius: 4px;
}

.texts-message-received {
    align-self: flex-start;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    color: var(--dark-gray);
    border-bottom-left-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.texts-message-content {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 4px;
    word-wrap: break-word;
}

.texts-message-image {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    margin-bottom: 4px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.texts-message-image:hover {
    transform: scale(1.02);
}

.texts-message-time {
    font-size: 0.7rem;
    opacity: 0.7;
    text-align: right;
}

.texts-message-received .texts-message-time {
    text-align: left;
}

.texts-chat-input-area {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    align-items: flex-end;
    flex-wrap: wrap;
}

.texts-attach-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(226, 24, 51, 0.3);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
    backdrop-filter: blur(10px);
    color: var(--maryland-red);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.texts-attach-btn:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.12));
    border-color: rgba(226, 24, 51, 0.5);
    transform: scale(1.05);
}

.texts-image-preview-container {
    width: 100%;
    margin-bottom: 8px;
}

.texts-image-preview {
    position: relative;
    display: inline-block;
    max-width: 200px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid rgba(226, 24, 51, 0.3);
}

.texts-image-preview img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 200px;
    object-fit: cover;
}

.texts-image-preview-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    line-height: 1;
    transition: all 0.2s ease;
}

.texts-image-preview-remove:hover {
    background: rgba(231, 76, 60, 0.9);
    transform: scale(1.1);
}

.texts-message-input {
    flex: 1;
    padding: 10px 14px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    background: rgba(255, 255, 255, 0.3);
    color: var(--dark-gray);
    resize: none;
    max-height: 120px;
    transition: all 0.3s ease;
    min-width: 0;
}

.texts-message-input:focus {
    outline: none;
    border-color: var(--maryland-red);
    background: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 0 3px rgba(226, 24, 51, 0.1);
}

.texts-message-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.15);
}

.texts-attach-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.texts-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.texts-send-btn {
    padding: 10px 24px;
    background: linear-gradient(135deg, rgba(226, 24, 51, 0.9), rgba(226, 24, 51, 0.7));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 15px rgba(226, 24, 51, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    white-space: nowrap;
}

.texts-send-btn:hover {
    background: linear-gradient(135deg, rgba(226, 24, 51, 0.95), rgba(226, 24, 51, 0.8));
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(226, 24, 51, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.texts-send-btn:active {
    transform: translateY(0);
}

/* Tab Content */
.tab-content {
    width: 100%;
    animation: fadeIn 0.3s ease;
}

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

/* Study Spaces Grid */
.home-study-rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.home-study-room-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(25px);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.home-study-room-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
}

.home-study-room-card:hover {
    transform: translateY(-4px);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08));
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        inset 0 -1px 0 rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.study-room-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 18px;
    gap: 12px;
    text-align: left;
}

.study-room-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin: 0;
    font-family: 'Inter', sans-serif;
    flex: 1;
    text-align: left;
}

.study-room-type {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(255, 210, 0, 0.15);
    color: var(--maryland-gold);
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    border: 1px solid rgba(255, 210, 0, 0.3);
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
}

.study-room-info {
    flex: 1;
    margin-bottom: 16px;
    text-align: left;
}

.study-room-detail {
    font-size: 0.9rem;
    color: var(--dark-gray);
    margin-bottom: 8px;
    font-family: 'Inter', sans-serif;
    text-align: left;
}

.study-room-detail strong {
    color: var(--maryland-red);
    font-weight: 600;
}

.study-room-features {
    margin-top: 12px;
    margin-bottom: 12px;
    text-align: left;
}

.study-room-features strong {
    display: block;
    color: var(--maryland-red);
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
    text-align: left;
}

.study-room-features-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    text-align: left;
}

.study-room-feature-tag {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(226, 24, 51, 0.1);
    color: var(--maryland-red);
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(226, 24, 51, 0.2);
    font-family: 'Inter', sans-serif;
}

.study-room-description {
    font-size: 0.85rem;
    color: var(--medium-gray);
    line-height: 1.5;
    margin-top: 12px;
    font-family: 'Inter', sans-serif;
    text-align: left;
}

.study-room-actions {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    text-align: left;
}

.study-room-reserve-btn {
    display: inline-block;
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(226, 24, 51, 0.9), rgba(226, 24, 51, 0.7));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 
        0 4px 15px rgba(226, 24, 51, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.study-room-reserve-btn:hover {
    background: linear-gradient(135deg, rgba(226, 24, 51, 0.95), rgba(226, 24, 51, 0.8));
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(226, 24, 51, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.study-room-walkin-badge {
    display: inline-block;
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(255, 210, 0, 0.15), rgba(255, 210, 0, 0.1));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 210, 0, 0.3);
    color: var(--maryland-gold);
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    text-align: center;
    box-shadow: 
        0 4px 15px rgba(255, 210, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Editable Profile Styles */
.editable-profile .profile-edit-input {
    width: 100%;
    padding: 8px 12px;
    border: 2px solid var(--light-gray);
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    background: rgba(255, 255, 255, 0.5);
    color: var(--dark-gray);
    transition: all 0.3s ease;
    margin-bottom: 8px;
    box-sizing: border-box;
}

.editable-profile .profile-edit-input:focus {
    outline: none;
    border-color: var(--maryland-red);
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 0 0 3px rgba(226, 24, 51, 0.1);
}

.profile-edit-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23454545' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.editable-class-tag {
    position: relative;
    padding-right: 24px;
}

.class-tag-remove {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    color: var(--maryland-red);
    font-weight: 700;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.class-tag-remove:hover {
    opacity: 1;
}

.no-classes-text {
    color: var(--medium-gray);
    font-style: italic;
    font-size: 0.9rem;
}

.profile-edit-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.profile-edit-btn,
.profile-save-btn {
    flex: 1;
    padding: 10px 20px;
    border: none;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.profile-edit-btn {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--maryland-red);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.profile-edit-btn:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.12));
    transform: translateY(-2px);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.profile-save-btn {
    background: linear-gradient(135deg, rgba(226, 24, 51, 0.9), rgba(226, 24, 51, 0.7));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    box-shadow: 
        0 4px 15px rgba(226, 24, 51, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.profile-save-btn:hover {
    background: linear-gradient(135deg, rgba(226, 24, 51, 0.95), rgba(226, 24, 51, 0.8));
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(226, 24, 51, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Settings Modal */
.settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.settings-modal-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
    backdrop-filter: blur(30px);
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.settings-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px;
    border-bottom: 1px solid rgba(226, 24, 51, 0.1);
}

.settings-modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin: 0;
    font-family: 'Inter', sans-serif;
}

.settings-close-btn {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--maryland-red);
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.settings-close-btn:hover {
    background: rgba(226, 24, 51, 0.1);
    transform: scale(1.1);
}

.settings-modal-body {
    padding: 28px;
    color: var(--dark-gray);
    font-family: 'Inter', sans-serif;
}

/* Consent Section */
.consent-section {
    width: 100%;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(226, 24, 51, 0.1);
}

.consent-section-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--maryland-red);
    margin-bottom: 16px;
    font-family: 'Inter', sans-serif;
}

.consent-info {
    background: rgba(226, 24, 51, 0.03);
    border-radius: 12px;
    padding: 20px;
    border-left: 4px solid var(--maryland-red);
}

.consent-date {
    font-size: 0.95rem;
    color: var(--dark-gray);
    margin-bottom: 16px;
    font-family: 'Inter', sans-serif;
}

.consent-date span {
    font-weight: 600;
    color: var(--maryland-red);
}

.consent-statement {
    margin-top: 16px;
}

.consent-top {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(226, 24, 51, 0.12);
}

.consent-top .consent-subsection {
    margin-top: 14px;
    margin-bottom: 6px;
    font-size: 1rem;
}

.consent-top .consent-subsection:first-child {
    margin-top: 0;
}

.consent-statement p {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 12px;
    font-family: 'Inter', sans-serif;
}

.consent-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.consent-list li {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--dark-gray);
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
    font-family: 'Inter', sans-serif;
}

.consent-list li:before {
    content: "•";
    color: var(--maryland-red);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.consent-list li strong {
    color: var(--maryland-red);
    font-weight: 600;
}

.text-requests-section {
    width: 100%;
}

.text-requests-section-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--maryland-red);
    margin-bottom: 20px;
    font-family: 'Inter', sans-serif;
}

.text-requests-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 400px;
    overflow-y: auto;
}

.text-requests-loading,
.text-requests-empty,
.text-requests-error {
    text-align: center;
    padding: 20px;
    color: var(--medium-gray);
    font-family: 'Inter', sans-serif;
}

.text-request-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.text-request-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.text-request-item-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-gray);
    font-family: 'Inter', sans-serif;
}

.text-request-item-time {
    font-size: 0.8rem;
    color: var(--medium-gray);
    font-family: 'Inter', sans-serif;
}

.text-request-item-message {
    font-size: 0.9rem;
    color: var(--dark-gray);
    font-style: italic;
    margin-bottom: 12px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
}

.text-request-item-actions {
    display: flex;
    gap: 8px;
}

.text-request-accept-btn,
.text-request-deny-btn {
    flex: 1;
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.text-request-accept-btn {
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.9), rgba(39, 174, 96, 0.7));
    color: white;
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.3);
}

.text-request-accept-btn:hover {
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.95), rgba(39, 174, 96, 0.8));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.4);
}

.text-request-deny-btn {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.9), rgba(231, 76, 60, 0.7));
    color: white;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

.text-request-deny-btn:hover {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.95), rgba(231, 76, 60, 0.8));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
}

/* Settings Actions Section */
.settings-actions-section {
    width: 100%;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid rgba(226, 24, 51, 0.1);
}

.settings-actions-section-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--maryland-red);
    margin-bottom: 16px;
    font-family: 'Inter', sans-serif;
}

.settings-actions-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.settings-action-btn {
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
}

.settings-action-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.settings-logout-btn {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--maryland-red);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.settings-logout-btn:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.12));
    transform: translateY(-2px);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.settings-delete-btn {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.15), rgba(231, 76, 60, 0.08));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: #e74c3c;
    box-shadow: 
        0 2px 8px rgba(231, 76, 60, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.settings-delete-btn:hover {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.2), rgba(231, 76, 60, 0.12));
    transform: translateY(-2px);
    box-shadow: 
        0 4px 12px rgba(231, 76, 60, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Delete Account Modal */
.delete-account-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.delete-account-modal-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
    backdrop-filter: blur(30px);
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: slideUp 0.3s ease;
}

.delete-account-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px;
    border-bottom: 1px solid rgba(231, 76, 60, 0.2);
}

.delete-account-modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #e74c3c;
    margin: 0;
    font-family: 'Inter', sans-serif;
}

.delete-account-close-btn {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #e74c3c;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.delete-account-close-btn:hover {
    background: rgba(231, 76, 60, 0.1);
    transform: scale(1.1);
}

.delete-account-modal-body {
    padding: 28px;
    color: var(--dark-gray);
    font-family: 'Inter', sans-serif;
}

.delete-account-warning {
    margin-bottom: 24px;
    padding: 16px;
    background: rgba(231, 76, 60, 0.05);
    border-left: 4px solid #e74c3c;
    border-radius: 8px;
}

.delete-account-warning p {
    margin: 0 0 12px 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--dark-gray);
    font-weight: 600;
}

.delete-account-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.delete-account-list li {
    padding: 6px 0 6px 20px;
    position: relative;
    color: var(--dark-gray);
    font-size: 0.9rem;
}

.delete-account-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #e74c3c;
    font-weight: bold;
}

.delete-account-form {
    margin-top: 24px;
}

.delete-account-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 8px;
    font-family: 'Inter', sans-serif;
}

.delete-account-input {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--light-gray);
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    background: rgba(255, 255, 255, 0.7);
    color: var(--dark-gray);
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.delete-account-input:focus {
    outline: none;
    border-color: #e74c3c;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.delete-account-status {
    margin-top: 12px;
    min-height: 24px;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
}

.delete-account-modal-actions {
    display: flex;
    gap: 12px;
    padding: 20px 28px 28px 28px;
    border-top: 1px solid rgba(231, 76, 60, 0.1);
}

.delete-account-cancel-btn,
.delete-account-confirm-btn {
    flex: 1;
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.delete-account-cancel-btn {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--dark-gray);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.delete-account-cancel-btn:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.12));
    transform: translateY(-2px);
}

.delete-account-confirm-btn {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.9), rgba(231, 76, 60, 0.7));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    box-shadow: 
        0 4px 15px rgba(231, 76, 60, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.delete-account-confirm-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.95), rgba(231, 76, 60, 0.8));
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(231, 76, 60, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.delete-account-confirm-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Study Spaces Disclaimer Modal */
.study-spaces-disclaimer-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.study-spaces-disclaimer-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
    backdrop-filter: blur(30px);
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 85vh;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: slideUp 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.study-spaces-disclaimer-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
}

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

.study-spaces-disclaimer-header {
    padding: 28px 28px 20px 28px;
    border-bottom: 1px solid rgba(226, 24, 51, 0.1);
    text-align: center;
    flex-shrink: 0;
}

.study-spaces-disclaimer-header h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--maryland-red);
    margin: 0;
    font-family: 'Inter', sans-serif;
}

.study-spaces-disclaimer-body {
    padding: 28px;
    color: var(--dark-gray);
    font-family: 'Inter', sans-serif;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

.study-spaces-disclaimer-top {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(226, 24, 51, 0.12);
}

.study-spaces-disclaimer-top .study-spaces-disclaimer-section {
    margin-top: 16px;
    margin-bottom: 6px;
    font-size: 1rem;
}

.study-spaces-disclaimer-top .study-spaces-disclaimer-section:first-child {
    margin-top: 0;
}

.study-spaces-disclaimer-body p {
    margin-bottom: 16px;
}

.study-spaces-disclaimer-body p strong {
    color: var(--maryland-red);
    font-weight: 700;
}

.study-spaces-disclaimer-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.study-spaces-disclaimer-list li {
    padding: 12px 0 12px 28px;
    position: relative;
    color: var(--dark-gray);
    font-size: 0.95rem;
}

.study-spaces-disclaimer-list li::before {
    content: '⚠️';
    position: absolute;
    left: 0;
    top: 12px;
    font-size: 1.1rem;
}

.study-spaces-disclaimer-list li:not(:last-child) {
    border-bottom: 1px solid rgba(226, 24, 51, 0.1);
}

.study-spaces-disclaimer-note {
    margin-top: 20px;
    padding: 16px;
    background: rgba(226, 24, 51, 0.05);
    border-left: 4px solid var(--maryland-red);
    border-radius: 8px;
    font-weight: 500;
    color: var(--dark-gray);
}

.study-spaces-disclaimer-actions {
    padding: 20px 28px 28px 28px;
    border-top: 1px solid rgba(226, 24, 51, 0.1);
    display: flex;
    justify-content: center;
    flex-shrink: 0;
}

.study-spaces-accept-btn {
    padding: 14px 40px;
    background: linear-gradient(135deg, rgba(226, 24, 51, 0.9), rgba(226, 24, 51, 0.7));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 
        0 4px 15px rgba(226, 24, 51, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.study-spaces-accept-btn:hover {
    background: linear-gradient(135deg, rgba(226, 24, 51, 0.95), rgba(226, 24, 51, 0.8));
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(226, 24, 51, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.study-spaces-accept-btn:active {
    transform: translateY(0);
}

/* Text Request Modal */
.text-request-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.text-request-modal-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
    backdrop-filter: blur(30px);
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: slideUp 0.3s ease;
}

.text-request-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px;
    border-bottom: 1px solid rgba(226, 24, 51, 0.1);
}

.text-request-modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--maryland-red);
    margin: 0;
    font-family: 'Inter', sans-serif;
}

.text-request-close-btn {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--maryland-red);
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.text-request-close-btn:hover {
    background: rgba(226, 24, 51, 0.1);
    transform: scale(1.1);
}

.text-request-modal-body {
    padding: 28px;
    color: var(--dark-gray);
    font-family: 'Inter', sans-serif;
}

.text-request-info {
    margin-bottom: 20px;
    padding: 12px;
    background: rgba(226, 24, 51, 0.05);
    border-left: 4px solid var(--maryland-red);
    border-radius: 8px;
}

.text-request-info p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--dark-gray);
}

.text-request-form {
    margin-bottom: 20px;
}

.text-request-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 8px;
    font-family: 'Inter', sans-serif;
}

.text-request-textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--light-gray);
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    background: rgba(255, 255, 255, 0.7);
    color: var(--dark-gray);
    resize: vertical;
    min-height: 100px;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.text-request-textarea:focus {
    outline: none;
    border-color: var(--maryland-red);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 0 3px rgba(226, 24, 51, 0.1);
}

.text-request-char-count {
    margin-top: 6px;
    font-size: 0.8rem;
    color: var(--medium-gray);
    text-align: right;
    font-family: 'Inter', sans-serif;
}

.text-request-status {
    margin-bottom: 16px;
    min-height: 24px;
}

.text-request-info-message,
.text-request-success,
.text-request-error {
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
}

.text-request-info-message {
    background: rgba(226, 24, 51, 0.1);
    color: var(--maryland-red);
    border-left: 3px solid var(--maryland-red);
}

.text-request-success {
    background: rgba(39, 174, 96, 0.1);
    color: #27ae60;
    border-left: 3px solid #27ae60;
}

.text-request-error {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border-left: 3px solid #e74c3c;
}

.text-request-modal-actions {
    display: flex;
    gap: 12px;
    padding: 20px 28px 28px 28px;
    border-top: 1px solid rgba(226, 24, 51, 0.1);
}

.text-request-cancel-btn,
.text-request-send-btn {
    flex: 1;
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.text-request-cancel-btn {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--maryland-red);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.text-request-cancel-btn:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.12));
    transform: translateY(-2px);
}

.text-request-send-btn {
    background: linear-gradient(135deg, rgba(226, 24, 51, 0.9), rgba(226, 24, 51, 0.7));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    box-shadow: 
        0 4px 15px rgba(226, 24, 51, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.text-request-send-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, rgba(226, 24, 51, 0.95), rgba(226, 24, 51, 0.8));
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(226, 24, 51, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.text-request-send-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Studied With Modal */
.studied-with-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.studied-with-modal-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
    backdrop-filter: blur(30px);
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: slideUp 0.3s ease;
}

.studied-with-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px;
    border-bottom: 1px solid rgba(226, 24, 51, 0.1);
}

.studied-with-modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--maryland-red);
    margin: 0;
    font-family: 'Inter', sans-serif;
}

.studied-with-close-btn {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--maryland-red);
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.studied-with-close-btn:hover {
    background: rgba(226, 24, 51, 0.1);
    transform: scale(1.1);
}

.studied-with-modal-body {
    padding: 28px;
    color: var(--dark-gray);
    font-family: 'Inter', sans-serif;
}

.studied-with-info {
    margin-bottom: 24px;
    padding: 12px;
    background: rgba(255, 210, 0, 0.05);
    border-left: 4px solid var(--maryland-gold);
    border-radius: 8px;
}

.studied-with-info p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--dark-gray);
}

.studied-with-rating-section {
    margin-bottom: 24px;
}

.studied-with-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 12px;
    font-family: 'Inter', sans-serif;
}

.studied-with-stars {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    justify-content: center;
}

.studied-with-star {
    font-size: 2.5rem;
    color: var(--light-gray);
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
}

.studied-with-star:hover,
.studied-with-star.active {
    color: var(--maryland-gold);
    transform: scale(1.1);
}

.studied-with-rating-value {
    text-align: center;
    font-size: 0.9rem;
    color: var(--medium-gray);
    font-family: 'Inter', sans-serif;
    min-height: 20px;
}

.studied-with-review-section {
    margin-bottom: 20px;
}

.studied-with-textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--light-gray);
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    background: rgba(255, 255, 255, 0.7);
    color: var(--dark-gray);
    resize: vertical;
    min-height: 80px;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.studied-with-textarea:focus {
    outline: none;
    border-color: var(--maryland-red);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 0 3px rgba(226, 24, 51, 0.1);
}

.studied-with-char-count {
    margin-top: 6px;
    font-size: 0.8rem;
    color: var(--medium-gray);
    text-align: right;
    font-family: 'Inter', sans-serif;
}

.studied-with-status {
    margin-bottom: 16px;
    min-height: 24px;
}

.studied-with-modal-actions {
    display: flex;
    gap: 12px;
    padding: 20px 28px 28px 28px;
    border-top: 1px solid rgba(226, 24, 51, 0.1);
}

.studied-with-cancel-btn,
.studied-with-submit-btn {
    flex: 1;
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.studied-with-cancel-btn {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--maryland-red);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.studied-with-cancel-btn:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.12));
    transform: translateY(-2px);
}

.studied-with-submit-btn {
    background: linear-gradient(135deg, rgba(255, 210, 0, 0.9), rgba(255, 210, 0, 0.7));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--dark-gray);
    box-shadow: 
        0 4px 15px rgba(255, 210, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.studied-with-submit-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, rgba(255, 210, 0, 0.95), rgba(255, 210, 0, 0.8));
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(255, 210, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.studied-with-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Responsive */
@media (max-width: 768px) {
    .home-top-bar {
        padding: 0 20px;
    }
    
    .home-top-bar-brand {
        left: 20px;
    }
    
    .home-nav-tabs {
        left: auto;
        right: 60px;
        transform: translateY(-50%);
        padding: 3px;
    }
    
    .home-settings-btn {
        right: 20px;
    }
    
    .home-nav-tab {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .home-container {
        padding: 90px 16px 30px 16px;
        gap: 30px;
    }
    
    .home-users-grid {
        grid-template-columns: 1fr;
    }
    
    .home-study-rooms-grid {
        grid-template-columns: 1fr;
    }
    
    .home-profile-card {
        padding: 24px;
    }
    
    .study-room-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .study-room-type {
        align-self: flex-start;
    }
    
    .profile-edit-actions {
        flex-direction: column;
    }
    
    .texts-container {
        height: calc(100vh - 160px);
        min-height: 500px;
        flex-direction: column;
    }
    
    .texts-sidebar {
        width: 100%;
        height: 40%;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .texts-chat-area {
        height: 60%;
    }
}

@media (max-width: 480px) {
    .home-top-bar {
        padding: 0 16px;
    }
    
    .home-top-bar-brand {
        left: 16px;
    }
    
    .home-top-bar-text {
        font-size: 1.2rem;
    }
    
    .home-nav-tabs {
        right: 50px;
        gap: 0;
    }
    
    .home-settings-btn {
        right: 16px;
    }
    
    .home-nav-tab {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .home-section-title {
        font-size: 1.5rem;
    }
    
    .study-spaces-disclaimer-content {
        max-width: 95%;
        margin: 10px;
    }
    
    .study-spaces-disclaimer-header h3 {
        font-size: 1.5rem;
    }
    
    .study-spaces-disclaimer-body {
        padding: 20px;
    }
    
    .study-spaces-disclaimer-list li {
        font-size: 0.9rem;
        padding: 10px 0 10px 24px;
    }
    
    .study-spaces-disclaimer-actions {
        padding: 16px 20px 20px 20px;
    }
    
    .study-spaces-accept-btn {
        width: 100%;
        padding: 12px 30px;
    }
    
    .texts-container {
        height: calc(100vh - 140px);
        min-height: 400px;
        margin: 10px;
    }
    
    .texts-sidebar-header h3 {
        font-size: 1.1rem;
    }
    
    .texts-conversation-item {
        padding: 10px;
    }
    
    .texts-message {
        max-width: 85%;
    }
    
    .texts-chat-input-area {
        padding: 12px;
    }
}