* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #1e3a8a 0%, #7c3aed 50%, #ec4899 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(236, 72, 153, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(124, 58, 237, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(59, 130, 246, 0.3) 0%, transparent 50%);
    z-index: 0;
}

body::after {
    content: 'SYNERGY • LEVERAGE • PARADIGM SHIFT • CIRCLE BACK • TOUCH BASE • LOW-HANGING FRUIT • MOVE THE NEEDLE • THINK OUTSIDE THE BOX • BANDWIDTH • DEEP DIVE • ACTIONABLE INSIGHTS • BEST PRACTICES • CORE COMPETENCY • DELIVERABLES • DRILL DOWN • GAME CHANGER • GOING FORWARD • HOLISTIC APPROACH • KEY TAKEAWAYS • LEVEL SET • MINDSHARE • NET-NET • PING ME • PUSH THE ENVELOPE • QUICK WIN • REACH OUT • ROBUST • SCALABLE • SEAMLESS • STAKEHOLDER • STRATEGIC FIT • STREAMLINE • VALUE-ADD • WIN-WIN • ALIGNMENT • BALLPARK • BOIL THE OCEAN • BUY-IN • CASCADING • CLOSE THE LOOP • CROSS-FUNCTIONAL • DISRUPTIVE • ECOSYSTEM • EMPOWER • END-TO-END • EVANGELIZE • FACE TIME • FORWARD-THINKING • GRANULAR • GROWTH HACKING • IDEATE • IMPACT • INCENTIVIZE • ITERATE • LEARNINGS • MISSION CRITICAL • MONETIZE • MOVE FORWARD • NEXT STEPS • OFFLINE • ONBOARD • OPERATIONALIZE • OPTIMIZE • ORGANIC GROWTH • PAIN POINT • PEEL THE ONION • PIVOT • PROACTIVE • RAMP UP • RIGHTSIZING • ROADMAP • RUN IT UP THE FLAGPOLE • SOLUTIONING • SWIM LANE • TAKE IT OFFLINE • THOUGHT LEADERSHIP • TIGER TEAM • TOUCH POINT • UNPACK • UPSKILL • UTILIZE • VERTICAL • VISIBILITY • WHEELHOUSE • SYNERGY • LEVERAGE • PARADIGM SHIFT • CIRCLE BACK • TOUCH BASE • LOW-HANGING FRUIT • MOVE THE NEEDLE • THINK OUTSIDE THE BOX • BANDWIDTH • DEEP DIVE • ACTIONABLE INSIGHTS • BEST PRACTICES • CORE COMPETENCY • DELIVERABLES • DRILL DOWN • GAME CHANGER • GOING FORWARD • HOLISTIC APPROACH • KEY TAKEAWAYS • LEVEL SET • MINDSHARE • NET-NET • PING ME • PUSH THE ENVELOPE • QUICK WIN • REACH OUT • ROBUST • SCALABLE • SEAMLESS • STAKEHOLDER • STRATEGIC FIT • STREAMLINE • VALUE-ADD • WIN-WIN';
    position: fixed;
    top: -10%;
    left: -10%;
    right: -10%;
    bottom: -10%;
    font-size: 18px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.25);
    line-height: 2.8;
    word-spacing: 25px;
    letter-spacing: 3px;
    transform: rotate(-12deg);
    white-space: pre-wrap;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
    animation: float 100s linear infinite;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

@keyframes float {
    0% {
        transform: rotate(-12deg) translateY(0);
    }
    100% {
        transform: rotate(-12deg) translateY(-25%);
    }
}

.container {
    width: 100%;
    max-width: 600px;
    position: relative;
    z-index: 1;
}

/* Authentication Styles */
.auth-box {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.auth-box h1 {
    color: #7c3aed;
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-align: center;
}

.subtitle {
    color: #666;
    text-align: center;
    margin-bottom: 30px;
    font-size: 0.95rem;
}

.form-container h2 {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

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

.form-group label {
    display: block;
    color: #333;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

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

.form-group input.error:focus {
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.error-message {
    display: block;
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 5px;
    min-height: 20px;
}

.help-text {
    display: block;
    color: #999;
    font-size: 0.8rem;
    margin-top: 5px;
}

.btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #6d28d9 0%, #db2777 100%);
    box-shadow: 0 6px 16px rgba(124, 58, 237, 0.4);
    transform: translateY(-2px);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-secondary {
    background: #e0e0e0;
    color: #333;
    padding: 8px 16px;
    width: auto;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background: #d0d0d0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

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

.form-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    text-align: center;
    display: none;
    animation: slideIn 0.3s ease;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

.form-message.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
    display: block;
}

.form-message.warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
    display: block;
}

.form-switch {
    text-align: center;
    margin-top: 20px;
    color: #666;
    font-size: 0.9rem;
}

.form-switch a {
    color: #7c3aed;
    text-decoration: none;
    font-weight: 600;
}

.form-switch a:hover {
    text-decoration: underline;
}

/* App Container Styles */
#app-container {
    max-width: 800px;
    position: relative;
    z-index: 1;
}

.app-header {
    background: white;
    border-radius: 12px;
    padding: 20px 30px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.app-header h1 {
    color: #7c3aed;
    font-size: 1.8rem;
    margin: 0;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info span {
    color: #666;
    font-size: 0.9rem;
}

.translation-box {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.input-section,
.slider-section,
.output-section {
    margin-bottom: 25px;
}

.input-section label,
.slider-section label,
.output-section label {
    display: block;
    color: #333;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 1rem;
}

/* Enhanced Input Section - Visual Distinction */
.input-section {
    background: linear-gradient(to right, rgba(124, 58, 237, 0.03), rgba(236, 72, 153, 0.03));
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #7c3aed;
}

#input-text {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    transition: all 0.3s ease;
    background: white;
}

#input-text:focus {
    outline: none;
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

#input-text:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.6;
}

.char-counter {
    text-align: right;
    color: #999;
    font-size: 0.85rem;
    margin-top: 5px;
}

.char-counter.warning {
    color: #f59e0b;
    font-weight: 600;
}

.char-counter.danger {
    color: #ef4444;
    font-weight: 600;
}

/* Slider Section */
.slider-section {
    padding: 15px 0;
}

#jargon-slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(to right, #e0e0e0 0%, #7c3aed 50%, #ec4899 100%);
    outline: none;
    -webkit-appearance: none;
    transition: opacity 0.3s ease;
}

#jargon-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.4);
    transition: all 0.2s ease;
}

#jargon-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.6);
}

#jargon-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.4);
    transition: all 0.2s ease;
}

#jargon-slider::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.6);
}

#jargon-slider:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#jargon-slider:disabled::-webkit-slider-thumb {
    cursor: not-allowed;
}

#jargon-slider:disabled::-moz-range-thumb {
    cursor: not-allowed;
}

/* Enhanced Output Section - Visual Distinction */
.output-section {
    background: linear-gradient(to right, rgba(236, 72, 153, 0.03), rgba(124, 58, 237, 0.03));
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #ec4899;
    margin-bottom: 0;
}

.output-display {
    min-height: 150px;
    padding: 15px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    position: relative;
    transition: border-color 0.3s ease;
}

.output-display.active {
    border-color: #ec4899;
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.1);
}

#output-text {
    white-space: pre-wrap;
    word-wrap: break-word;
}

#output-text:empty::before {
    content: 'Your translation will appear here...';
    color: #999;
    font-style: italic;
}

/* Enhanced Loading Indicator */
.loading-indicator {
    color: #7c3aed;
    font-style: italic;
    text-align: center;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.loading-indicator::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 3px solid #e0e0e0;
    border-top-color: #7c3aed;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Enhanced Error Messages */
.error-display {
    background: #fee;
    border: 2px solid #fcc;
    border-radius: 6px;
    padding: 15px;
    margin-top: 15px;
    color: #c33;
    font-size: 0.9rem;
    display: none;
    animation: slideIn 0.3s ease;
}

.error-display.show {
    display: block;
}

.error-display strong {
    display: block;
    margin-bottom: 5px;
    font-size: 1rem;
}

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

/* Utility Classes */
.hidden {
    display: none !important;
}

.fade-in {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

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

/* Focus visible for keyboard navigation */
*:focus-visible {
    outline: 2px solid #7c3aed;
    outline-offset: 2px;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection styling */
::selection {
    background: rgba(124, 58, 237, 0.2);
    color: inherit;
}

::-moz-selection {
    background: rgba(124, 58, 237, 0.2);
    color: inherit;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .auth-box {
        padding: 30px 20px;
    }
    
    .auth-box h1 {
        font-size: 2rem;
    }
    
    .app-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 15px 20px;
    }
    
    .app-header h1 {
        font-size: 1.5rem;
    }
    
    .user-info {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    
    .user-info span {
        font-size: 0.85rem;
    }
    
    .translation-box {
        padding: 20px 15px;
    }
    
    .input-section,
    .output-section {
        padding: 15px;
    }
    
    #input-text {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .form-group input {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

@media (max-width: 480px) {
    .auth-box h1 {
        font-size: 1.75rem;
    }
    
    .subtitle {
        font-size: 0.85rem;
    }
    
    .app-header h1 {
        font-size: 1.3rem;
    }
    
    .translation-box {
        padding: 15px 10px;
    }
    
    .input-section,
    .output-section {
        padding: 12px;
    }
    
    .btn {
        padding: 14px 12px;
        font-size: 0.95rem;
    }
    
    .char-counter {
        font-size: 0.8rem;
    }
}

/* Google Sign-In Button */
.btn-google {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.btn-google:hover {
    border-color: #4285F4;
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.2);
    transform: translateY(-1px);
}

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

.btn-google svg {
    flex-shrink: 0;
}

.divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e0e0e0;
}

.divider span {
    background: white;
    padding: 0 15px;
    position: relative;
    color: #999;
    font-size: 0.9rem;
}
