:root {
    --brand-primary: #00B2E8;
    --brand-secondary: #00ee9e;
    --brand-dark: #111827;
    --brand-light: #F9FAFB;
    --brand-gray: #4B5563;
}

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

body {
    background-color: var(--brand-dark);
    color: var(--brand-light);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
}

.app {
    min-height: 100vh;
    position: relative;
}

.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom right, var(--brand-dark), var(--brand-dark), #1f2937);
    opacity: 0.8;
    z-index: 0;
}

#network-canvas {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.content {
    position: relative;
    z-index: 10;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header Styles */
header {
    padding: 1.5rem 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    background: linear-gradient(to right, var(--brand-primary), var(--brand-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-button {
    display: none;
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 0.5rem;
    background-color: var(--brand-primary);
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.nav-button:hover {
    opacity: 0.9;
}

.built-by {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.built-by span {
    font-size: 0.875rem;
    color: #9ca3af;
}

.header-logo {
    height: 24px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.header-logo:hover {
    opacity: 1;
}

.built-by {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.built-by span {
    font-size: 0.875rem;
    color: #9ca3af;
}

.header-logo {
    height: 24px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.header-logo:hover {
    opacity: 1;
}

@media (min-width: 768px) {
    .nav-button {
        display: inline-block;
    }
}

/* Main Content */
main {
    padding: 4rem 0;
}

@media (min-width: 768px) {
    main {
        padding: 6rem 0;
    }
}

.hero {
    text-align: center;
    animation: fadeInUp 0.5s ease-out forwards;
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 4rem;
    }
}

.hero-title .highlight {
    background: linear-gradient(to right, var(--brand-primary), var(--brand-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-description {
    max-width: 48rem;
    margin: 0 auto;
    font-size: 1.125rem;
    color: #d1d5db;
}

@media (min-width: 768px) {
    .hero-description {
        font-size: 1.25rem;
    }
}

/* Form Section */
.form-section {
    margin-top: 4rem;
}

@media (min-width: 768px) {
    .form-section {
        margin-top: 6rem;
    }
}

.form-card {
    max-width: 48rem;
    margin: 0 auto;
    background: rgba(31, 41, 55, 0.5);
    backdrop-filter: blur(4px);
    border: 1px solid #374151;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25),
                0 10px 15px -3px rgba(0, 178, 232, 0.1),
                0 4px 6px -2px rgba(0, 178, 232, 0.05);
    animation: fadeInUp 0.5s ease-out forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

@media (min-width: 768px) {
    .form-card {
        padding: 3rem;
    }
}

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

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
    color: #d1d5db;
}

.form-input {
    width: 100%;
    background: rgba(17, 24, 39, 0.5);
    border: 1px solid #4b5563;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    color: var(--brand-light);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 2px rgba(0, 178, 232, 0.5);
}

.form-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.error-message {
    color: #f87171;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* File Upload */
.file-upload {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    border: 2px dashed #4b5563;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
}

.file-upload:hover {
    border-color: #6b7280;
}

.file-upload.drag-over {
    border-color: var(--brand-primary);
    background: rgba(0, 178, 232, 0.1);
}

.file-upload.disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.upload-icon {
    width: 3rem;
    height: 3rem;
    margin-bottom: 1rem;
    color: #6b7280;
}

.upload-text {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.upload-text .highlight {
    color: var(--brand-secondary);
}

.upload-subtext {
    font-size: 0.75rem;
    color: #6b7280;
}

/* File List */
.file-list {
    margin-top: 1.5rem;
}

.file-list h4 {
    font-size: 0.875rem;
    font-weight: 500;
    color: #d1d5db;
    margin-bottom: 0.75rem;
}

.file-item {
    position: relative;
    background: rgba(17, 24, 39, 0.7);
    padding: 0.75rem;
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.file-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(to right, var(--brand-primary), var(--brand-secondary));
    opacity: 0.2;
    transition: width 0.3s ease-linear;
}

.file-info {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.file-details {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    flex: 1;
}

.file-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--brand-secondary);
    flex-shrink: 0;
}

.file-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #d1d5db;
    font-size: 0.875rem;
}

.file-remove {
    color: #6b7280;
    cursor: pointer;
    transition: color 0.3s ease;
    background: none;
    border: none;
    padding: 0.25rem;
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-remove:hover {
    color: #f87171;
}

.file-progress-text {
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    color: #9ca3af;
    flex-shrink: 0;
}

/* Submit Button */
.submit-button {
    width: 100%;
    padding: 1rem 1.5rem;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    border-radius: 0.5rem;
    background: linear-gradient(to right, var(--brand-primary), var(--brand-secondary));
    color: white;
    cursor: pointer;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.submit-button:hover {
    opacity: 0.9;
}

.submit-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.button-spinner {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 0.75rem;
    margin-left: -0.25rem;
}

/* Success Message */
.success-card {
    max-width: 48rem;
    margin: 0 auto;
    background: rgba(31, 41, 55, 0.8);
    border: 1px solid var(--brand-primary);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    animation: fadeInUp 0.5s ease-out forwards;
}

@media (min-width: 768px) {
    .success-card {
        padding: 3rem;
    }
}

.success-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #4ade80;
    margin-bottom: 1rem;
}

.success-text {
    color: #d1d5db;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.success-button {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border: none;
    border-radius: 0.5rem;
    background-color: var(--brand-primary);
    color: white;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.success-button:hover {
    opacity: 0.9;
}

/* Footer */
footer {
    padding: 2rem 0;
    margin-top: 4rem;
    border-top: 1px solid #1f2937;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    color: #6b7280;
}

.built-by {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.built-by span {
    font-size: 0.875rem;
    color: #9ca3af;
}

.footer-logo {
    height: 24px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-logo:hover {
    opacity: 1;
}

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

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

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

fieldset {
    border: none;
    padding: 0;
}
