:root {
    --primary: #4361ee;
    --secondary: #3f37c9;
    --accent: #f72585;
    --dark: #1e1e2c;
    --light: #f8f9fa;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: var(--dark);
    line-height: 1.6;
}

/* Navigation Styles */
.nav-link {
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    color: #4b5563;
    --position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-block;
}

.nav-link:hover {
    color: var(--primary);
    transform: translateY(-1px);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.nav-link:hover::after {
    width: 85%;
}

.nav-link.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
}

.nav-link.active::after {
    width: 85%;
    background-color: white;
}

/* Hero Section Improvements */
#home {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

#home .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

#home .flex {
    display: flex;
    align-items: center;
    gap: 4rem;
}

@media (max-width: 768px) {
    #home .flex {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    #home {
        padding: 100px 0 60px;
    }
}

/* Text Content Styling */
.hero-text {
    flex: 1;
    max-width: 600px;
}

.hero-text h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text .text-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text p {
    font-size: 1.25rem;
    color: #6b7280;
    margin-bottom: 2rem;
    font-weight: 400;
    line-height: 1.7;
}

/* Profile Image Container */
.hero-image {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.profile-container {
    position: relative;
    width: 320px;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .profile-container {
        width: 280px;
        height: 280px;
    }
}

.profile-container::before {
    content: '';
    position: absolute;
    inset: -20px;
    background: linear-gradient(45deg, var(--primary), var(--secondary), var(--accent));
    border-radius: 50%;
    opacity: 0.1;
    animation: rotate 20s linear infinite;
}

.profile-container img {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid white;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

@media (max-width: 768px) {
    .profile-container img {
        width: 240px;
        height: 240px;
    }
}

.profile-container:hover img {
    transform: scale(1.05);
}

/* Badge Overlay Improvements */
.badge-overlay {
    position: absolute;
    top: 20px;
    right: -10px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 
        0 8px 25px rgba(67, 97, 238, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    z-index: 3;
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { 
        box-shadow: 0 8px 25px rgba(67, 97, 238, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
    }
    50% { 
        box-shadow: 0 12px 35px rgba(67, 97, 238, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.2);
    }
}

/* Skill Badges */
.skill-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 2.5rem;
    justify-content: flex-start;
}

@media (max-width: 768px) {
    .skill-badges {
        justify-content: center;
    }
    #about .flex {
        flex-direction: column;
        text-align: center;
    }
    #projects .grid {
        grid-template-columns: 1fr;
    }
}

.skill-badge {
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.skill-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    background: white;
}

/* Button Improvements */
.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .hero-buttons {
        justify-content: center;
    }
}

.btn {
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.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.5s;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 8px 25px rgba(67, 97, 238, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(67, 97, 238, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(67, 97, 238, 0.3);
}

/* Background Animations */
.hero-pattern {
    background: 
        radial-gradient(circle at 20% 50%, rgba(67, 97, 238, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(63, 55, 201, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(247, 37, 133, 0.1) 0%, transparent 50%);
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes floating {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-10px) rotate(1deg); }
    66% { transform: translateY(5px) rotate(-1deg); }
}

.floating {
    animation: floating 6s ease-in-out infinite;
}

/* Blob animations */
@keyframes blob {
    0%, 100% {
        transform: translate(0px, 0px) scale(1);
    }
    33% {
        transform: translate(30px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.animate-blob {
    animation: blob 7s infinite;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

/* Section Title */
.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    color: var(--dark);
}

.section-title::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* Card Improvements */
.card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-15px);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.6);
}

.card .p-6 {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
}

.card .p-6 .btn-gemini {
    margin-top: auto;
}

/* Gemini Button */
.btn-gemini {
    background: linear-gradient(135deg, #9333ea, #4f46e5);
    color: white;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    box-shadow: 0 8px 25px rgba(147, 51, 234, 0.3);
    border: none;
    cursor: pointer;
}

.btn-gemini:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(147, 51, 234, 0.4);
}

/* Loading Spinner */
.loading-spinner {
    border: 2px solid rgba(243, 243, 243, 0.3);
    border-top: 2px solid #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Generated Content */
.generated-content {
    margin-top: 1rem;
    padding: 1.25rem;
    border-radius: 16px;
    font-size: 0.95rem;
    line-height: 1.6;
    background: rgba(245, 243, 255, 0.8);
    border: 1px solid rgba(192, 179, 255, 0.3);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Fade-in Animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

/* Glass Panel */
.glass-panel {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Social Icons */
.social-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--primary);
    text-decoration: none;
}

.social-icon:hover {
    transform: translateY(-5px);
    background: var(--primary);
    color: white;
    box-shadow: 0 8px 25px rgba(67, 97, 238, 0.3);
}

/* Form Inputs */
.form-input {
    width: 100%;
    padding: 14px 18px;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    outline: none;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
    background: white;
}

/* Timeline */
.timeline-item {
    position: relative;
    padding-left: 40px;
    margin-bottom: 2.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    border: 4px solid white;
    box-shadow: 0 0 0 3px var(--primary);
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: 8px;
    top: 26px;
    width: 2px;
    height: calc(100% + 1.5rem);
    background: linear-gradient(180deg, var(--primary), var(--secondary));
}

.timeline-item:last-child::after {
    display: none;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--primary);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40%, 43% {
        transform: translateX(-50%) translateY(-10px);
    }
    70% {
        transform: translateX(-50%) translateY(-5px);
    }
    90% {
        transform: translateX(-50%) translateY(-2px);
    }
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .skill-badges {
        justify-content: center;
    }
}

/* Update About Section */
#about {
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: 
        radial-gradient(circle at 20% 50%, rgba(67, 97, 238, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(63, 55, 201, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(247, 37, 133, 0.1) 0%, transparent 50%);
    position: relative;
    overflow: hidden;
}

#about .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Enhance Skill Cards */
#about .skill-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    padding: 16px 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

#about .skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(67, 97, 238, 0.3);
}

/* Improve Typography */
#about .text-content h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    background: linear-gradient(135deg, var(--dark), var(--primary));
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
    margin-bottom: 1rem;
}

#about .text-content p {
    font-size: 1.1rem;
    color: #6b7280;
    line-height: 1.7;
}

/* Add Floating Animation to Image */
#about .about-image {
    position: relative;
    animation: floating 6s ease-in-out infinite;
}

#about .about-image::before {
    content: '';
    position: absolute;
    inset: -20px;
    background: linear-gradient(45deg, var(--primary), var(--secondary), var(--accent));
    border-radius: 50%;
    opacity: 0.1;
    animation: rotate 20s linear infinite;
}


/* Update Projects Section */
#projects {
    min-height: 80vh;
    background: 
        radial-gradient(circle at 20% 50%, rgba(67, 97, 238, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(63, 55, 201, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(247, 37, 133, 0.1) 0%, transparent 50%);
    position: relative;
    overflow: hidden;
}

#projects .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Enhance Project Cards */
#projects .card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

#projects .card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(67, 97, 238, 0.3);
}

#projects .card::before {
    content: '';
    position: absolute;
    inset: -10px;
    background: linear-gradient(45deg, var(--primary), var(--secondary), var(--accent));
    opacity: 0.05;
    border-radius: 20px;
    transition: opacity 0.3s ease;
}

#projects .card:hover::before {
    opacity: 0.15;
}

/* Enhance Button Styling */
#projects .btn-gemini {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(67, 97, 238, 0.3);
}

#projects .btn-gemini::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.5s;
}

#projects .btn-gemini:hover::before {
    left: 100%;
}

#projects .btn-gemini:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(67, 97, 238, 0.4);
}

/* Project Tags */
#projects .project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1rem;
}

#projects .project-tags span {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

#projects .project-tags span:hover {
    transform: translateY(-2px);
    background: white;
    box-shadow: 0 8px 25px rgba(67, 97, 238, 0.2);
}

/* Add to style.css */
.card .bot-profile {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Collaborator Section */
.collaborator-profile-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.collaborator-profile-img:hover {
    transform: scale(1.05);
}


/* Code & Password Generator Section */
#code-generator {
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: 
        radial-gradient(circle at 20% 50%, rgba(67, 97, 238, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(63, 55, 201, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(247, 37, 133, 0.1) 0%, transparent 50%);
    position: relative;
    overflow: hidden;
}

#code-generator .card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 0; /* Allow card to shrink on mobile */
    overflow-y: auto; /* Enable scrolling if content overflows */
}

#code-generator .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(67, 97, 238, 0.3);
}

#code-generator .form-input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    outline: none;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

#code-generator .form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
    background: white;
}

#code-generator #qr-output img,
#code-generator #barcode-output {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Password Generator Specific Styles */
#code-generator .password-display-container {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 48px; /* Ensure minimum height for mobile */
}

#code-generator .password-display-container .form-input {
    padding-right: 40px; /* Space for copy button */
    font-size: 0.9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 40px; /* Ensure visibility on mobile */
    display: flex;
    align-items: center;
    justify-content: center;
}

#code-generator .slider {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    outline: none;
    transition: background 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
}

#code-generator .slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(67, 97, 238, 0.2);
}

#code-generator .slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(67, 97, 238, 0.2);
}

#code-generator .option {
    font-size: 0.85rem;
    color: #4b5563;
}

#code-generator .option input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    border-radius: 4px;
}

#code-generator .btn svg {
    width: 16px;
    height: 16px;
}

/* Copy button with border */
#code-generator .password-display-container .btn.border-copy-btn {
    width: 36px;
    height: 36px;
    min-height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 2px solid var(--primary); /* Border for visibility */
}

/* Toast message for copy feedback */
#copy-toast {
    background: var(--primary);
    z-index: 1000;
    opacity: 0;
}

#copy-toast.show {
    opacity: 1;
}

#copy-toast.error {
    background: #ef4444; /* Red for errors */
}

/* Ensure buttons are touch-friendly across all cards */
#code-generator .btn {
    min-height: 44px;
    touch-action: manipulation;
    position: relative;
    z-index: 10;
}

#code-generator .btn:active {
    transform: scale(0.98);
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.2);
}

#code-generator .btn-primary:active {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
}

#code-generator .btn-secondary:active {
    background: var(--primary);
    color: white;
    border-color: transparent;
}

#code-generator .btn:not(.hidden) {
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    #code-generator .grid {
        grid-template-columns: 1fr 1fr; /* Two columns on medium screens */
    }
}

@media (max-width: 640px) {
    #code-generator .grid {
        grid-template-columns: 1fr; /* One column on mobile */
    }

    #code-generator .card {
        padding: 1rem;
        max-height: none; /* Remove fixed height constraint */
    }

    #code-generator .form-input {
        padding: 10px 14px;
        font-size: 0.9rem;
    }

    #code-generator .password-display-container {
        min-height: 40px; /* Adjusted for mobile */
    }

    #code-generator .password-display-container .form-input {
        font-size: 0.85rem;
        padding-right: 36px; /* Adjusted for smaller screen */
        min-height: 36px;
    }

    #code-generator .password-display-container .btn.border-copy-btn {
        width: 32px;
        height: 32px;
        min-height: 32px;
        border-width: 1.5px; /* Thinner border on mobile */
        right: 1px; /* Adjust positioning on mobile */
    }

    #code-generator .btn {
        min-height: 44px;
        font-size: 0.9rem;
    }

    #code-generator .option {
        font-size: 0.8rem;
    }

    #code-generator .slider::-webkit-slider-thumb,
    #code-generator .slider::-moz-range-thumb {
        width: 18px;
        height: 18px;
    }

    #copy-toast {
        width: 90%;
        max-width: 300px;
        font-size: 0.8rem;
        padding: 8px 12px;
    }
}