/* EcoStudios Dashboard Styles */

/* Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #121212;
    color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
}

/* Container */
.container {
    background-color: #1e1e1e;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(82, 184, 246, 0.2);
    width: 400px;
    border: 1px solid #333;
}

/* Typography */
h1,
h2 {
    text-align: center;
    color: #52b8f6;
}

h3 {
    color: #52b8f6;
    margin-top: 0;
}

/* Form Elements */
input[type="text"],
input[type="file"] {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #52b8f6;
    border-radius: 4px;
    background-color: #2d2d2d;
    color: white;
    box-sizing: border-box;
    outline: none;
}

input[type="text"]:focus {
    box-shadow: 0 0 5px rgba(82, 184, 246, 0.5);
}

/* Buttons */
button {
    width: 100%;
    padding: 10px;
    background-color: #52b8f6;
    color: #121212;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
    font-weight: bold;
    transition: background 0.3s;
}

button:hover {
    background-color: #3aa0e0;
}

button:disabled {
    background-color: #555;
    cursor: not-allowed;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* World List */
#worldList {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

#worldList li {
    background: #2d2d2d;
    margin: 5px 0;
    padding: 10px;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 3px solid #52b8f6;
}

/* Action Button */
.action-btn {
    background: #2d2d2d;
    border: 1px solid #52b8f6;
    color: #52b8f6;
    padding: 5px 10px;
    font-size: 12px;
    width: auto;
    margin: 0 0 0 5px;
}

.action-btn:hover {
    background: #52b8f6;
    color: #121212;
}

/* Upload Section */
.upload-section {
    border-top: 1px solid #333;
    margin-top: 20px;
    padding-top: 10px;
}

/* Logo */
.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.logo-icon {
    font-size: 48px;
    filter: drop-shadow(0 0 10px rgba(82, 184, 246, 0.5));
}

.logo-text {
    font-size: 32px;
    margin: 0;
    background: linear-gradient(135deg, #52b8f6, #9AE8FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
}

.logo-img {
    height: 80px;
    width: auto;
    filter: drop-shadow(0 0 15px rgba(82, 184, 246, 0.4));
}

/* User Header */
.user-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: #2d2d2d;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 3px solid #52b8f6;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 4px;
    border: 2px solid #52b8f6;
    image-rendering: pixelated;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: bold;
    color: #52b8f6;
    font-size: 16px;
}

.user-uuid {
    font-size: 11px;
    color: #666;
    font-family: monospace;
}

/* Logout Button */
.logout-btn {
    background: #f44336;
    width: auto;
    padding: 8px 16px;
    font-size: 13px;
    margin: 0;
}

.logout-btn:hover {
    background: #d32f2f;
}

/* Guide Section */
.guide-section {
    margin-top: 10px;
}

.guide-step {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 18px;
    padding: 12px;
    background: #2d2d2d;
    border-radius: 8px;
    border-left: 3px solid #52b8f6;
}

.step-number {
    min-width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #52b8f6, #9AE8FF);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #121212;
    font-size: 16px;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content strong {
    color: #f0f0f0;
    display: block;
    margin-bottom: 4px;
}

.step-content p {
    margin: 0;
    color: #aaa;
    font-size: 14px;
}

.step-content code {
    background: #1a1a2e;
    padding: 2px 8px;
    border-radius: 4px;
    color: #52b8f6;
    font-family: 'Consolas', monospace;
    border: 1px solid #333;
}

/* Error Message */
.error-message {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid #f44336;
    color: #ff5252;
    padding: 12px;
    border-radius: 4px;
    margin-top: 15px;
    text-align: center;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 640px) {
    .container {
        width: 100% !important;
        padding: 1rem;
    }

    .user-header {
        flex-direction: column;
        gap: 15px;
    }

    .logout-btn {
        width: 100%;
    }
}

/* Upload Overlay */
.upload-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.upload-modal {
    background: #1e1e1e;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(82, 184, 246, 0.3);
    border: 1px solid #52b8f6;
    min-width: 350px;
}

.upload-modal h3 {
    margin: 20px 0 25px;
    color: #52b8f6;
    font-size: 18px;
}

.upload-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #333;
    border-top: 4px solid #52b8f6;
    border-radius: 50%;
    margin: 0 auto;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.progress-container {
    width: 100%;
    height: 12px;
    background: #333;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #52b8f6, #9AE8FF);
    border-radius: 6px;
    transition: width 0.3s ease;
}

.upload-modal p {
    margin: 0;
    color: #f0f0f0;
    font-size: 24px;
    font-weight: bold;
}

.progress-size {
    margin-top: 10px !important;
    font-size: 14px !important;
    color: #888 !important;
    font-weight: normal !important;
}