body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #f0f2f5;
    color: #1a1a1a;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    margin: 0;
    padding-top: 50px;
}

#app {
    background-color: white;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 90%;
    max-width: 500px;
}

h1 {
    color: #17408b; /* NBA blue */
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: 700;
}

.creator-form {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    justify-content: center;
}

#team-name-input {
    padding: 12px 15px;
    border: 2px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    flex-grow: 1;
    transition: border-color 0.3s;
}

#team-name-input:focus {
    border-color: #17408b;
    outline: none;
}

#create-team-btn {
    padding: 12px 25px;
    background-color: #c9082a; /* NBA red */
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

#create-team-btn:hover {
    background-color: #a30620;
}

#team-display.hidden {
    display: none;
}

#display-team-name {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
}

#logo-container {
    margin-top: 20px;
    width: 256px;
    height: 256px;
    border: 3px dashed #ddd;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
    background-color: #f9f9f9;
    overflow: hidden;
    position: relative;
}

#logo-img {
    max-width: 100%;
    max-height: 100%;
    display: none; /* Hide until loaded */
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* Spinner for loading state */
#logo-container.loading::before {
    content: '';
    display: block;
    width: 40px;
    height: 40px;
    border: 5px solid #e0e0e0;
    border-top: 5px solid #17408b;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: absolute;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

