:root {
    --bg-color: #0f0c29;
    --text-color: #ffffff;
    --primary: #6e48aa;
    --secondary: #9d50bb;
    --accent: #00d2ff;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(-45deg, #0f0c29, #302b63, #24243e);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    font-family: var(--font-main);
    color: var(--text-color);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Background Decorations */
.background-globes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.globe {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.globe-1 {
    width: 300px;
    height: 300px;
    background: var(--primary);
    top: -50px;
    left: -50px;
    animation: float 10s infinite alternate;
}

.globe-2 {
    width: 400px;
    height: 400px;
    background: var(--secondary);
    bottom: -100px;
    right: -100px;
    animation: float 12s infinite alternate-reverse;
}

.globe-3 {
    width: 200px;
    height: 200px;
    background: var(--accent);
    top: 40%;
    left: 60%;
    opacity: 0.2;
    animation: pulse 8s infinite;
}

@keyframes float {
    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(30px, 40px);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.2;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.3;
    }
}

/* Container */
.container {
    position: relative;
    z-index: 1;
    width: 90%;
    max-width: 800px;
    padding: 2rem;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 3rem;
    animation: slideDown 0.8s ease-out;
}

header .logo {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

header .logo i {
    color: var(--accent);
    filter: drop-shadow(0 0 10px var(--accent));
}

header h1 {
    font-weight: 700;
    letter-spacing: 1px;
}

.highlight {
    background: -webkit-linear-gradient(45deg, var(--accent), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-weight: 300;
    opacity: 0.8;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* Top Nav */
.top-nav {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-bottom: 2rem;
}

.nav-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.nav-link:hover {
    color: var(--accent);
}

.nav-link.active {
    color: var(--accent);
    border-bottom: 2px solid var(--accent);
}

/* Glass Panels */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-panel:hover {
    box-shadow: 0 10px 40px 0 rgba(0, 0, 0, 0.5);
}

.input-panel {
    animation: fadeIn 1s ease-out;
}

.preview-panel {
    border-left: 4px solid #5865F2;
    /* Discord Color */
}

/* Form Elements */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--accent);
    font-size: 0.9rem;
}

label i {
    margin-right: 8px;
}

input[type="text"],
input[type="password"],
input[type="email"],
select,
textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem;
    color: #fff;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: all 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.2);
    background: rgba(0, 0, 0, 0.5);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* Buttons */
button,
.btn {
    cursor: pointer;
    font-family: var(--font-main);
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    display: inline-block;
}

.primary-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 12px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    text-align: center;
    text-decoration: none;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(157, 80, 187, 0.4);
}

.primary-btn:active {
    transform: translateY(0);
}

.secondary-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.success-btn {
    background: #43b581;
    /* Discord Green */
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    flex-grow: 1;
}

.success-btn:hover {
    background: #3ca374;
    box-shadow: 0 4px 15px rgba(67, 181, 129, 0.3);
}

.danger-btn {
    background: #e74c3c;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
}

.danger-btn:hover {
    background: #c0392b;
}

.icon-btn {
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    padding: 5px;
    font-size: 1.2rem;
}

.icon-btn:hover {
    color: #fff;
}

/* Preview Area */
.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 10px;
}

.preview-content {
    background: #36393f;
    /* Discord Dark Theme */
    padding: 1rem;
    border-radius: 8px;
    font-family: 'Whitney', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.5;
    white-space: pre-wrap;
    margin-bottom: 1.5rem;
    min-height: 400px;
    /* Increased from max-height */
    font-size: 1.05rem;
    /* Slightly larger text */
    resize: vertical;
}

.input-panel.dimmed {
    opacity: 0.5;
    pointer-events: none;
    filter: grayscale(0.5);
    transform: scale(0.98);
}

.action-bar {
    display: flex;
    gap: 1rem;
}

/* Animations */
.hidden {
    display: none !important;
}

@keyframes slideDown {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loader */
.loader {
    width: 20px;
    height: 20px;
    border: 3px solid #fff;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    animation: rotation 1s linear infinite;
    vertical-align: middle;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Toast */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(67, 181, 129, 0.9);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease-out;
    z-index: 100;
}

@keyframes slideUp {
    from {
        bottom: -50px;
        opacity: 0;
    }

    to {
        bottom: 30px;
        opacity: 1;
    }
}

/* Table */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

th,
td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

th {
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
}

tr:hover td {
    background: rgba(255, 255, 255, 0.05);
}