@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

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

/* Language Switcher */
.language-switcher {
    position: relative;
    margin-right: 1rem;
}

.language-switcher button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-primary);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.language-switcher button:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.language-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    background: none;
    color: var(--text-primary);
    cursor: pointer;
    transition: background 0.2s ease;
    font-size: 0.875rem;
}

.language-option:hover {
    background: var(--primary-light);
}

.language-option:first-child {
    border-radius: 0.5rem 0.5rem 0 0;
}

.language-option:last-child {
    border-radius: 0 0 0.5rem 0.5rem;
}

:root {
    --primary: #2563eb;
    --primary-light: #3b82f6;
    --primary-dark: #1d4ed8;
    --secondary: #1e40af;
    --accent: #06b6d4;
    --accent-light: #0891b2;
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
    --white: #ffffff;
    --blue-50: #eff6ff;
    --blue-100: #dbeafe;
    --blue-200: #bfdbfe;
    --blue-300: #93c5fd;
    --blue-400: #60a5fa;
    --blue-500: #3b82f6;
    --blue-600: #2563eb;
    --blue-700: #1d4ed8;
    --blue-800: #1e40af;
    --blue-900: #1e3a8a;
    --blue-950: #172554;
    --text-white: #ffffff;
    --text-primary: var(--blue-900);
    --text-secondary: var(--blue-700);
    --text-muted: var(--blue-500);
    --background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    --surface: var(--bg-primary);
    --border: var(--blue-200);
    --border-light: var(--border-color);
    --shadow: none;
    --shadow-md: none;
    --shadow-lg: none;
    --shadow-xl: none;
    --glow: 0 0 20px rgba(59, 130, 246, 0.3);
    --glow-intense: 0 0 30px rgba(59, 130, 246, 0.5);
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(147, 197, 253, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(96, 165, 250, 0.1) 0%, transparent 50%);
    animation: float 15s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

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

/* Navigation */
.navbar {
    background: rgba(var(--bg-primary-rgb), 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--glow);
}

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

.logo-nav {
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    letter-spacing: -0.02em;
    transition: 0.3s;
}

.logo-nav:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.5));
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
    font-size: 0.8rem;
    position: relative;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
}

.nav-links a:hover {
    color: var(--primary);
    background: var(--blue-50);
    transform: translateY(-1px);
}

.nav-links a.active {
    color: var(--white);
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    box-shadow: var(--glow);
}

.nav-auth {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.btn-outline {
    background: transparent;
    color: var(--text-secondary);
    border: 2px solid var(--border);
    padding: 0.5rem 1.25rem;
    border-radius: 12px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: 0.3s;
}

.btn-outline:hover {
    background: var(--blue-50);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--glow);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--text-white);
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: 12px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: 0.3s;
    box-shadow: var(--glow);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    transform: translateY(-2px);
    box-shadow: var(--glow);
}

.mobile-menu-btn {
    display: none; /* Hidden by default */
    background: transparent;
    border: none;
    font-size: 1.25rem;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: 0.3s;
}

.mobile-menu-btn:hover {
    background: var(--bg-secondary);
    color: var(--primary);
}

/* Container */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem;
    min-height: calc(100vh - 80px);
}

.page-content {
    display: none;
    animation: fadeInUp 0.6s;
}

.page-content.active {
    display: block;
}

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

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 6rem 0;
    min-height: 80vh;
    position: relative;
    overflow: hidden;
   
}

.hero-content {
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
   /* background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(6, 182, 212, 0.1));*/
    border: 1px solid rgba(59, 130, 246, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.1;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    animation: titleGlow 3s ease-in-out infinite;
}

/* Dark theme için gradient text */
[data-theme="dark"] .gradient-text {
    background: linear-gradient(135deg, #4dabf7, #74c0fc, #4dabf7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    display: block;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

@keyframes titleGlow {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.3)); }
    50% { filter: drop-shadow(0 0 30px rgba(59, 130, 246, 0.5)); }
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.7;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Dark theme için hero description */
[data-theme="dark"] .hero-description {
    color: var(--text-secondary);
}

.hero-description strong {
    color: var(--accent-primary);
    font-weight: 700;
}

/* Dark theme için strong text */
[data-theme="dark"] .hero-description strong {
    color: #74c0fc;
}

.highlight {
    background: linear-gradient(135deg, var(--accent), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    justify-content: center;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.hero-stats .stat-item {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.01);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid var(--border-light);
    min-width: 100px;
}

.hero-stats .stat-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.hero-stats .stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-cards {
    position: relative;
    width: 280px;
    height: 280px;
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.01);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: float 8s ease-in-out infinite;
    transition: all 0.3s ease;
}

.floating-card:hover {
    transform: translateY(-5px) scale(1.05);
}

.floating-card i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.floating-card span {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.card-1 {
    top: 15px;
    left: 15px;
    animation-delay: 0s;
    z-index: 3;
}

.card-2 {
    top: 70px;
    right: 15px;
    animation-delay: 2.5s;
    z-index: 2;
}

.card-3 {
    bottom: 15px;
    left: 40px;
    animation-delay: 5s;
    z-index: 1;
}

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

/* Quick Features */
.quick-features {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 4rem 0;
    padding: 2rem 0;
}

.quick-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.01);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    min-width: 120px;
}

.quick-feature:hover {
    transform: translateY(-5px);
    box-shadow: var(--glow);
    border-color: var(--primary);
}

.quick-feature i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.quick-feature span {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Buttons */
.btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--text-white);
    border: none;
    padding: 1rem 1rem;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    text-decoration: none;
    font-family: inherit;
    box-shadow: var(--glow);
    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:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    transform: translateY(-3px);
    box-shadow: var(--glow);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--text-white);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
}

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


.btn-outline:hover {
    background: var(--blue-50);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
    border-radius: 20px;
}

.btn-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: inherit;
    opacity: 0;
    filter: blur(20px);
    transition: opacity 0.3s ease;
    z-index: -1;
}

.btn:hover .btn-glow {
    opacity: 0.3;
}

/* Cards */
.card {
    background: rgba(255, 255, 255, 0.01);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--glow);
    transition: 0.4s;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary-light));
}

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

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-light);
}

.card-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 1.25rem;
    box-shadow: var(--glow);
    transition: 0.3s;
}

.card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--glow);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

/* Upload Area */
.upload-area {
    border: 3px dashed var(--border-color);
    border-radius: 20px;
    padding: 4rem 2rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.01);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    cursor: pointer;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

/* Light theme için upload area */
[data-theme="light"] .upload-area {
    background: linear-gradient(135deg, var(--blue-200), var(--blue-100));
    border-color: #dee2e6;
}

/* Dark theme için upload area */
[data-theme="dark"] .upload-area {
    background: rgba(255, 255, 255, 0.01);
    backdrop-filter: blur(10px);
    border-color: #404040;
}

.upload-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(147, 197, 253, 0.05));
    opacity: 0;
    transition: opacity 0.3s;
}

.upload-area:hover::before {
    opacity: 1;
}

.upload-area:hover {
    border-color: var(--accent-primary);
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Light theme için hover */
[data-theme="light"] .upload-area:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(147, 197, 253, 0.05));
    border-color: #007bff;
}

/* Dark theme için hover */
[data-theme="dark"] .upload-area:hover {
    background: linear-gradient(135deg, rgba(77, 171, 247, 0.2), rgba(116, 192, 252, 0.1));
    border-color: #4dabf7;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.upload-area.dragover {
    border-color: var(--accent-primary);
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* Light theme için dragover */
[data-theme="light"] .upload-area.dragover {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(59, 130, 246, 0.1));
    border-color: #007bff;
}

/* Dark theme için dragover */
[data-theme="dark"] .upload-area.dragover {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(77, 171, 247, 0.2));
    border-color: #4dabf7;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.upload-icon {
    width: 60px;
    height: 60px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.4s ease;
    box-shadow: var(--glow);
}

/* Light theme için upload icon */
[data-theme="light"] .upload-icon {
    background: linear-gradient(135deg, #007bff, #6c757d);
    color: white;
}

/* Dark theme için upload icon */
[data-theme="dark"] .upload-icon {
    background: linear-gradient(135deg, #4dabf7, #74c0fc);
    color: white;
}

/* Upload Area Text Styles */
.upload-area h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.upload-area p {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

/* Light theme için upload text */
[data-theme="light"] .upload-area h3 {
    color: #212529;
}

[data-theme="light"] .upload-area p {
    color: #6c757d;
}

/* Dark theme için upload text */
[data-theme="dark"] .upload-area h3 {
    color: #ffffff;
}

[data-theme="dark"] .upload-area p {
    color: #b3b3b3;
}

.upload-area:hover .upload-icon {
    transform: scale(1.2) rotate(10deg);
    box-shadow: var(--glow);
}

.upload-text {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.upload-subtext {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.time-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    padding: 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-light);
    border-radius: 12px;
}

.time-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.time-label i {
    color: var(--primary);
}

.time-select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Light theme için time select */
[data-theme="light"] .time-select {
    background: #ffffff;
    color: #212529;
    border-color: #dee2e6;
}

/* Dark theme için time select */
[data-theme="dark"] .time-select {
    background: #2d2d2d;
    color: #ffffff;
    border-color: #404040;
}

.time-select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Light theme için focus */
[data-theme="light"] .time-select:focus {
    border-color: #007bff;
}

/* Dark theme için focus */
[data-theme="dark"] .time-select:focus {
    border-color: #4dabf7;
    box-shadow: 0 0 0 3px rgba(77, 171, 247, 0.2);
}

input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

/* Form Elements */
.form-group {
    margin-bottom: 2rem;
}

.form-label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

/* Light theme için form input */
[data-theme="light"] .form-input {
    background: rgba(255, 255, 255, 0.01);
    backdrop-filter: blur(10px);
    color: #212529;
    border-color: #dee2e6;
}

/* Dark theme için form input */
[data-theme="dark"] .form-input {
    background: rgba(255, 255, 255, 0.01);
    backdrop-filter: blur(10px);
    color: #ffffff;
    border-color: #404040;
}

.form-input:focus {
    outline: 0;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

/* Light theme için focus */
[data-theme="light"] .form-input:focus {
    border-color: #007bff;
    background: #ffffff;
}

/* Dark theme için focus */
[data-theme="dark"] .form-input:focus {
    border-color: #4dabf7;
    background: rgba(45, 45, 45, 0.9);
    box-shadow: 0 0 0 4px rgba(77, 171, 247, 0.2);
}

.form-input.code-input {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 1.5rem;
    text-align: center;
}

/* Results */
.result {
    margin-top: 2rem;
    padding: 2rem;
    border-radius: 20px;
    display: none;
    animation: slideInUp 0.5s;
    border: 1px solid;
}

.result.success {
    border-color: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.result.error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.05));
    border-color: rgba(239, 68, 68, 0.2);
    color: var(--danger);
}

.result h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

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

/* Room Code */
.room-code {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: 2.5rem;
    font-weight: 900;
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-primary));
    color: var(--primary);
    border: 3px solid var(--primary);
    border-radius: 20px;
    margin: 1.5rem 0;
    letter-spacing: 0.3em;
    transition: 0.3s;
    box-shadow: var(--glow);
    position: relative;
    overflow: hidden;
}

.room-code::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.8s;
}

.room-code:hover::before {
    left: 100%;
}

.room-code:hover {
    background: rgba(255, 255, 255, 0.01);
    backdrop-filter: blur(10px);
    transform: scale(1.03);
    box-shadow: var(--glow);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    border-radius: 16px;
    transition: 0.3s;
    border: 1px solid var(--border-light);
}

/* Dark theme için stat item */
[data-theme="dark"] .stat-item {
    background: linear-gradient(135deg, rgb(63 68 65 / 20%), rgb(22, 22, 23));
}

/* Light theme için stat item */
[data-theme="light"] .stat-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(248, 249, 250, 0.9));
}

/* Dark theme hover */
[data-theme="dark"] .stat-item:hover {
    background: linear-gradient(135deg, rgb(63 68 65 / 30%), rgb(22, 22, 23));
    backdrop-filter: blur(10px);
    transform: translateY(-3px);
    box-shadow: var(--glow);
}

/* Light theme hover */
[data-theme="light"] .stat-item:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 249, 250, 1));
    backdrop-filter: blur(10px);
    transform: translateY(-3px);
    box-shadow: var(--glow);
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

/* Info Box */
.info-box {

    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    font-size: 0.9rem;
    line-height: 1.6;
    backdrop-filter: blur(10px);
}

.info-box.warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(252, 211, 77, 0.05));
    border-color: rgba(245, 158, 11, 0.2);
    color: var(--warning);
}

.info-box strong {
    font-weight: 700;
    color: var(--primary);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin: 0;
}

.feature-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary-light));
}

.feature-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--glow);
    border-color: var(--primary);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 2rem;
    margin: 0 auto 2rem;
    box-shadow: var(--glow);
    transition: all 0.4s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.15) rotate(8deg);
    box-shadow: var(--glow);
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.feature-highlight {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    background-color: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.2);
}

/* CTA Section */
.cta-section {
    padding: 3rem 0;
    text-align: center;
   
}

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

.cta-buttons {
    display: flex;
    justify-content: center;
}

/* About Page Styles */
.about-hero {
    padding: 6rem 0 4rem;
    text-align: center;
   
}

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

.about-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(6, 182, 212, 0.1));
    border: 1px solid rgba(59, 130, 246, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 2rem;
}

.about-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.about-subtitle {
    display: block;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.about-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 0;
}

.about-sections {
    padding: 4rem 0;
}

.about-section {
    margin-bottom: 6rem;
}

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

.section-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 2rem;
    margin: 0 auto 2rem;
    box-shadow: var(--glow);
}

.section-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 2rem;
    text-align: center;
}

.section-content p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.7;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

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

.feature-item {
    background: rgba(255, 255, 255, 0.01);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--glow);
    border-color: var(--primary);
}

.feature-item i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.feature-item h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.feature-item p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

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

.privacy-item {
    background: rgba(255, 255, 255, 0.01);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.privacy-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--glow);
    border-color: var(--accent);
}

.privacy-item i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.privacy-item h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.privacy-item p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.tech-specs {
    background: rgba(255, 255, 255, 0.01);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 2rem;
    margin-top: 3rem;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-light);
}

.spec-item:last-child {
    border-bottom: none;
}

.spec-label {
    font-weight: 600;
    color: var(--text-primary);
}

.spec-value {
    font-weight: 700;
    color: var(--primary);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-cta {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

.about-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.about-cta .cta-content {
    position: relative;
    z-index: 2;
}

.about-cta h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.about-cta p {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.about-cta .cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.about-cta .btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    backdrop-filter: blur(10px);
}

.about-cta .btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
}

.about-cta .btn-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.about-cta .btn-outline:hover {
    background: rgba(255, 255, 255, 0.01);
    border-color: rgba(255, 255, 255, 0.8);
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

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

textarea.form-input {
    min-height: 140px;
    resize: vertical;
}

/* Loading State */
.loading {
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 1.5rem;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 3px solid transparent;
    border-top: 3px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Footer */
.footer {
    background: rgba(255, 255, 255, 0.01);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-light);
    padding: 3rem 0;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
}

.footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Error Pages */
.error-page {
    display: none;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 2rem;
}

.error-page.active {
    display: flex;
}

.error-container {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.error-icon {
    margin-bottom: 2rem;
    opacity: 0.8;
}

.error-icon svg {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.error-code {
    font-size: 6rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.error-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 1rem 0;
}

.error-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.error-actions .btn {
    min-width: 140px;
    padding: 0.75rem 1.5rem;
}

/* Error page animations */
.error-page {
    animation: fadeInUp 0.6s ease-out;
}

.error-icon {
    animation: bounceIn 0.8s ease-out;
}

.error-code {
    animation: slideInDown 0.6s ease-out 0.2s both;
}

.error-title {
    animation: slideInUp 0.6s ease-out 0.4s both;
}

.error-description {
    animation: slideInUp 0.6s ease-out 0.6s both;
}

.error-actions {
    animation: slideInUp 0.6s ease-out 0.8s both;
}

/* WebSocket Message Notifications */
.message-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    color: white;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    z-index: 10000;
    animation: slideInRight 0.3s ease-out;
    max-width: 300px;
}

.notification-content strong {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.notification-content p {
    margin: 0.5rem 0;
    font-size: 0.85rem;
    opacity: 0.9;
}

.notification-content small {
    font-size: 0.75rem;
    opacity: 0.7;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Typing Indicator */
#typingIndicator {
    font-style: italic;
    color: var(--text-secondary);
    font-size: 0.85rem;
    padding: 0.5rem;
    background: var(--bg-secondary);
    border-radius: 5px;
    margin: 0.5rem 0;
    display: none;
}

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

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

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

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

/* Responsive error pages */
@media (max-width: 768px) {
    .error-code {
        font-size: 4rem;
    }
    
    .error-title {
        font-size: 1.5rem;
    }
    
    .error-description {
        font-size: 1rem;
    }
    
    .error-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .error-actions .btn {
        width: 100%;
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .error-page {
        padding: 1rem;
    }
    
    .error-icon svg {
        width: 80px;
        height: 80px;
    }
    
    .error-code {
        font-size: 3rem;
    }
    
    .error-title {
        font-size: 1.25rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .nav-auth {
        display: none !important; /* Hide auth buttons on mobile */
    }
    
    .mobile-menu-btn {
        display: block;
        background: none;
        border: none;
        color: var(--text-primary);
        font-size: 1.5rem;
        cursor: pointer;
        padding: 0.5rem;
        border-radius: 8px;
        transition: all 0.3s ease;
    }
    
    .mobile-menu-btn:hover {
        background: var(--bg-secondary);
        color: var(--primary);
    }
    
    .nav-user {
        gap: 0.5rem;
    }
    
    .nav-user .language-switcher {
        margin-right: 0;
    }
    
    .nav-user .language-switcher .btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.875rem;
    }
    
    .container {
        padding: 1rem;
    }
    
    .hero {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 4rem 0;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .hero-description {
        font-size: 1.125rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-visual {
        height: 250px;
    }
    
    .floating-cards {
        width: 250px;
        height: 250px;
    }
    
    .floating-card {
        padding: 0.75rem;
        width: 80px;
        height: 80px;
    }
    
    .floating-card i {
        font-size: 1.2rem;
    }
    
    .floating-card span {
        font-size: 0.75rem;
    }
    
    /* Fix floating cards positioning on mobile - better spacing */
    .card-1 {
        top: 20px;
        left: 20px;
        z-index: 3;
    }
    
    .card-2 {
        top: 20px;
        right: 20px;
        left: auto;
        z-index: 2;
    }
    
    .card-3 {
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1;
    }
    
    .quick-features {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }
    
    .quick-feature {
        min-width: 200px;
    }
    
    .about-title {
        font-size: 2.5rem;
    }
    
    .about-subtitle {
        font-size: 1.25rem;
    }
    
    .section-content h2 {
        font-size: 2rem;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-section {
        padding: 2rem 0;
    }
    
    .about-cta h2 {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .privacy-grid {
        grid-template-columns: 1fr;
    }
    
    .card {
        padding: 2rem;
    }
    
    .upload-area {
        padding: 3rem 1.5rem;
    }
    
    .room-code {
        font-size: 1.75rem;
        letter-spacing: 0.2em;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 2rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.hidden {
    display: none;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.btn-small {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    border-radius: 8px;
    margin-left: 0.5rem;
    background: linear-gradient(135deg, var(--accent), var(--primary-light));
    color: var(--text-white);
    border: none;
    font-weight: 600;
    transition: 0.3s;
}

.btn-small:hover {
    transform: scale(1.1);
    box-shadow: var(--glow);
}

/* ==================== USER AUTH STYLES ==================== */

.nav-auth {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-user .language-switcher {
    margin-right: 0;
}

.nav-user .user-menu {
    flex-shrink: 0;
}

.user-menu {
    position: relative;
    cursor: pointer;
}

.user-name {
    font-weight: 600;
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border);
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    z-index: 1000;
    display: none;
}

.user-menu:hover .user-dropdown {
    display: block;
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: background-color 0.2s;
}

.user-dropdown a:hover {
    background: transparent;
}

.user-dropdown a i {
    width: 16px;
    text-align: center;
}

/* ==================== MESSAGING STYLES ==================== */

.messages-container {
    display: flex;
    height: 600px;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    overflow: hidden;
    background: var(--surface);
}

.conversations-sidebar {
    width: 300px;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.conversations-header {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--surface);
}

.conversations-header h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
}

.conversations-list {
    flex: 1;
    overflow-y: auto;
}

.conversation-item {
    padding: 1rem;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    transition: background-color 0.2s;
    position: relative;
}

.conversation-item:hover {
    background: var(--blue-100);
}

.conversation-item.active {
    background: var(--primary);
    color: white;
}

.conversation-item.active .conversation-preview,
.conversation-item.active .conversation-time {
    color: rgba(255, 255, 255, 0.8);
}

.conversation-user {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.conversation-preview {
    font-size: 0.875rem;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 0.25rem;
}

.conversation-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.conversation-unread {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

.chat-area {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.chat-header {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--surface);
}

.chat-user-info h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
}

.chat-user-info p {
    margin: 0;
    font-size: 0.875rem;
}

.chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    background: var(--background);
}

.message {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.message.sent {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

.message-content {
    max-width: 70%;
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
}

.message.sent .message-content {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.message-text {
    margin: 0;
    line-height: 1.4;
}

.message-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.message.sent .message-time {
    color: rgba(255, 255, 255, 0.7);
}

.chat-input {
    padding: 1rem;
    border-top: 1px solid var(--border);
    background: var(--surface);
}

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

.input-group .form-input {
    flex: 1;
    margin: 0;
}

.input-group .btn {
    padding: 0.75rem 1rem;
    margin: 0;
}

/* ==================== MODAL STYLES ==================== */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-content {
    background: var(--bg-primary);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-xl);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.modal-close:hover {
    background: var(--blue-100);
}

.modal-body {
    padding: 1.5rem;
    max-height: 60vh;
    overflow-y: auto;
}

.search-results {
    margin-top: 1rem;
    max-height: 300px;
    overflow-y: auto;
}

.search-result-item {
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--surface);
}

.search-result-item:hover {
    background: var(--blue-50);
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.search-result-item h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.search-result-item p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ==================== FILE LIST STYLES ==================== */

.file-item {
    display: flex;
    align-items: center;
    padding: 1.2rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
    background: var(--surface);
    transition: all 0.2s;
}

.file-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.file-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.5rem;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-right: 1rem;
}

.file-info {
    flex: 1;
}

.file-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.file-details {
    font-size: 0.875rem;
    color: var(--text-muted);
    display: flex;
    gap: 1rem;
}

.file-actions {
    display: flex;
    gap: 0.5rem;
}

.file-actions .btn {
    padding: 0.5rem;
    min-width: auto;
    font-size: 0.875rem;
}

.file-actions .btn-danger {
    background: var(--danger);
    color: white;
    border: none;
}

.file-actions .btn-danger:hover {
    background: var(--danger);
}

.file-actions .btn-warning {
    background: var(--warning);
    color: var(--text-primary);
    border: none;
}

.file-actions .btn-warning:hover {
    background: #e0a800;
}

.file-actions .btn-success {
    background: #28a745;
    color: white;
    border: none;
}

.file-actions .btn-success:hover {
    background: #218838;
}

.file-item.error {
    border-color: #dc3545;
    background: #f8d7da;
}

.file-item.error .file-name {
    color: #721c24;
}

.file-item.error .file-details {
    color: #856404;
}

.file-item.error .file-icon {
    background: var(--danger);
}

.file-item.error .file-actions {
    opacity: 1;
}

.file-item .file-actions {
    opacity: 1;
    transition: opacity 0.2s;
}

.file-item:hover .file-actions {
    opacity: 1;
}

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

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.empty-state p {
    margin: 0;
}

/* Extra small screens */
@media (max-width: 480px) {
    .nav-user {
        gap: 0.25rem;
    }
    
    .nav-user .language-switcher .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
    
    .nav-user .language-switcher .btn span {
        display: none;
    }
    
    .nav-user .language-switcher .btn i:first-child {
        margin-right: 0;
    }
}

/* ==================== THEME SYSTEM ==================== */

/* Light Theme (Default) */
:root {
    --bg-primary: #ffffff;
    --bg-primary-rgb: 255, 255, 255;
    --bg-secondary: #f8f9fa;
    --bg-secondary-rgb: 248, 249, 250;
    --bg-tertiary: #e9ecef;
    --bg-tertiary-rgb: 233, 236, 239;
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --text-muted: #adb5bd;
    --border-color: #dee2e6;
    --shadow: rgba(0, 0, 0, 0.1);
    --accent-primary: #007bff;
    --accent-secondary: #6c757d;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --info: #17a2b8;
}

/* Dark Theme */
[data-theme="dark"] {
    --bg-primary: #1a1a1a;
    --bg-primary-rgb: 26, 26, 26;
    --bg-secondary: #2d2d2d;
    --bg-secondary-rgb: 45, 45, 45;
    --bg-tertiary: #404040;
    --bg-tertiary-rgb: 64, 64, 64;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --text-muted: #808080;
    --border-color: #404040;
    --shadow: rgba(0, 0, 0, 0.3);
    --accent-primary: #4dabf7;
    --accent-secondary: #868e96;
    --success: #51cf66;
    --warning: #ffd43b;
    --danger: #ff6b6b;
    --info: #74c0fc;
}

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-right: 0.5rem;
}

/* Nav-auth içindeki tema butonu */
.nav-auth .theme-toggle {
    margin-right: 0.75rem;
}

.theme-toggle:hover {
    background-color: var(--bg-secondary);
    transform: scale(1.1);
}

.theme-toggle i {
    transition: transform 0.3s ease;
}

.theme-toggle:hover i {
    transform: rotate(180deg);
}

/* Theme Transition */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* ==================== MOBILE RESPONSIVE DESIGN ==================== */

/* Mobile First Approach */
@media (max-width: 768px) {
    /* Navigation */
    .navbar {
        padding: 0.5rem 1rem;
        flex-wrap: wrap;
    }
    
    .nav-brand {
        font-size: 1.25rem;
    }
    
    .nav-user {
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    
    .nav-user .language-switcher .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
    
    .nav-user .user-menu .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
    
    .nav-user .theme-toggle,
    .nav-auth .theme-toggle {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    /* Main Container */
    .container {
        padding: 1rem;
        margin: 0;
    }
    
    /* Upload Area */
    .upload-area {
        padding: 2rem 1rem;
        margin: 1rem 0;
    }
    
    .upload-area h3 {
        font-size: 1.25rem;
    }
    
    .upload-area p {
        font-size: 0.9rem;
    }
    
    /* File Info */
    .file-info {
        padding: 1rem;
        margin: 1rem 0;
    }
    
    .file-item {
        flex-direction: row;
        align-items: center;
        padding: 1.2rem;
        margin-bottom: 0.5rem;
        border-radius: 12px;
        background: var(--bg-secondary);
        border: 1px solid var(--border-color);
    }
    
    .file-item .file-info {
        flex: 1;
        margin-bottom: 0;
        margin-right: 0.5rem;
    }
    
    .file-item .file-actions {
        width: auto;
        justify-content: flex-end;
        gap: 0.25rem;
    }
    
    .file-item .file-actions .btn {
        flex: none;
        margin: 0;
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
        min-width: auto;
    }
    
    /* Forms */
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-input {
        padding: 0.75rem;
        font-size: 1rem;
    }
    
    .btn {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }
    
    /* Download Area */
    .download-container {
        padding: 1rem;
    }
    
    .code-input {
        font-size: 1.25rem !important;
        padding: 1rem !important;
        letter-spacing: 0.2em !important;
    }
    
    /* Messages */
    .messages-container {
        height: 60vh;
        margin: 1rem 0;
    }
    
    .message-item {
        padding: 0.75rem;
        margin-bottom: 0.5rem;
    }
    
    .message-content {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .message-time {
        font-size: 0.75rem;
    }
    
    /* Conversations */
    .conversation-item {
        padding: 0.75rem;
    }
    
    .conversation-info h4 {
        font-size: 1rem;
    }
    
    .conversation-info p {
        font-size: 0.8rem;
    }
    
    /* Modals */
    .modal {
        padding: 1rem;
    }
    
    .modal-content {
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }
    
    .modal-header h3 {
        font-size: 1.25rem;
    }
    
    /* Search */
    .search-results {
        max-height: 200px;
    }
    
    .search-result-item {
        padding: 0.75rem;
    }
    
    /* Profile */
    .profile-info {
        padding: 1rem;
    }
    
    .profile-info h3 {
        font-size: 1.25rem;
    }
    
    /* Stats */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-card h3 {
        font-size: 1.5rem;
    }
    
    .stat-card p {
        font-size: 0.9rem;
    }
    
    /* Alerts */
    .alert {
        padding: 0.75rem 1rem;
        margin: 0.5rem 0;
        font-size: 0.9rem;
    }
    
    /* Language Switcher */
    .language-dropdown {
        right: 0;
        left: auto;
        min-width: 120px;
    }
    
    /* User Menu */
    .user-dropdown {
        right: 0;
        left: auto;
        min-width: 150px;
    }
}

/* Extra Small Screens */
@media (max-width: 480px) {
    /* Navigation */
    .navbar {
        padding: 0.5rem;
    }
    
    .nav-brand {
        font-size: 1rem;
    }
    
    .nav-user {
        gap: 0.25rem;
    }
    
    .nav-user .language-switcher .btn {
        padding: 0.2rem 0.4rem;
        font-size: 0.7rem;
    }
    
    .nav-user .user-menu .btn {
        padding: 0.2rem 0.4rem;
        font-size: 0.7rem;
    }
    
    .nav-user .theme-toggle,
    .nav-auth .theme-toggle {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    /* Container */
    .container {
        padding: 0.5rem;
    }
    
    /* Upload Area */
    .upload-area {
        padding: 1.5rem 0.5rem;
    }
    
    .upload-area h3 {
        font-size: 1.1rem;
    }
    
    .upload-area p {
        font-size: 0.8rem;
    }
    
    /* File Info */
    .file-info {
        padding: 0.75rem;
    }
    
    .file-item {
        padding: 0.5rem;
    }
    
    .file-item .file-actions .btn {
        padding: 0.4rem;
        font-size: 0.7rem;
        margin: 0 0.1rem;
    }
    
    /* Forms */
    .form-input {
        padding: 0.6rem;
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
    
    /* Code Input */
    .code-input {
        font-size: 1rem !important;
        padding: 0.8rem !important;
        letter-spacing: 0.1em !important;
    }
    
    /* Messages */
    .messages-container {
        height: 50vh;
    }
    
    .message-item {
        padding: 0.5rem;
    }
    
    .message-content {
        font-size: 0.8rem;
    }
    
    /* Conversations */
    .conversation-item {
        padding: 0.5rem;
    }
    
    .conversation-info h4 {
        font-size: 0.9rem;
    }
    
    .conversation-info p {
        font-size: 0.7rem;
    }
    
    /* Modals */
    .modal-content {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }
    
    .modal-header h3 {
        font-size: 1.1rem;
    }
    
    /* Profile */
    .profile-info {
        padding: 0.75rem;
    }
    
    .profile-info h3 {
        font-size: 1.1rem;
    }
    
    /* Stats */
    .stat-card {
        padding: 0.75rem;
    }
    
    .stat-card h3 {
        font-size: 1.25rem;
    }
    
    .stat-card p {
        font-size: 0.8rem;
    }
    
    /* Alerts */
    .alert {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .messages-container {
        height: 40vh;
    }
    
    .upload-area {
        padding: 1rem 0.5rem;
    }
    
    .file-info {
        padding: 0.75rem;
    }
}

/* Touch Devices */
@media (hover: none) and (pointer: coarse) {
    .btn:hover {
        transform: none;
    }
    
    .file-item:hover .file-actions {
        opacity: 1;
    }
    
    .conversation-item:hover {
        background-color: var(--bg-secondary);
    }
    
    .search-result-item:hover {
        background-color: var(--bg-secondary);
    }
    
    /* Larger touch targets */
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .file-item .file-actions .btn {
        min-height: 36px;
        min-width: 36px;
    }
    
    .nav-user .btn {
        min-height: 36px;
        min-width: 36px;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .file-icon {
        background-size: contain;
    }
    
    .upload-area i {
        font-size: 2.5rem;
    }
}

/* Dark Mode Mobile */
@media (max-width: 768px) and (prefers-color-scheme: dark) {
    .modal-content {
        background-color: var(--bg-primary);
        border: 1px solid var(--border-color);
    }
    
    .language-dropdown,
    .user-dropdown {
        background-color: var(--bg-primary);
        border: 1px solid var(--border-color);
    }
}

/* Mobile Menu Styles - Only visible on mobile */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 0;
    height: 100vh;
    background: var(--bg-primary);
    border-left: 1px solid var(--border-color);
    z-index: 1000;
    transition: width 0.3s ease;
    display: none; /* Hidden by default */
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

/* Show mobile menu only on mobile devices */
@media (max-width: 768px) {
    .mobile-menu {
        display: block; /* Show the menu container */
    }
    
    .mobile-menu-btn {
        display: block;
    }
}

/* Show mobile menu when active */
.mobile-menu.active {
    width: 90%;
    max-width: 400px; /* Maksimum genişlik sınırı */
    min-width: 300px; /* Minimum genişlik garantisi */
}

.mobile-menu-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 1rem;
    overflow-y: auto;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
    margin-bottom: 1rem;
}

.mobile-menu-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.mobile-menu-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-menu-close:hover {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.mobile-menu-links {
    flex: 1;
    padding: 1rem 0;
    overflow-y: auto;
}

.mobile-menu-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.mobile-menu-link:hover {
    background: var(--bg-secondary);
    border-left-color: var(--primary);
    color: var(--primary);
}

.mobile-menu-link i {
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.mobile-menu-link.logout {
    color: var(--danger);
}

.mobile-menu-link.logout:hover {
    background: rgba(220, 53, 69, 0.1);
    border-left-color: var(--danger);
}

.mobile-menu-auth {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mobile-menu-btn-outline,
.mobile-menu-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.mobile-menu-btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.mobile-menu-btn-outline:hover {
    background: var(--primary);
    color: white;
}

.mobile-menu-btn-primary {
    background: var(--primary);
    color: white;
}

.mobile-menu-btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.mobile-menu-user {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
}

.mobile-user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    margin-bottom: 1rem;
}

.mobile-user-avatar {
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.mobile-user-details {
    flex: 1;
}

.mobile-user-name {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.mobile-user-email {
    display: block;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.mobile-menu-user-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Body scroll lock when mobile menu is open */
body.mobile-menu-open {
    overflow: hidden;
}

/* Mobile menu responsive adjustments */
@media (max-width: 480px) {
    .mobile-menu {
        width: 0%;
    }
    
    .mobile-menu-header {
        padding: 1rem;
    }
    
    .mobile-menu-link {
        padding: 0.875rem 1rem;
    }
    
    .mobile-menu-auth {
        padding: 0.75rem;
    }
    
    /* Extra small mobile devices - floating cards */
    .floating-cards {
        width: 200px;
        height: 200px;
    }
    
    .floating-card {
        padding: 0.5rem;
        width: 70px;
        height: 70px;
    }
    
    .floating-card i {
        font-size: 1rem;
    }
    
    .floating-card span {
        font-size: 0.7rem;
    }
    
    /* Even better spacing for very small screens */
    .card-1 {
        top: 15px;
        left: 15px;
        z-index: 3;
    }
    
    .card-2 {
        top: 15px;
        right: 15px;
        left: auto;
        z-index: 2;
    }
    
    .card-3 {
        bottom: 15px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1;
    }
}