@import url('login-styles.css');

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

body {
    font-family: "Figtree", 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #333;
}

.container {
    width: 100%;
    max-width: 600px;
    text-align: center;
}

header {
    margin-bottom: 40px;
}

.title {
    font-size: 4rem;
    font-weight: 300;
    margin-bottom: 10px;
    color: #2c3e50;
    letter-spacing: -2px;
}

.subtitle {
    font-size: 0.95rem;
    color: #666;
}

.drop-zone {
    background: #c8e6c9;
    border: 3px dashed #81c784;
    border-radius: 12px;
    padding: 60px 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

.drop-zone:hover {
    background: #b2dfb4;
    border-color: #66bb6a;
}

.drop-zone.drag-over {
    background: #a5d6a7;
    border-color: #4caf50;
    transform: scale(1.02);
}

.drop-text {
    font-size: 1.2rem;
    color: #2e7d32;
    user-select: none;
}

.upload-progress {
    margin: 20px 0;
    display: none;  /* Hide by default */
}

.upload-progress.hidden {
    display: none;
}

.upload-progress:not(.hidden) {
    display: block;
}

.progress-bar {
    width: 100%;
    height: 30px;
    background: #e0e0e0;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4caf50, #81c784);
    width: 0%;
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.progress-text {
    color: #666;
    font-size: 0.9rem;
    min-height: 1.2em;  /* Prevent layout shift */
}

.upload-results {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: none;
}

.upload-results.hidden {
    display: none;
}

.upload-results:not(.hidden) {
    display: block;
}

.result-item {
    padding: 15px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

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

.result-filename {
    font-weight: 600;
    margin-bottom: 8px;
    color: #2c3e50;
}

.result-link {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.url-label {
    font-weight: 600;
    color: #555;
    font-size: 0.9rem;
}

.result-link input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.85rem;
}

.result-link button {
    padding: 8px 16px;
    background: #4caf50;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.2s;
}

.result-link button:hover {
    background: #45a049;
}

.result-link button.copied {
    background: #2196f3;
}

.info-box {
    background: rgba(187, 222, 251, 0.5);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    line-height: 1.6;
}

.info-box p {
    margin-bottom: 10px;
}

.info-box p:last-child {
    margin-bottom: 0;
}

.info-links {
    color: #1976d2;
}

.info-links a {
    color: #1976d2;
    text-decoration: none;
    transition: color 0.2s;
}

.info-links a:hover {
    color: #1565c0;
    text-decoration: underline;
}

.character-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.char-nav {
    background: white;
    border: 2px solid #ddd;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
}

.char-nav:hover {
    background: #f5f5f5;
    border-color: #999;
}

.char-name {
    font-size: 1rem;
    font-weight: 500;
    min-width: 100px;
}

.anime-character {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
    transition: transform 0.3s ease;
    pointer-events: none;
}

/* Hide character name and controls but keep the elements in DOM */
.char-name,
.character-controls {
    display: none;
}

.anime-character img {
    width: 200px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.anime-character.bounce {
    animation: bounce 0.5s ease;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.theme-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: 2px solid #ddd;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1000;
}

.theme-btn:hover {
    background: #f5f5f5;
    border-color: #999;
}

/* Dark theme styles */
body.dark-theme {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d3436 100%);
    color: #fff;
}

body.dark-theme .drop-zone {
    background: #2d3436;
    border-color: #485460;
}

body.dark-theme .drop-zone:hover {
    background: #222f3e;
    border-color: #576574;
}

body.dark-theme .theme-btn {
    background: #2d3436;
    border-color: #485460;
    color: #fff;
}

body.dark-theme .theme-btn:hover {
    background: #222f3e;
    border-color: #576574;
}

/* Responsive */
@media (max-width: 768px) {
    .title {
        font-size: 3rem;
    }

    .anime-character {
        bottom: 10px;
        right: 10px;
    }

    .anime-character img {
        width: 150px;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 2.5rem;
    }

    .drop-zone {
        padding: 40px 20px;
    }

    .anime-character {
        display: none;
    }
}
