:root {
    --bg-color: #0f172a;
    --text-color: #f8fafc;
    --card-bg: rgba(30, 41, 59, 0.7);
    --border-color: rgba(148, 163, 184, 0.2);
    --input-bg: rgba(15, 23, 42, 0.6);
    --accent-color: #38bdf8;
    --accent-hover: #0ea5e9;
    --secondary-text: #94a3b8;
    --error-color: #ef4444;
    --success-color: #10b981;
    --gradient-1: #4f46e5;
    --gradient-2: #ec4899;
    --gradient-3: #8b5cf6;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
}

/* Background Animation */
.background-globes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.globe {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s infinite alternate;
}

.globe-1 {
    width: 50vw;
    height: 50vw;
    background: var(--gradient-1);
    top: -10%;
    left: -10%;
    animation-delay: 0s;
}

.globe-2 {
    width: 40vw;
    height: 40vw;
    background: var(--gradient-2);
    bottom: -10%;
    right: -10%;
    animation-delay: -5s;
}

.globe-3 {
    width: 30vw;
    height: 30vw;
    background: var(--gradient-3);
    top: 20%;
    left: 40%;
    animation-delay: -10s;
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(30px, 30px);
    }
}

/* Container */
.container {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 3rem;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    margin: 1rem;
    position: relative;
    z-index: 10;
}

/* Header */
.app-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.025em;
}

.accent {
    background: linear-gradient(135deg, var(--accent-color), var(--gradient-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    color: var(--secondary-text);
    font-size: 1.1rem;
    line-height: 1.5;
}

.app-header ol {
    text-align: left;
    margin-top: 1.5rem;
    padding-left: 2rem;
}

.app-header li {
    margin-bottom: 0.5rem;
    color: var(--secondary-text);
}

/* Form */
.converter-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
}

input[type="text"],
input[type="email"] {
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.875rem 1rem;
    color: var(--text-color);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.2s ease;
}

input[type="text"]:focus,
input[type="email"]:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.1);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* File Upload */
.file-upload-group {
    margin-bottom: 0.5rem;
}

.file-label {
    background: rgba(255, 255, 255, 0.03);
    border: 2px dashed var(--border-color);
    border-radius: 16px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.file-label:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--accent-color);
}

.file-label.dragover {
    background: rgba(56, 189, 248, 0.1);
    border-color: var(--accent-color);
    transform: scale(1.01);
}

.upload-icon {
    background: rgba(56, 189, 248, 0.1);
    color: var(--accent-color);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

input[type="file"] {
    display: none;
}

#fileName {
    color: var(--secondary-text);
    font-size: 0.95rem;
}

/* Button */
.btn-primary {
    background: linear-gradient(135deg, var(--accent-color), var(--gradient-1));
    color: white;
    border: none;
    border-radius: 12px;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px -5px rgba(56, 189, 248, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -5px rgba(56, 189, 248, 0.5);
    filter: brightness(1.1);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 640px) {
    .container {
        padding: 2rem;
        margin: 1rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2rem;
    }
}