:root {
    --bg: #0f1117;
    --card: rgba(17, 19, 26, 0.65);
    --card-hover: rgba(22, 24, 33, 0.85);
    --text: #ffffff;
    --muted: #8b929e;
    --accent: #4effff;
    --accent-glow: rgba(78, 255, 255, 0.15);
    --border: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(255, 255, 255, 0.15);
    --shadow: 0 24px 50px rgba(0, 0, 0, 0.6);
    --input: rgba(12, 13, 18, 0.8);
    --success: #4ade80;
    --danger: #e74c3c;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-up {
    opacity: 0;
    animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 {
    animation-delay: 0.1s;
}

#toast-container,
.rimuru-app {
    position: relative;
    z-index: 1;
    width: 100%;
    background: var(--bg);
        color: var(--text);
    font-family: 'Poppins', system-ui, sans-serif;
    margin-bottom: 40px;
}
.rimuru-app::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg);
    z-index: -1;
    pointer-events: none; /* Ensures it doesn't block clicks */
}
body:not(.admin-bar) .rimuru-app {
    padding-top: 30px; /* Adjust this number to match your theme's nav bar height */
}
.rimuru-app * {
    box-sizing: border-box;
}

.btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 12px;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.btn-primary {
    background: var(--accent-glow);
    border-color: rgba(78, 255, 255, 0.3);
    color: var(--accent);
    width: 100%;
    padding: 18px;
    font-size: 1.1rem;
    margin-top: 16px;
}

.btn-primary:hover {
    background: var(--accent);
    color: #000;
    box-shadow: 0 0 25px var(--accent-glow);
    border-color: var(--accent);
}

.creation-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 100%;
    max-width: 900px; /* Moved max-width here */
    margin: 0 auto; /* Centers the content */
    padding: 0 20px;
}

.live-card {
    background: #11131a;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--border-highlight);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.live-banner {
    height: 200px;
    background-color: #1a1e2b;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    cursor: pointer;
    border-bottom: 1px solid var(--border-highlight);
    transition: all 0.3s;
    overflow: hidden;
    color: var(--muted);
}

.live-banner.has-image {
    background-size: cover;
    background-position: center;
    border-bottom: none;
}

.live-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #11131a 0%, transparent 100%);
    opacity: 0.8;
    transition: opacity 0.3s;
    z-index: 1;
}

.live-banner.has-image .banner-placeholder-content,
.live-banner.has-image::after {
    opacity: 0;
}

.live-banner:not(.has-image):hover {
    border-color: var(--accent);
    color: var(--accent);
    background-color: rgba(78, 255, 255, 0.02);
}

.live-banner:not(.has-image):hover .banner-placeholder-content p {
    color: var(--accent);
}

.live-content {
    padding: 0 40px 40px;
    position: relative;
}

.emblem-edit-wrapper {
    position: relative;
    margin-top: -60px;
    display: inline-block;
    z-index: 3;
    cursor: pointer;
    width: 120px;
    height: 120px;
    border-radius: 24px;
    border: 2px dashed var(--border-highlight);
    background-color: #11131a;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.emblem-edit-wrapper.has-image {
    border: none;
    border-radius: 24px;
}

.emblem-edit-wrapper.has-image .emblem-placeholder-content {
    display: none;
}

.live-emblem {
    display: none;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
    border: 4px solid #11131a;
}

.emblem-edit-wrapper.has-image .live-emblem {
    display: block;
}

.emblem-edit-wrapper:hover:not(.has-image) {
    transform: scale(1.05);
    border-color: var(--accent);
    color: var(--accent);
    background-color: rgba(78, 255, 255, 0.05);
}

.emblem-edit-wrapper:hover:not(.has-image) .emblem-placeholder-content p {
    color: var(--accent);
}

.banner-placeholder-content,
.emblem-placeholder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 2;
    text-align: center;
}

.banner-placeholder-content p,
.emblem-placeholder-content p {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--muted);
    transition: all 0.3s;
}

.emblem-placeholder-content p {
    font-size: 0.8rem;
}

.placeholder-camera-icon {
    background: rgba(17, 19, 26, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-highlight);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.live-banner:not(.has-image):hover .placeholder-camera-icon,
.emblem-edit-wrapper:not(.has-image):hover .placeholder-camera-icon {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
    transform: scale(1.15);
    box-shadow: 0 0 15px var(--accent-glow);
}

.upload-marker {
    position: absolute;
    background: rgba(17, 19, 26, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-highlight);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
    opacity: 0;
}

.live-banner.has-image:hover::after {
    opacity: 0.6;
}

.live-banner.has-image:hover .banner-marker {
    opacity: 1;
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
    transform: scale(1.15);
    box-shadow: 0 0 15px var(--accent-glow);
}

.emblem-edit-wrapper.has-image:hover .emblem-marker {
    opacity: 1;
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
    transform: scale(1.15);
    box-shadow: 0 0 15px var(--accent-glow);
}

.banner-marker {
    top: 16px;
    right: 16px;
}

.emblem-marker {
    bottom: -6px;
    right: -6px;
}

input[type="file"] {
    display: none;
}

.live-details {
    margin-top: 16px;
}

.live-name {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 4px;
    line-height: 1.2;
    word-break: break-word;
}

.live-motto {
    font-size: 0.95rem;
    color: var(--accent);
    font-weight: 500;
    margin: 0;
    font-style: italic;
    word-break: break-word;
}

.form-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 0 8px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-control {
    background: var(--input);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 20px;
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s;
    outline: none;
    width: 100%;
}

.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-glow);
    background: #000;
}

#toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.topbar {
    padding: 40px 16px 16px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand .title {
    margin: 0;
    font-weight: 800;
    font-size: 1.75rem;
    letter-spacing: 0.5px;
    color: var(--text);
    text-align: center;
    text-transform: uppercase;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}


@media (max-width: 768px) {
    .live-content {
        padding: 0 24px 24px;
    }
    .live-banner {
        height: 150px;
    }
    .live-name {
        font-size: 1.6rem;
    }
    .form-control {
        padding: 14px 18px;
    }
    .form-section {
        padding: 0;
    }
}