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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    background: linear-gradient(135deg, #0a1929 0%, #1a3a5a 50%, #0d2b42 100%);
    color: #e0f2fe;
}

/* Animated Water Background */
.water-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.wave {
    position: absolute;
    width: 200%;
    height: 200px;
    background: linear-gradient(90deg, 
        rgba(14, 165, 233, 0.1) 0%, 
        rgba(56, 189, 248, 0.15) 50%, 
        rgba(14, 165, 233, 0.1) 100%);
    border-radius: 50%;
    animation: wave-animation 15s infinite linear;
}

.wave:nth-child(1) {
    bottom: -50px;
    left: -50%;
    animation-duration: 20s;
    opacity: 0.6;
}

.wave:nth-child(2) {
    bottom: -80px;
    left: -50%;
    animation-duration: 25s;
    animation-direction: reverse;
    opacity: 0.4;
    background: linear-gradient(90deg, 
        rgba(59, 130, 246, 0.1) 0%, 
        rgba(96, 165, 250, 0.15) 50%, 
        rgba(59, 130, 246, 0.1) 100%);
}

.wave:nth-child(3) {
    bottom: -110px;
    left: -50%;
    animation-duration: 30s;
    opacity: 0.3;
    background: linear-gradient(90deg, 
        rgba(29, 78, 216, 0.1) 0%, 
        rgba(59, 130, 246, 0.12) 50%, 
        rgba(29, 78, 216, 0.1) 100%);
}

@keyframes wave-animation {
    0% {
        transform: translateX(0) translateY(0) rotate(0deg);
    }
    50% {
        transform: translateX(-25%) translateY(-20px) rotate(180deg);
    }
    100% {
        transform: translateX(-50%) translateY(0) rotate(360deg);
    }
}

/* Floating particles */
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(147, 197, 253, 0.6);
    border-radius: 50%;
    animation: float 20s infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(50px);
        opacity: 0;
    }
}

/* Main Container */
.container {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(147, 197, 253, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.header h1 {
    font-size: 2.5em;
    font-weight: 700;
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 50%, #0ea5e9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.header .beta-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 12px;
    font-size: 0.7em;
    color: #fca5a5;
    margin-left: 10px;
    font-weight: 600;
}

.header p {
    color: #cbd5e1;
    line-height: 1.6;
    margin: 10px 0;
}

.header a {
    color: #60a5fa;
    text-decoration: none;
    border-bottom: 1px solid rgba(96, 165, 250, 0.3);
    transition: all 0.3s ease;
}

.header a:hover {
    color: #93c5fd;
    border-bottom-color: rgba(147, 197, 253, 0.6);
}

/* Info Cards */
.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.info-card {
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(147, 197, 253, 0.15);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-2px);
    border-color: rgba(147, 197, 253, 0.3);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.2);
}

.info-card h3 {
    color: #60a5fa;
    font-size: 1.1em;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-card p {
    color: #cbd5e1;
    font-size: 0.9em;
    line-height: 1.5;
}

/* Form Container */
.form-container {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 35px;
    border: 1px solid rgba(147, 197, 253, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    margin-bottom: 30px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

label {
    color: #93c5fd;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95em;
    letter-spacing: 0.3px;
}

input, select {
    padding: 12px 16px;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(147, 197, 253, 0.2);
    border-radius: 10px;
    color: #e0f2fe;
    font-size: 1em;
    transition: all 0.3s ease;
    font-family: inherit;
}

input:focus, select:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
    background: rgba(30, 41, 59, 0.8);
}

input::placeholder {
    color: #64748b;
}

select option {
    background: #1e293b;
    color: #e0f2fe;
}

button[type="submit"] {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #3b82f6 0%, #0ea5e9 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    margin-top: 10px;
}

button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, #2563eb 0%, #0284c7 100%);
}

button[type="submit"]:active {
    transform: translateY(0);
}

/* Progress Container */
#progress-container {
    display: none;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
    padding: 20px;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 12px;
    border: 1px solid rgba(147, 197, 253, 0.2);
}

#upload-progress {
    flex-grow: 1;
    height: 30px;
    border-radius: 15px;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(147, 197, 253, 0.2);
    overflow: hidden;
}

#upload-progress::-webkit-progress-bar {
    background: rgba(30, 41, 59, 0.6);
}

#upload-progress::-webkit-progress-value {
    background: linear-gradient(90deg, #3b82f6 0%, #0ea5e9 100%);
    border-radius: 15px;
    transition: width 0.3s ease;
}

#progress-text {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 1.2em;
    color: #60a5fa;
    min-width: 60px;
    text-align: right;
}

/* Output Container */
.output-container {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(147, 197, 253, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.output-container h2 {
    color: #60a5fa;
    margin-bottom: 20px;
    font-size: 1.5em;
    display: flex;
    align-items: center;
    gap: 10px;
}

#output {
    background: rgba(0, 0, 0, 0.4);
    padding: 20px;
    border: 1px solid rgba(147, 197, 253, 0.15);
    border-radius: 12px;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    line-height: 1.6;
    color: #cbd5e1;
    max-height: 500px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(96, 165, 250, 0.3) transparent;
}

#output::-webkit-scrollbar {
    width: 8px;
}

#output::-webkit-scrollbar-track {
    background: transparent;
}

#output::-webkit-scrollbar-thumb {
    background: rgba(96, 165, 250, 0.3);
    border-radius: 4px;
}

#output::-webkit-scrollbar-thumb:hover {
    background: rgba(96, 165, 250, 0.5);
}

#output.error {
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.3);
}

/* Footer */
footer {
    margin-top: 40px;
    padding: 25px;
    text-align: center;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(147, 197, 253, 0.15);
}

footer p {
    color: #94a3b8;
    font-size: 0.9em;
}

footer a {
    color: #60a5fa;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #93c5fd;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
    }

    .header h1 {
        font-size: 2em;
    }

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

    .info-cards {
        grid-template-columns: 1fr;
    }
}

/* Loading animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 2s infinite;
}

