/* CSS Reset and Base Styles */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Prevent horizontal overflow */
* {
    max-width: 100%;
    word-wrap: break-word;
}

img,
video,
iframe {
    max-width: 100%;
    height: auto;
}

/* CSS Custom Properties */
:root {
    /* Colors */
    --primary-color: #00ff41;
    --primary-dark: #00cc33;
    --primary-glow: #00ff4180;
    --secondary-color: #333333;
    --accent-color: #00ff88;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-light: #999999;
    --text-dark: #000000;
    --bg-primary: #000000;
    --bg-secondary: #111111;
    --bg-tertiary: #1a1a1a;
    --bg-card: #222222;
    --border-color: #333333;
    --border-neon: #00ff41;
    --shadow-sm: 0 1px 2px 0 rgb(0 255 65 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 255 65 / 0.2), 0 2px 4px -2px rgb(0 255 65 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 255 65 / 0.3), 0 4px 6px -4px rgb(0 255 65 / 0.2);
    --shadow-neon: 0 0 20px rgba(0, 255, 65, 0.5);

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;

    /* Spacing */
    --container-max-width: 1200px;
    --section-padding: 5rem 0;
    --border-radius: 0.5rem;
    --transition: all 0.3s ease;
}

/* Base Styles */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    background-image:
        radial-gradient(circle at 20% 80%, rgba(0, 255, 65, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 255, 65, 0.05) 0%, transparent 50%);
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
    box-sizing: border-box;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.2;
    font-weight: 600;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-neon);
    box-shadow: var(--shadow-md);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4rem;
}

.nav-logo h2 {
    color: var(--primary-color);
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-glow);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
    transition: var(--transition);
}

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

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: var(--transition);
    box-shadow: 0 0 5px var(--primary-color);
}

/* Hero Section */
.hero {
    padding: 8rem 1rem 5rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--bg-primary);
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(0, 255, 65, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 255, 65, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    max-width: var(--container-max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

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

.cta-button {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
}

.cta-button.primary {
    background: var(--primary-color);
    color: var(--text-dark);
    font-weight: 700;
    box-shadow: var(--shadow-neon);
}

.cta-button.primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.7);
}

.cta-button.secondary {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
}

.cta-button.secondary:hover {
    background: var(--primary-color);
    color: var(--text-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-neon);
}

/* Code Preview */
.code-preview {
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-neon);
    border: 1px solid var(--border-neon);
}

.code-header {
    background: var(--bg-tertiary);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--border-neon);
}

.code-dots {
    display: flex;
    gap: 0.5rem;
}

.code-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #64748b;
}

.code-dots span:nth-child(1) {
    background: #ff0000;
}

.code-dots span:nth-child(2) {
    background: #ffaa00;
}

.code-dots span:nth-child(3) {
    background: var(--primary-color);
}

.code-title {
    color: var(--primary-color);
    font-family: var(--font-mono);
    font-size: 0.875rem;
}

.code-content {
    padding: 1.5rem;
    background: var(--bg-primary);
}

.code-content pre {
    color: var(--primary-color);
    font-family: var(--font-mono);
    font-size: 0.875rem;
    line-height: 1.6;
    overflow-x: auto;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

/* Sections */
section {
    padding: var(--section-padding);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

/* Portfolio Section */
.portfolio {
    background: var(--bg-secondary);
}

.portfolio-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    background: transparent;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-color);
    color: var(--text-dark);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-neon);
    font-weight: 700;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    width: 100%;
}

.portfolio-item {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-neon);
    border-color: var(--border-neon);
}

.portfolio-image {
    position: relative;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    color: var(--primary-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h4 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.portfolio-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.portfolio-link {
    padding: 0.5rem 1rem;
    background: rgba(0, 255, 65, 0.2);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: 1px solid var(--primary-color);
}

.portfolio-link:hover {
    background: var(--primary-color);
    color: var(--text-dark);
    box-shadow: 0 0 15px var(--primary-color);
}

.portfolio-info {
    padding: 1.5rem;
}

.portfolio-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.portfolio-info h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
}

.status-badge.in-progress {
    background: rgba(251, 146, 60, 0.2);
    color: #fb923c;
    border: 1px solid rgba(251, 146, 60, 0.5);
}

.status-badge.maintenance {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.5);
}

.portfolio-tech {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.tech-tag {
    padding: 0.25rem 0.75rem;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
}

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

.service-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-neon);
    border-color: var(--border-neon);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px var(--primary-color));
}

.service-card h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.service-features {
    list-style: none;
    margin-top: 1.5rem;
}

.service-features li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.service-features li:last-child {
    border-bottom: none;
}

.service-features li::before {
    content: '✓';
    color: var(--primary-color);
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Game Modding Section */
.game-modding {
    background: var(--bg-secondary);
}

.game-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.game-services {
    margin: 2rem 0;
}

.game-service {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.game-service h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.game-showcase {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.featured-mod {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-neon);
    margin-top: 1rem;
}

.featured-mod h5 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

.mod-features {
    margin: 1.5rem 0;
}

.mod-features h6 {
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.mod-features ul {
    list-style: none;
    padding-left: 0;
}

.mod-features li {
    padding: 0.25rem 0;
    color: var(--text-secondary);
}

.mod-features li::before {
    content: '▶';
    color: var(--primary-color);
    font-weight: bold;
    margin-right: 0.5rem;
}

.mod-tech {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 1rem 0;
}

.mod-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-skills {
    margin-top: 2rem;
}

.skill-category {
    margin-bottom: 1.5rem;
}

.skill-category h4 {
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill {
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: var(--text-dark);
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
}

.about-placeholder {
    aspect-ratio: 1;
    background: var(--bg-secondary);
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

/* Testimonials Section */
.testimonials {
    background: var(--bg-primary);
    padding: var(--section-padding);
}

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

.testimonials-grid {
    margin-bottom: 4rem;
}

.testimonial-placeholder {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    border: 2px dashed var(--border-neon);
    box-shadow: var(--shadow-md);
}

.placeholder-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px var(--primary-color));
}

.testimonial-placeholder h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.testimonial-placeholder p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Review Submission Form */
.review-submission {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.review-submission h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.review-submission>p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-style: italic;
}

.review-form {
    max-width: 600px;
}

/* Star Rating */
.star-rating {
    display: flex;
    gap: 0.25rem;
    margin: 0.5rem 0;
}

.star {
    font-size: 2rem;
    color: var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.star:hover,
.star.active {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

/* Checkbox Styling */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-label input[type="checkbox"]:checked+.checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-dark);
}

.checkbox-label input[type="checkbox"]:checked+.checkmark::after {
    content: '✓';
    font-weight: bold;
}

/* Review Form Note */
.review-note {
    margin-top: 2rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.review-note p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Contact Section */
.contact {
    background: var(--bg-secondary);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

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

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.contact-icon {
    font-size: 1.5rem;
}

.contact-details h4 {
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.contact-details p {
    margin: 0;
    font-size: 0.875rem;
}

/* Form Styles */
.contact-form {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--bg-primary);
    color: var(--text-primary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 255, 65, 0.2);
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: var(--text-dark);
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-neon);
}

.submit-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.7);
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
}

.footer-section p {
    color: #94a3b8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #94a3b8;
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 1rem;
    text-align: center;
    color: #94a3b8;
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --section-padding: 3rem 0;
    }

    /* Prevent horizontal overflow */
    body,
    html {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }

    .hero {
        flex-direction: column;
        align-items: center;
    }

    .container {
        width: 100%;
        max-width: 100%;
        padding: 0 1rem;
        box-sizing: border-box;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 4rem;
        flex-direction: column;
        background: rgba(0, 0, 0, 0.95);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        width: 100%;
        gap: 2rem;
        display: block;
        margin-bottom: 2rem;
    }

    .hero-image {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }

    .code-preview {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .hero-buttons {
        justify-content: center;
        width: 100%;
    }

    .about-content,
    .contact-content,
    .game-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        width: 100%;
    }

    .code-content pre {
        font-size: 0.75rem;
        overflow-x: auto;
        word-wrap: break-word;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        width: 100%;
        gap: 1.5rem;
    }

    .portfolio-item {
        width: 100%;
        max-width: 100%;
        margin: 0;
        box-sizing: border-box;
    }

    .portfolio-filter {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .filter-btn {
        width: 100%;
        max-width: 200px;
        text-align: center;
    }

    .services-grid {
        grid-template-columns: 1fr;
        width: 100%;
    }

    /* Ensure all cards fit properly */
    .portfolio-card,
    .service-card {
        width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
        width: 100%;
        overflow-x: hidden;
    }

    .hero {
        padding: 6rem 0.5rem 3rem;
        width: 100%;
        flex-direction: column;
        align-items: center;
    }

    .hero-content {
        width: 100%;
        display: block;
        margin-bottom: 2rem;
    }

    .hero-image {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .cta-button {
        text-align: center;
        width: 100%;
        box-sizing: border-box;
    }

    /* Ensure all sections fit properly */
    section {
        width: 100%;
        overflow-x: hidden;
    }

    /* Fix any potentially wide elements */
    .navbar,
    .nav-container {
        width: 100%;
        max-width: 100vw;
    }

    /* Ensure grids don't overflow */
    .portfolio-grid,
    .services-grid,
    .testimonials-grid {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .portfolio-item,
    .portfolio-card,
    .service-card,
    .testimonial-card {
        width: 100%;
        margin-bottom: 1rem;
        box-sizing: border-box;
        max-width: 100%;
    }

    /* Portfolio specific mobile fixes */
    .portfolio-image img {
        width: 100%;
        height: 200px;
        object-fit: cover;
    }

    .portfolio-info {
        padding: 1rem;
    }

    .portfolio-tech {
        gap: 0.25rem;
    }

    .tech-tag {
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
    }
}

/* Extra small mobile devices */
@media (max-width: 360px) {
    .container {
        padding: 0 0.25rem;
    }

    .portfolio-grid {
        gap: 0.75rem;
    }

    .portfolio-item {
        border-radius: 8px;
    }

    .portfolio-image img {
        height: 180px;
    }

    .portfolio-info {
        padding: 0.75rem;
    }

    .portfolio-info h4 {
        font-size: 1rem;
    }

    .filter-btn {
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

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

/* Recent Reviews Styles */
.recent-reviews-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.recent-reviews-intro p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.testimonial-card.highlight {
    background: linear-gradient(135deg, rgba(0, 255, 127, 0.1), rgba(0, 255, 127, 0.05));
    border: 2px solid rgba(0, 255, 127, 0.3);
}

.testimonial-card.pending {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pending-stars {
    color: #666;
}

.testimonial-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.review-link {
    display: inline-block;
    background: rgba(0, 255, 127, 0.1);
    color: var(--neon-green);
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 255, 127, 0.3);
}

.review-link:hover {
    background: rgba(0, 255, 127, 0.2);
    transform: translateY(-2px);
}

.view-all-reviews {
    margin-top: 4rem;
    text-align: center;
}

.view-all-reviews h3 {
    color: var(--neon-green);
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.review-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.project-review-link {
    display: block;
    background: rgba(0, 255, 127, 0.05);
    border: 1px solid rgba(0, 255, 127, 0.2);
    border-radius: 15px;
    padding: 2rem;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.project-review-link:hover {
    background: rgba(0, 255, 127, 0.1);
    border-color: rgba(0, 255, 127, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 255, 127, 0.2);
}

.project-review-link h4 {
    color: var(--neon-green);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.project-review-link p {
    color: var(--text-light);
    margin-bottom: 0;
}

.link-arrow {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: var(--neon-green);
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.project-review-link:hover .link-arrow {
    transform: translateX(5px);
}

/* Portfolio secondary link styles */
.portfolio-link.secondary {
    background: rgba(0, 255, 127, 0.1);
    color: var(--neon-green);
    border: 1px solid rgba(0, 255, 127, 0.3);
}

.portfolio-link.secondary:hover {
    background: rgba(0, 255, 127, 0.2);
    color: var(--neon-green);
}

/* Testimonials Page Styles */
.testimonials-page {
    padding: 8rem 0 4rem;
    background: var(--background);
    min-height: 100vh;
}

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

.testimonials-header h1 {
    color: var(--neon-green);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px var(--neon-green);
}

.project-description {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.project-link {
    display: inline-block;
    background: linear-gradient(135deg, var(--neon-green), #00cc66);
    color: var(--background);
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 255, 127, 0.3);
}

.project-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 30px rgba(0, 255, 127, 0.5);
}

.project-link.disabled {
    background: #333;
    color: #666;
    cursor: not-allowed;
    box-shadow: none;
}

.project-link.disabled:hover {
    transform: none;
    box-shadow: none;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.submit-review-section {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(0, 255, 127, 0.05);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 255, 127, 0.2);
}

.submit-review-section h3 {
    color: var(--neon-green);
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.submit-review-section p {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* Print Styles */
@media print {

    .navbar,
    .contact-form,
    .footer {
        display: none;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
    }

    .hero,
    section {
        padding: 1rem 0;
    }

    .cta-button {
        display: none;
    }
}

/* ============================================
   CUSTOMER PORTAL STYLES
   ============================================ */

/* Navigation CTA Button */
.nav-item-cta {
    margin-left: 1rem;
}

.nav-cta {
    background: var(--primary-color);
    color: var(--bg-primary) !important;
    padding: 0.5rem 1.5rem !important;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-cta:hover {
    background: var(--primary-dark);
    box-shadow: var(--shadow-neon);
    transform: translateY(-2px);
}

/* Login Section */
.login-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 0;
    background: var(--bg-primary);
}

.login-section .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-container {
    width: 100%;
    max-width: 450px;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h1 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.login-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.login-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}

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

.login-form label {
    display: block;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.login-form input[type="email"],
.login-form input[type="password"] {
    width: 100%;
    padding: 0.875rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.login-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

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

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

.checkbox-label input[type="checkbox"] {
    margin-right: 0.5rem;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

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

.btn-full {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
}

.error-message,
.success-message {
    margin-top: 1rem;
    padding: 0.875rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

.error-message {
    background: rgba(255, 50, 50, 0.1);
    border: 1px solid rgba(255, 50, 50, 0.3);
    color: #ff5050;
}

.success-message {
    background: rgba(0, 255, 65, 0.1);
    border: 1px solid var(--primary-glow);
    color: var(--primary-color);
}

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

.login-footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.login-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.login-footer a:hover {
    color: var(--primary-dark);
}

.demo-credentials {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-align: center;
}

.demo-credentials h3 {
    color: var(--primary-color);
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.demo-credentials p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0.25rem 0;
}

.contact-section {
    padding: 3rem 0;
    background: var(--bg-secondary);
    text-align: center;
}

/* Dashboard Styles */
.dashboard-header {
    background: var(--bg-secondary);
    padding: 3rem 0;
    border-bottom: 1px solid var(--border-color);
}

.welcome-section h1 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.welcome-section p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.dashboard-overview {
    padding: 3rem 0;
    background: var(--bg-primary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-neon);
    transform: translateY(-2px);
}

.stat-icon {
    font-size: 2.5rem;
}

.stat-content h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.stat-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.dashboard-projects,
.dashboard-messages,
.dashboard-account {
    padding: 3rem 0;
    background: var(--bg-secondary);
}

.dashboard-projects .section-header,
.dashboard-messages .section-header,
.dashboard-account .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.projects-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.project-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-neon);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.project-header h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    flex: 1;
}

.status-select {
    padding: 0.5rem;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 150px;
}

.status-select:hover,
.status-select:focus {
    border-color: var(--primary-color);
    outline: none;
}

.status-select option {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-in-progress {
    background: rgba(0, 123, 255, 0.2);
    color: #0088ff;
}

.status-completed {
    background: rgba(0, 255, 65, 0.2);
    color: var(--primary-color);
}

.status-pending {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

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

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

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.progress-bar {
    height: 8px;
    background: var(--bg-secondary);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary-color);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.project-deadline {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.messages-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.message-card:hover {
    border-color: var(--primary-color);
}

.message-card.unread {
    border-left: 4px solid var(--primary-color);
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.message-from {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
}

.unread-indicator {
    background: var(--primary-color);
    color: var(--bg-primary);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.message-date {
    color: var(--text-light);
    font-size: 0.85rem;
}

.message-subject {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.message-preview {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.account-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.account-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
}

.account-card h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.account-info {
    margin-bottom: 1.5rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.info-value {
    color: var(--text-primary);
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

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

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

.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.empty-state p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* Responsive Design for Customer Portal */
@media (max-width: 768px) {
    .nav-item-cta {
        margin-left: 0;
        margin-top: 0.5rem;
    }

    .login-box {
        padding: 1.5rem;
    }

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

    .projects-list {
        grid-template-columns: 1fr;
    }

    .account-grid {
        grid-template-columns: 1fr;
    }

    .project-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}

/* Customer Login Page Specific Styles */
.demo-credentials>div {
    margin-bottom: 1rem;
}

.demo-credentials>div:last-child {
    margin-bottom: 0;
}

.demo-credentials .owner-login-label {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.demo-credentials .customer-login-label {
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.nav-logo a {
    text-decoration: none;
    color: inherit;
}

/* Hidden utility class */
.hidden {
    display: none !important;
}

/* ============================================
   OWNER DASHBOARD STYLES
   ============================================ */
.dashboard-container {
    min-height: 100vh;
    background: var(--background);
    padding: 2rem 0;
}

.dashboard-header {
    background: rgba(0, 255, 127, 0.05);
    border-bottom: 1px solid rgba(0, 255, 127, 0.2);
    padding: 1rem 0;
    margin-bottom: 3rem;
}

.dashboard-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.dashboard-title {
    color: var(--neon-green);
    font-size: 1.8rem;
    text-shadow: 0 0 20px var(--neon-green);
}

.logout-btn {
    background: rgba(255, 68, 68, 0.2);
    color: #ff4444;
    border: 1px solid #ff4444;
    padding: 0.5rem 1rem;
    border-radius: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: rgba(255, 68, 68, 0.3);
    transform: translateY(-2px);
}

.dashboard-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.dashboard-card {
    background: rgba(0, 255, 127, 0.05);
    border: 1px solid rgba(0, 255, 127, 0.2);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    background: rgba(0, 255, 127, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 255, 127, 0.2);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.card-title {
    color: var(--neon-green);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card-description {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.card-button {
    background: linear-gradient(135deg, var(--neon-green), #00cc66);
    color: var(--background);
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.card-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 255, 127, 0.4);
}

.stats-section {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 3rem;
}

.stats-title {
    color: var(--neon-green);
    text-align: center;
    margin-bottom: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: rgba(0, 255, 127, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(0, 255, 127, 0.2);
}

.stat-number {
    color: var(--neon-green);
    font-size: 2rem;
    font-weight: bold;
    display: block;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.quick-actions {
    background: rgba(255, 255, 0, 0.05);
    border: 1px solid rgba(255, 255, 0, 0.2);
    border-radius: 20px;
    padding: 2rem;
}

.quick-actions h3 {
    color: #ffff00;
    text-align: center;
    margin-bottom: 2rem;
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.action-btn {
    background: rgba(255, 255, 0, 0.1);
    color: #ffff00;
    border: 1px solid rgba(255, 255, 0, 0.3);
    padding: 1rem;
    border-radius: 15px;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    display: block;
}

.action-btn:hover {
    background: rgba(255, 255, 0, 0.2);
    transform: translateY(-2px);
}

/* ============================================
   PASSWORD CHANGE STYLES
   ============================================ */
.password-change-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.password-change-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2.5rem;
    max-width: 450px;
    width: 100%;
    box-shadow: var(--shadow-lg);
}

.password-change-header {
    text-align: center;
    margin-bottom: 2rem;
}

.password-change-header h1 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

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

.warning-box {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 4px;
    padding: 1rem;
    margin-bottom: 2rem;
    color: #ffc107;
    font-size: 0.9rem;
}

.password-strength {
    margin-top: 0.5rem;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
    background: rgba(0, 255, 65, 0.1);
    color: var(--primary-color);
}

.strength-meter {
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    transition: width 0.3s ease;
}

.password-requirements {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
}

.requirement {
    display: flex;
    align-items: center;
    margin: 0.5rem 0;
    color: var(--text-secondary);
}

.requirement.met {
    color: var(--primary-color);
}

.requirement-check {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 2px;
    text-align: center;
    font-size: 0.75rem;
    line-height: 16px;
}

.requirement.met .requirement-check {
    background: var(--primary-color);
    color: var(--bg-primary);
    border-color: var(--primary-color);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .dashboard-container {
        padding: 1rem;
    }

    .dashboard-title {
        font-size: 1.8rem;
    }

    .logout-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

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

    .stat-card {
        padding: 1.5rem;
    }

    .stat-number {
        font-size: 1.8rem;
    }

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

    .action-btn {
        padding: 1.2rem;
        font-size: 1rem;
    }

    .messages-container {
        padding: 1.5rem;
    }

    .message-item {
        padding: 1rem;
    }

    .message-subject {
        font-size: 1rem;
    }

    .message-preview {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .dashboard-container {
        padding: 0.5rem;
    }

    .dashboard-title {
        font-size: 1.5rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .action-btn {
        padding: 1rem;
        font-size: 0.9rem;
    }

    .messages-container {
        padding: 1rem;
    }
}

/* Admin Page Title & Heading */
.generator-container h3 {
    color: var(--neon-green);
}

.record-section h3 {
    color: #ffff00;
}

.criteria-section h3 {
    color: var(--neon-green);
}

/* Form Groups */
.form-group small {
    color: var(--text-light);
}

/* Custom Project Input */
#customProjectName,
#editCustomProjectName {
    margin-top: 0.5rem;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 127, 0.3);
    border-radius: 10px;
    color: white;
    width: 100%;
}

.generated-result {
    display: none;
    background: rgba(0, 255, 127, 0.08);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(0, 255, 127, 0.15);
    margin-top: 2rem;
}

.generated-result.show {
    display: block;
}

.generated-result h4 {
    color: var(--neon-green);
    margin-bottom: 1rem;
}

.result-section {
    margin-top: 2rem;
}

.email-template {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    padding: 1rem;
}

/* Record Controls */
.record-controls {
    margin-bottom: 1rem;
    text-align: right;
}

.record-controls button {
    margin-right: 0.5rem;
}

/* Table Empty State */
.table-empty {
    text-align: center;
    color: #666;
}

/* Criteria Paragraph */
.criteria-note {
    color: var(--text-light);
    font-style: italic;
    margin-top: 1rem;
}

/* Table row code styling */
.code-cell {
    font-family: monospace;
    color: var(--neon-green);
}

/* Edit button */
.edit-btn-small {
    margin-right: 0.5rem;
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
}

/* Delete button */
.delete-btn-small {
    background: #ff4444;
    color: white;
    border: none;
    padding: 0.3rem 0.6rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8rem;
}

.delete-btn-small:hover {
    background: #ff6666;
}

/* Success message styles */
.success-message {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.success-changes {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Button with top margin */
.btn-top-margin {
    margin-top: 0.5rem;
}

/* Hidden Actions Header */
#actionsHeader {
    display: none;
}

#actionsHeader.show {
    display: table-cell;
}

/* Notification styles */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 255, 127, 0.2);
    border: 1px solid rgba(0, 255, 127, 0.5);
    border-radius: 10px;
    padding: 1.5rem;
    color: var(--text-light);
    z-index: 2000;
    font-weight: 600;
    max-width: 400px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Edit Modal */
.edit-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.edit-modal.show {
    display: flex;
}

.edit-modal-content {
    background: #1a1a1a;
    border: 2px solid var(--neon-green);
    border-radius: 20px;
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 0 30px rgba(0, 255, 127, 0.3);
    max-height: 90vh;
    overflow-y: auto;
}

.edit-modal-title {
    color: var(--neon-green);
    margin-bottom: 2rem;
    text-shadow: 0 0 10px var(--neon-green);
}

/* Edit Form Groups */
.edit-form-group {
    margin-bottom: 1.5rem;
}

.edit-form-label {
    color: var(--text-light);
    display: block;
    margin-bottom: 0.5rem;
}

.edit-form-input,
.edit-form-select {
    width: 100%;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 127, 0.3);
    border-radius: 10px;
    color: white;
    font-size: 1rem;
}

.edit-form-input[type="text"],
.edit-form-input[type="date"],
.edit-form-input[type="number"] {
    font-family: inherit;
}

.edit-form-input[type="text"][style*="monospace"],
.edit-code-input {
    font-family: monospace;
}

.edit-modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.edit-modal-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.edit-modal-buttons button {
    flex: 1;
}

.edit-email-template {
    display: none;
    margin-top: 2rem;
}

.edit-email-template.show {
    display: block;
}

.edit-email-textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    padding: 1rem;
    margin-top: 0.5rem;
}

/* Mobile responsive for edit modal */
@media (max-width: 768px) {
    .edit-modal-content {
        padding: 1.5rem;
        max-width: 95%;
    }

    .edit-modal-grid {
        grid-template-columns: 1fr;
    }

    .edit-form-input,
    .edit-form-select {
        font-size: 16px;
        /* Prevents iOS zoom */
    }

    .edit-modal-buttons {
        flex-direction: column;
    }
}

.admin-header {
    text-align: center;
    margin-bottom: 2rem;
}

.admin-title {
    color: var(--neon-green);
    text-shadow: 0 0 20px var(--neon-green);
    margin: 0 0 1rem 0;
}

.admin-nav {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.nav-button {
    background: rgba(0, 255, 127, 0.2);
    color: var(--neon-green);
    border: 1px solid var(--neon-green);
    padding: 0.5rem 1rem;
    border-radius: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
}

.nav-button:hover {
    background: rgba(0, 255, 127, 0.3);
    box-shadow: 0 5px 15px rgba(0, 255, 127, 0.3);
    transform: translateY(-2px);
}

.nav-button-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
}

.nav-button-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .admin-header {
        margin-bottom: 1.5rem;
    }

    .admin-title {
        font-size: 1.5rem;
    }

    .admin-nav {
        gap: 0.5rem;
    }

    .nav-button,
    .nav-button-secondary {
        padding: 0.5rem 0.8rem;
        font-size: 0.9rem;
    }
}

/* ============================================
   MODAL & DIALOG STYLES
   ============================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    max-width: 90%;
    max-height: 80%;
    overflow-y: auto;
    width: 800px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.modal-title {
    color: var(--neon-green);
    margin: 0;
}

.modal-close {
    background: #ff4444;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #ff6666;
}

.modal-body {
    max-height: 500px;
    overflow-y: auto;
}

.modal-separator {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(0, 255, 127, 0.2);
}

.modal-card {
    background: rgba(0, 255, 127, 0.05);
    border: 1px solid rgba(0, 255, 127, 0.2);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.modal-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.modal-card-title {
    flex: 1;
}

.modal-card-meta {
    text-align: right;
    font-size: 0.9rem;
    color: #666;
}

.modal-card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.modal-form {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    width: 100%;
    max-width: 500px;
}

.modal-form-title {
    color: var(--neon-green);
    margin-top: 0;
}

.modal-form-group {
    margin: 1rem 0;
}

.modal-label {
    color: var(--text-primary);
    display: block;
    margin-bottom: 0.5rem;
}

.modal-input {
    width: 100%;
    padding: 0.7rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    box-sizing: border-box;
}

.modal-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.modal-input-helper {
    color: var(--text-light);
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

.modal-form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-primary {
    flex: 1;
    background: var(--neon-green);
    color: var(--background);
    border: none;
    padding: 0.7rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #00e039;
}

.btn-secondary {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.7rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-icon {
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-weight: 600;
}

.btn-icon-small {
    padding: 0.5rem 1rem;
    border-radius: 10px;
    cursor: pointer;
    flex: 1;
    transition: all 0.2s ease;
    font-weight: 600;
}

.btn-edit {
    background: rgba(0, 255, 127, 0.2);
    color: var(--neon-green);
    border: 1px solid rgba(0, 255, 127, 0.4);
}

.btn-edit:hover {
    background: rgba(0, 255, 127, 0.3);
}

.btn-project {
    background: rgba(100, 149, 237, 0.2);
    color: #6495ed;
    border: 1px solid rgba(100, 149, 237, 0.4);
}

.btn-project:hover {
    background: rgba(100, 149, 237, 0.3);
}

.btn-delete {
    background: rgba(255, 68, 68, 0.2);
    color: #ff4444;
    border: 1px solid rgba(255, 68, 68, 0.4);
}

.btn-delete:hover {
    background: rgba(255, 68, 68, 0.3);
}

.form-field {
    margin: 1rem 0;
}

.password-reset-box {
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 8px;
}

.password-reset-label {
    color: #ffc107;
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.password-input {
    width: 100%;
    padding: 0.7rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    box-sizing: border-box;
    font-family: monospace;
}

.btn-password-reset {
    width: 100%;
    background: #ffc107;
    color: #000;
    border: none;
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.btn-password-reset:hover {
    background: #ffda47;
}

.password-reset-helper {
    color: var(--text-light);
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

.flex-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.flex-row-input {
    display: flex;
    gap: 0.5rem;
}

.flex-row-input input {
    flex: 1;
}

.flex-row-button {
    background: var(--neon-green);
    color: var(--background);
    border: none;
    padding: 0.7rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.flex-row-button:hover {
    background: #00e039;
}

/* Projects list in modal */
.projects-list-container {
    max-height: 300px;
    overflow-y: auto;
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(100, 149, 237, 0.05);
    border: 1px solid rgba(100, 149, 237, 0.2);
    border-radius: 8px;
}

.project-checkbox-label {
    display: flex;
    align-items: center;
    margin: 0.5rem 0;
    color: var(--text-primary);
    cursor: pointer;
}

.project-checkbox-label input {
    margin-right: 0.5rem;
    cursor: pointer;
}

.project-checkbox-label span {
    color: #666;
    margin-left: 0.5rem;
}

/* Message card styles */
.message-card-item {
    background: rgba(0, 255, 127, 0.05);
    border: 1px solid rgba(0, 255, 127, 0.2);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.message-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.message-sender-info {
    flex: 1;
}

.message-sender-name {
    color: var(--neon-green);
    font-weight: 600;
}

.message-sender-email {
    color: #666;
}

.message-timestamp {
    text-align: right;
    font-size: 0.9rem;
    color: #666;
}

.message-content {
    color: var(--text-light);
    line-height: 1.6;
}

.message-actions {
    margin-top: 1rem;
    text-align: right;
}

.btn-reply {
    background: var(--neon-green);
    color: var(--background);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 15px;
    cursor: pointer;
    margin-right: 0.5rem;
    transition: all 0.2s ease;
}

.btn-reply:hover {
    background: #00e039;
}

.btn-mark-read {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-mark-read:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Customer card styles */
.customer-card-item {
    background: rgba(0, 255, 127, 0.05);
    border: 1px solid rgba(0, 255, 127, 0.2);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.customer-info {
    flex: 1;
}

.customer-name {
    color: var(--neon-green);
    font-weight: 600;
}

.customer-email {
    color: #666;
}

.customer-member-date {
    color: #888;
    font-size: 0.9rem;
}

.customer-stats {
    text-align: right;
}

.customer-projects {
    color: var(--neon-green);
    font-weight: 600;
}

.customer-password-status {
    font-size: 0.9rem;
}

.add-new-button {
    background: var(--neon-green);
    color: var(--background);
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 15px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.add-new-button:hover {
    background: #00e039;
}

/* Portfolio manager button at bottom */
.portfolio-manager-section {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem 2rem;
}

.portfolio-manager-link {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--background);
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 255, 65, 0.25);
    text-decoration: none;
}

.portfolio-manager-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 255, 65, 0.4);
}

.button-secondary-variant {
    background: rgba(0, 255, 127, 0.15);
    color: var(--neon-green);
}

.button-secondary-variant:hover {
    background: rgba(0, 255, 127, 0.25);
}

.card-button-wrapper {
    margin-top: 0.75rem;
}

.password-input-wrapper {
    margin-bottom: 0.5rem;
}

/* Navigation link styles */
.nav-logo a {
    color: var(--primary-color);
    text-decoration: none;
}

/* Portfolio Manager Page Styles */
.portfolio-manager-container {
    margin-top: 4rem;
}

.portfolio-status-message {
    margin: 8px 0 20px;
    color: #555;
}

/* Footer owner portal link */
.footer-owner-link-wrapper {
    text-align: center;
    margin-top: 0.5rem;
}

.footer-owner-link {
    color: #333;
    font-size: 0.8rem;
    text-decoration: none;
    opacity: 0.3;
    transition: all 0.3s ease;
}

.footer-owner-link:hover {
    opacity: 0.6;
}

/* Form helper text */
.form-helper-text {
    color: var(--text-light);
    margin-top: 0.25rem;
    display: block;
}

/* ============================================
   ADMIN CODE GENERATOR STYLES
   ============================================ */
.admin-page-body {
    font-family: 'Orbitron', sans-serif;
    background: var(--background);
    color: var(--text-light);
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

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

.admin-container a:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 127, 0.3);
}

.admin-container a:first-of-type:hover {
    background: rgba(0, 255, 127, 0.3) !important;
}

.admin-container a:last-of-type:hover {
    background: rgba(255, 255, 255, 0.2) !important;
}

.generator-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(0, 255, 127, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(0, 255, 127, 0.2);
}

.generator-container h3 {
    color: var(--neon-green);
    font-size: 1.4rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.generator-container form {
    background: rgba(255, 255, 255, 0.02);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(0, 255, 127, 0.1);
}

.criteria-section {
    background: rgba(255, 255, 255, 0.04);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.criteria-section h3 {
    color: var(--neon-green);
    margin-top: 0;
    margin-bottom: 1rem;
}

.criteria-list {
    list-style: none;
    padding: 0;
}

.criteria-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.criteria-list li:before {
    content: "✅ ";
    margin-right: 0.5rem;
}

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

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

.form-group label {
    display: block;
    margin-bottom: 0.6rem;
    color: var(--text-light);
    font-weight: 500;
}

.generated-code {
    background: var(--neon-green);
    color: var(--background);
    padding: 1rem;
    border-radius: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    margin: 1rem 0;
    font-family: 'Courier New', monospace;
}

.copy-btn {
    background: rgba(0, 255, 127, 0.2);
    color: var(--neon-green);
    border: 1px solid var(--neon-green);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: rgba(0, 255, 127, 0.3);
}

.record-section {
    background: rgba(255, 255, 0, 0.08);
    border: 1px solid rgba(255, 255, 0, 0.25);
    padding: 2rem;
    border-radius: 15px;
    margin-top: 3rem;
}

.record-section h3 {
    color: #ffff00;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.record-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.record-table th,
.record-table td {
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.8rem;
    text-align: left;
}

.record-table th {
    background: rgba(0, 255, 127, 0.2);
    color: var(--neon-green);
}

/* Form Inputs and Selects */
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.85rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(0, 255, 127, 0.25);
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--neon-green);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 15px rgba(0, 255, 127, 0.2);
}

/* Date input styling */
input[type="date"] {
    background: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    border: 1px solid rgba(0, 255, 127, 0.3) !important;
    border-radius: 10px !important;
    padding: 0.8rem !important;
    font-size: 1rem !important;
    position: relative;
}

input[type="date"]:focus {
    outline: none !important;
    border-color: var(--neon-green) !important;
    box-shadow: 0 0 10px rgba(0, 255, 127, 0.3) !important;
}

/* Calendar icon styling */
input[type="date"]::-webkit-calendar-picker-indicator {
    background-color: rgba(255, 255, 255, 0.8) !important;
    border-radius: 3px !important;
    cursor: pointer !important;
    filter: invert(1) !important;
    padding: 2px !important;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
    background-color: var(--neon-green) !important;
    filter: invert(0) !important;
}

/* Dark theme for calendar popup */
input[type="date"]::-webkit-datetime-edit-text {
    color: white !important;
}

input[type="date"]::-webkit-datetime-edit-month-field {
    color: white !important;
}

input[type="date"]::-webkit-datetime-edit-day-field {
    color: white !important;
}

input[type="date"]::-webkit-datetime-edit-year-field {
    color: white !important;
}

/* Firefox date input styling */
@-moz-document url-prefix() {
    input[type="date"] {
        color: white !important;
        background: rgba(255, 255, 255, 0.1) !important;
    }
}

.admin-warning a:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 127, 0.3);
}

.admin-warning a:first-of-type:hover {
    background: rgba(0, 255, 127, 0.3) !important;
}

.admin-warning a:last-of-type:hover {
    background: rgba(255, 255, 255, 0.2) !important;
}

/* Mobile responsive for admin pages */
@media (max-width: 768px) {
    .admin-container {
        padding: 1rem;
    }

    .admin-container h1 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .admin-container a {
        display: block;
        margin: 0.5rem 0;
        text-align: center;
        padding: 0.8rem 1rem;
    }

    .generator-container {
        padding: 1.5rem;
        max-width: 100%;
    }

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

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

    .form-group label {
        font-size: 0.9rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px;
        padding: 1rem;
    }

    .submit-btn,
    .copy-btn {
        padding: 1rem 2rem;
        font-size: 1rem;
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .generated-code {
        font-size: 1.2rem;
        padding: 1.5rem;
        word-break: break-all;
    }

    .record-table {
        font-size: 0.8rem;
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .record-table th,
    .record-table td {
        padding: 0.5rem;
        min-width: 80px;
    }

    .criteria-section {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }

    .criteria-list {
        font-size: 0.9rem;
    }

    .criteria-list li {
        padding: 0.3rem 0;
        line-height: 1.4;
    }
}

@media (max-width: 480px) {
    .admin-container {
        padding: 0.5rem;
    }

    .admin-container h1 {
        font-size: 1.5rem;
    }

    .generator-container {
        padding: 1rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.8rem;
    }

    .generated-code {
        font-size: 1rem;
        padding: 1rem;
    }

    .record-table {
        font-size: 0.7rem;
    }

    .copy-btn,
    .submit-btn {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
}

/* Edit modal styling */
.edit-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.edit-modal-content {
    background: #1a1a1a;
    border: 2px solid var(--neon-green);
    border-radius: 20px;
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 0 30px rgba(0, 255, 127, 0.3);
}

@media (max-width: 768px) {
    .edit-modal-overlay {
        display: flex !important;
    }

    .edit-modal-content {
        max-width: 95%;
        width: 95%;
        padding: 1.5rem;
        max-height: 90vh;
        overflow-y: auto;
    }

    .edit-modal-content h3 {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }

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

    .edit-modal-content input,
    .edit-modal-content select,
    .edit-modal-content textarea {
        font-size: 16px;
        padding: 1rem;
    }

    #editEmailTemplate textarea {
        font-size: 0.9rem;
        height: 200px;
    }
}