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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #1a1a2e;
    color: #ffffff;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    background: linear-gradient(90deg, #5865F2, #EB459E);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.5rem;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media (max-width: 1000px) {
    .main-content {
        grid-template-columns: 1fr;
    }
}

/* Gradient Section */
.gradient-section {
    background: #16213e;
    border-radius: 12px;
    padding: 20px;
}

.gradient-preview {
    width: 100%;
    height: 200px;
    border-radius: 12px;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #5865F2, #EB459E);
}

.gradient-preview.animated {
    background-size: 400% 100%;
    animation: gradientMove 5s linear infinite;
}

@keyframes gradientMove {
    0% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.color-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.color-input {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.color-input label {
    min-width: 120px;
    font-weight: 500;
}

.color-input input[type="color"] {
    width: 50px;
    height: 40px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: none;
}

.color-input input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

.color-input input[type="color"]::-webkit-color-swatch {
    border: 2px solid #ffffff30;
    border-radius: 6px;
}

.hex-input {
    width: 100px;
    padding: 8px 12px;
    border: 2px solid #ffffff20;
    border-radius: 8px;
    background: #0f0f23;
    color: #fff;
    font-family: monospace;
    font-size: 14px;
    text-transform: uppercase;
}

.hex-input:focus {
    outline: none;
    border-color: #5865F2;
}

.copy-btn {
    padding: 8px 16px;
    background: #5865F2;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.copy-btn:hover {
    background: #4752c4;
    transform: translateY(-2px);
}

.copy-btn:disabled {
    background: #4a4a6a;
    cursor: not-allowed;
    transform: none;
}

.copy-btn.copied {
    background: #57F287;
}

.gradient-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.option {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.option label {
    font-weight: 500;
}

.option input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #0f0f23;
    cursor: pointer;
    -webkit-appearance: none;
}

.option input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #5865F2;
    cursor: pointer;
}

.checkbox-option label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox-option input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.css-output {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.css-output textarea {
    width: 100%;
    height: 120px;
    padding: 12px;
    border: 2px solid #ffffff20;
    border-radius: 8px;
    background: #0f0f23;
    color: #57F287;
    font-family: monospace;
    font-size: 13px;
    resize: vertical;
}

/* Discord Section */
.discord-section {
    background: #16213e;
    border-radius: 12px;
    padding: 20px;
}

.discord-section h2 {
    margin-bottom: 20px;
    color: #fff;
}

.discord-preview {
    display: flex;
    background: #36393f;
    border-radius: 8px;
    overflow: hidden;
    height: 350px;
}

.discord-sidebar {
    width: 72px;
    background: #202225;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.server-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    overflow: hidden;
    transition: border-radius 0.2s;
}

.server-icon:hover {
    border-radius: 12px;
}

.server-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.discord-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.discord-header {
    padding: 12px 16px;
    background: #36393f;
    border-bottom: 1px solid #202225;
    box-shadow: 0 1px 0 rgba(0,0,0,0.2);
}

.channel-name {
    font-weight: 600;
    color: #fff;
}

.discord-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    background: #36393f;
}

.message {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.message-content {
    flex: 1;
}

.username {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 4px;
}

.role-name {
    font-weight: 600;
    background: linear-gradient(90deg, #5865F2, #EB459E);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 6px rgba(88, 101, 242, 0.6)) drop-shadow(0 0 12px rgba(235, 69, 158, 0.4));
}

.role-name.animated {
    background-size: 400% 100%;
    animation: gradientMove 5s linear infinite;
}

.timestamp {
    font-size: 12px;
    color: #72767d;
}

.text {
    color: #dcddde;
    line-height: 1.4;
}

.discord-input {
    padding: 16px;
    background: #36393f;
}

.discord-input input {
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    background: #40444b;
    color: #dcddde;
    font-size: 14px;
}

.role-preview {
    margin-top: 20px;
    padding: 15px;
    background: #2f3136;
    border-radius: 8px;
}

.role-preview h3 {
    margin-bottom: 12px;
    font-size: 14px;
    color: #b9bbbe;
    text-transform: uppercase;
}

.role-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    background: #292b2f;
    border-radius: 4px;
    font-size: 12px;
    color: #dcddde;
}

.role-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(90deg, #5865F2, #EB459E);
}

.role-dot.animated {
    background-size: 400% 100%;
    animation: gradientMove 5s linear infinite;
}

.username-input {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.username-input input {
    padding: 10px 12px;
    border: 2px solid #ffffff20;
    border-radius: 8px;
    background: #0f0f23;
    color: #fff;
    font-size: 14px;
}

.username-input input:focus {
    outline: none;
    border-color: #5865F2;
}

/* Toast notification */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 24px;
    background: #57F287;
    color: #000;
    border-radius: 8px;
    font-weight: 500;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s;
    z-index: 1000;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}
