:root {
    --primary: #00a2ff;
    --primary-glow: rgba(0, 162, 255, 0.4);
    --background: #1e1e2e;
    --card: #2a2a3a;
    --text: #e0e0e0;
    --border: #3a3a4a;
    --success: #00c853;
}

.theme-light {
    --primary: #0080ff;
    --primary-glow: rgba(0, 128, 255, 0.3);
    --background: #f5f5f5;
    --card: #ffffff;
    --text: #333333;
    --border: #dddddd;
}

.theme-amoled {
    --primary: #00a2ff;
    --primary-glow: rgba(0, 162, 255, 0.5);
    --background: #000000;
    --card: #0a0a0a;
    --text: #e0e0e0;
    --border: #1a1a1a;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background-color: var(--background);
    color: var(--text);
    margin: 0;
    padding: 20px;
    line-height: 1.6;
    transition: all 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.card {
    background-color: var(--card);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

h1, h2, h3 {
    color: var(--text);
    margin-top: 0;
}

input, textarea, select {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background-color: var(--card);
    color: var(--text);
    font-family: inherit;
    transition: all 0.3s ease;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-glow);
}

textarea {
    min-height: 100px;
    resize: vertical;
}

button {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 10px var(--primary-glow);
    margin-right: 10px;
}

button:hover {
    background-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
    transform: translateY(-2px);
}

button:active {
    transform: translateY(0);
}

button::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0) 37%,
        rgba(255, 255, 255, 0.8) 45%,
        rgba(255, 255, 255, 0.0) 50%
    );
    transform: rotate(30deg);
    transition: all 0.3s ease;
    opacity: 0;
}

button:hover::after {
    animation: shimmer 1.5s infinite;
    opacity: 1;
}

@keyframes shimmer {
    0% { transform: rotate(30deg) translate(-30%, -30%); }
    100% { transform: rotate(30deg) translate(30%, 30%); }
}

.toggle-container {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    margin-right: 10px;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border);
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary);
}

input:checked + .slider:before {
    transform: translateX(24px);
}

.embed-builder {
    border-left: 3px solid var(--primary);
    padding-left: 15px;
    margin-bottom: 15px;
}

.embed-field {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}

.add-btn {
    background-color: var(--border);
    margin-bottom: 15px;
}

.add-btn:hover {
    background-color: var(--primary);
}

.preview-card {
    position: relative;
    min-height: 200px;
}

.embed-preview {
    background-color: var(--card);
    border-left: 4px solid var(--primary);
    padding: 10px 15px;
    border-radius: 0 6px 6px 0;
    margin-bottom: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.embed-title {
    color: var(--text);
    font-weight: bold;
    margin-bottom: 5px;
}

.embed-description {
    margin-bottom: 10px;
    color: var(--text);
}

.embed-field-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 8px;
}

.embed-field-name {
    font-weight: bold;
}

.embed-footer {
    font-size: 0.8em;
    color: #A3A6AA;
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.embed-footer img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 5px;
}

.hidden {
    display: none;
}

.tab-container {
    display: flex;
    margin-bottom: 15px;
    border-radius: 6px;
    overflow: hidden;
}

.tab {
    padding: 10px 20px;
    background-color: var(--card);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: var(--text);
}

.tab:hover {
    background-color: var(--border);
}

.tab.active {
    background-color: var(--primary);
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.color-picker {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.color-input {
    flex: 1;
}

.color-preview {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    margin-left: 10px;
    border: 1px solid var(--border);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

.message-preview {
    background-color: var(--card);
    padding: 15px;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.message-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
}

.message-username {
    font-weight: bold;
    color: var(--text);
}

.message-content {
    margin-left: 50px;
    color: var(--text);
}

.button-group {
    display: flex;
    margin-top: 20px;
}

.success-message {
    color: var(--success);
    margin-top: 10px;
    font-weight: bold;
    display: none;
}

footer a {
  color: #66ccff;
  text-decoration: none;
}

footer a:hover {
  color: #99ddff;
  text-decoration: underline;
}
