.form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 2em;
  padding-right: 2em;
  padding-bottom: 0.4em;
  background-color: #171717;
  border-radius: 25px;
  transition: .4s ease-in-out;
}

.form:hover {
  transform: scale(1.05);
  border: 1px solid black;
}

#heading {
  text-align: center;
  margin: 2em;
  color: rgb(255, 255, 255);
  font-size: 1.2em;
}

.field {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  border-radius: 25px;
  padding: 0.6em;
  border: none;
  outline: none;
  color: white;
  background-color: #171717;
  box-shadow: inset 2px 5px 10px rgb(5, 5, 5);
}

.input-icon {
  height: 1.3em;
  width: 1.3em;
  fill: white;
}

.input-field {
  background: none;
  border: none;
  outline: none;
  width: 100%;
  color: #d3d3d3;
}

.form .btn {
  display: flex;
  justify-content: center;
  flex-direction: row;
  margin-top: 2.5em;
}

.button1 {
  padding: 0.5em;
  padding-left: 1.1em;
  padding-right: 1.1em;
  border-radius: 5px;
  margin-right: 0.5em;
  border: none;
  outline: none;
  transition: .4s ease-in-out;
  background-color: #252525;
  color: white;
}

.button1:hover {
  background-color: black;
  color: white;
}

.button2 {
  padding: 0.5em;
  padding-left: 2.3em;
  padding-right: 2.3em;
  border-radius: 5px;
  border: none;
  outline: none;
  transition: .4s ease-in-out;
  background-color: #252525;
  color: white;
}

.button2:hover {
  background-color: black;
  color: white;
}

.button3 {
  margin-bottom: 3em;
  padding: 0.5em;
  border-radius: 5px;
  border: none;
  outline: none;
  transition: .4s ease-in-out;
  background-color: #252525;
  color: white;
}

.button3:hover {
  background-color: red;
  color: white;
}

/* Admin Tools Styling */
.sidebar-section {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #2d2d2d;
}

.sidebar-header {
  padding: 0.5rem 1rem;
  color: #888;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* License Generator Styling */
.card {
  background-color: #1e1e1e !important;
  border: 1px solid #2d2d2d !important;
  border-radius: 10px;
  margin-bottom: 1.5rem;
}

.card-header {
  background-color: #252525 !important;
  border-bottom: 1px solid #2d2d2d !important;
  padding: 1rem;
}

.card-header h2 {
  color: #fff;
  margin: 0;
  font-size: 1.5rem;
}

.card-body {
  padding: 1.5rem;
  color: #fff;
}

.form-label {
  color: #bbb;
  margin-bottom: 0.5rem;
}

.form-control {
  background-color: #2d2d2d !important;
  border: 1px solid #3d3d3d !important;
  color: #fff !important;
  border-radius: 5px;
}

.form-control:focus {
  background-color: #2d2d2d !important;
  border-color: #4d4d4d !important;
  color: #fff !important;
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.1) !important;
}

.form-select {
  background-color: #2d2d2d !important;
  border: 1px solid #3d3d3d !important;
  color: #fff !important;
  border-radius: 5px;
}

.form-select:focus {
  background-color: #2d2d2d !important;
  border-color: #4d4d4d !important;
  color: #fff !important;
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.1) !important;
}

.form-check-input {
  background-color: #2d2d2d !important;
  border: 1px solid #3d3d3d !important;
}

.form-check-input:checked {
  background-color: #0d6efd !important;
  border-color: #0d6efd !important;
}

.form-check-label {
  color: #bbb;
}

/* Table Styling for Manage Tools */
.table {
  color: #fff !important;
  border-color: #2d2d2d !important;
}

.table th {
  background-color: #252525 !important;
  border-color: #2d2d2d !important;
  color: #bbb;
}

.table td {
  background-color: #1e1e1e !important;
  border-color: #2d2d2d !important;
}

.table-hover tbody tr:hover {
  background-color: #252525 !important;
  color: #fff !important;
}

/* Button Styling */
.btn-primary {
  background-color: #0d6efd !important;
  border-color: #0d6efd !important;
  color: #fff !important;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #0b5ed7 !important;
  border-color: #0b5ed7 !important;
}

.btn-danger {
  background-color: #dc3545 !important;
  border-color: #dc3545 !important;
  color: #fff !important;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.btn-danger:hover {
  background-color: #bb2d3b !important;
  border-color: #bb2d3b !important;
}

/* Alert Styling */
.alert {
  background-color: #252525 !important;
  border: 1px solid #2d2d2d !important;
  color: #fff !important;
  border-radius: 5px;
}

.alert-success {
  background-color: #198754 !important;
  border-color: #198754 !important;
}

.alert code {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  color: #fff;
}

/* Modal Styling */
.modal-content {
  background-color: #1e1e1e !important;
  border: 1px solid #2d2d2d !important;
  color: #fff !important;
}

.modal-header {
  background-color: #252525 !important;
  border-bottom: 1px solid #2d2d2d !important;
}

.modal-footer {
  background-color: #252525 !important;
  border-top: 1px solid #2d2d2d !important;
}

.close {
  color: #fff !important;
}

/* Badge Styling */
.badge {
  padding: 0.5em 0.75em;
  border-radius: 3px;
  font-weight: 500;
}

.bg-success {
  background-color: #198754 !important;
}

.bg-secondary {
  background-color: #6c757d !important;
}

/* Add body styling to center the form */
body {
  background-color: #1a1a1a;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
} 

/* Joiner Page Styling */
.stat-card {
    background-color: #2d2d2d;
    border: 1px solid #3d3d3d;
    border-radius: 10px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.stat-card h3 {
    color: #bbb;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card p {
    color: #fff;
    font-size: 2rem;
    font-weight: bold;
    margin: 0;
}

/* Stat Card Colors */
.stat-card.bg-green-100 {
    background-color: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.2);
}

.stat-card.bg-yellow-100 {
    background-color: rgba(234, 179, 8, 0.1);
    border-color: rgba(234, 179, 8, 0.2);
}

.stat-card.bg-red-100 {
    background-color: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
}

.stat-card.bg-orange-100 {
    background-color: rgba(249, 115, 22, 0.1);
    border-color: rgba(249, 115, 22, 0.2);
}

.stat-card.bg-purple-100 {
    background-color: rgba(168, 85, 247, 0.1);
    border-color: rgba(168, 85, 247, 0.2);
}

/* Dark Mode Colors */
.dark .stat-card.bg-green-100 {
    background-color: rgba(34, 197, 94, 0.2);
}

.dark .stat-card.bg-yellow-100 {
    background-color: rgba(234, 179, 8, 0.2);
}

.dark .stat-card.bg-red-100 {
    background-color: rgba(239, 68, 68, 0.2);
}

.dark .stat-card.bg-orange-100 {
    background-color: rgba(249, 115, 22, 0.2);
}

.dark .stat-card.bg-purple-100 {
    background-color: rgba(168, 85, 247, 0.2);
}

/* Timer Styling */
#timer {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 2rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

/* Log Section */
#log {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #bbb;
    margin: 0;
    padding: 0;
}

/* Invite Input Styling */
#invite-code {
    background-color: #2d2d2d;
    border: 1px solid #3d3d3d;
    color: #fff;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

#invite-code:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.25);
    outline: none;
}

#invite-code::placeholder {
    color: #666;
}

/* Control Buttons */
.joiner-btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    min-width: 120px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.joiner-btn i {
    font-size: 1rem;
}

.joiner-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
} 

/* Webhook Editor Styles */
.webhook-editor {
    --background-primary: #313338;
    --background-secondary: #2B2D31;
    --background-secondary-alt: #232428;
    --background-tertiary: #1E1F22;
    --text-normal: #dbdee1;
    --text-muted: #949BA4;
    --header-primary: #F2F3F5;
    --interactive-normal: #B5BAC1;
    --interactive-hover: #FFFFFF;
    --interactive-active: #FFFFFF;
    --interactive-muted: #4F545C;
    --background-accent: #5865F2;
    --background-modifier-accent: rgba(79, 84, 92, 0.48);
    height: calc(100vh - 64px);
    margin: -1rem;
    padding: 1rem;
    background-color: var(--background-tertiary);
    font-family: 'gg sans', 'Noto Sans', 'Helvetica Neue', Arial, sans-serif;
}

/* Editor Layout */
.webhook-editor .editor-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1rem;
    height: 100%;
    overflow-y: auto;
}

.webhook-editor .editor-main {
    grid-column: span 8;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
}

.webhook-editor .editor-sidebar {
    grid-column: span 4;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
}

/* Editor Components */
.webhook-editor .component {
    background: var(--background-secondary);
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid var(--background-modifier-accent);
}

.webhook-editor .component-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--background-modifier-accent);
}

.webhook-editor .component-title {
    color: var(--header-primary);
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

/* Form Controls */
.webhook-editor .form-group {
    margin-bottom: 1rem;
}

.webhook-editor .form-label {
    display: block;
    color: var(--text-normal);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.webhook-editor .form-control {
    width: 100%;
    background: var(--background-tertiary);
    border: 1px solid transparent;
    border-radius: 4px;
    color: var(--text-normal);
    font-family: inherit;
    font-size: 0.875rem;
    padding: 0.5rem;
    transition: border-color 0.2s ease;
}

.webhook-editor .form-control:hover {
    border-color: var(--background-modifier-accent);
}

.webhook-editor .form-control:focus {
    outline: none;
    border-color: var(--background-accent);
}

.webhook-editor .form-control::placeholder {
    color: var(--text-muted);
}

.webhook-editor .form-control-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.8125rem;
}

/* Buttons */
.webhook-editor .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.webhook-editor .btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.8125rem;
}

.webhook-editor .btn-primary {
    background: var(--background-accent);
    color: #fff;
}

.webhook-editor .btn-primary:hover {
    background: #4752C4;
}

.webhook-editor .btn-secondary {
    background: var(--background-secondary-alt);
    color: var(--interactive-normal);
}

.webhook-editor .btn-secondary:hover {
    background: var(--background-modifier-accent);
    color: var(--interactive-hover);
}

.webhook-editor .btn-danger {
    background: #ED4245;
    color: #fff;
}

.webhook-editor .btn-danger:hover {
    background: #C03537;
}

.webhook-editor .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Message Preview */
.webhook-editor .message-preview {
    background: var(--background-primary);
    border-radius: 4px;
    padding: 1rem;
    color: var(--text-normal);
    font-size: 0.9375rem;
    line-height: 1.375;
}

.webhook-editor .message-content {
    white-space: pre-wrap;
    word-wrap: break-word;
    margin-bottom: 0.5rem;
}

/* Embeds */
.webhook-editor .embed {
    max-width: 520px;
    margin: 0.5rem 0;
    background: var(--background-secondary);
    border-radius: 4px;
    border-left: 4px solid;
}

.webhook-editor .embed-inner {
    padding: 0.75rem 1rem;
}

.webhook-editor .embed-author {
    color: var(--text-normal);
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.webhook-editor .embed-author-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.webhook-editor .embed-author a {
    color: var(--text-normal);
    text-decoration: none;
}

.webhook-editor .embed-author a:hover {
    text-decoration: underline;
}

.webhook-editor .embed-title {
    color: var(--header-primary);
    font-size: 1rem;
    font-weight: 600;
    margin: 0.25rem 0;
    text-decoration: none;
}

.webhook-editor .embed-title:hover {
    text-decoration: underline;
}

.webhook-editor .embed-description {
    color: var(--text-normal);
    font-size: 0.875rem;
    line-height: 1.375;
    white-space: pre-wrap;
    margin: 0.25rem 0;
}

.webhook-editor .embed-fields {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.webhook-editor .embed-field {
    font-size: 0.875rem;
    min-width: 0;
}

.webhook-editor .embed-field.inline {
    grid-column: span 1;
}

.webhook-editor .embed-field:not(.inline) {
    grid-column: 1 / -1;
}

.webhook-editor .embed-field-name {
    color: var(--header-primary);
    font-weight: 600;
    margin-bottom: 0.125rem;
}

.webhook-editor .embed-field-value {
    color: var(--text-normal);
    line-height: 1.375;
}

.webhook-editor .embed-image img,
.webhook-editor .embed-thumbnail img {
    max-width: 100%;
    border-radius: 4px;
}

.webhook-editor .embed-image {
    margin: 0.5rem 0;
}

.webhook-editor .embed-thumbnail {
    float: right;
    margin: 0 0 0.5rem 1rem;
    max-width: 80px;
}

.webhook-editor .embed-footer {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.webhook-editor .embed-footer-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
}

.webhook-editor .embed-footer-separator {
    margin: 0 0.25rem;
}

/* Tabs */
.webhook-editor .tabs {
    display: flex;
    border-bottom: 1px solid var(--background-modifier-accent);
    margin-bottom: 1rem;
}

.webhook-editor .tab {
    padding: 0.5rem 1rem;
    color: var(--interactive-normal);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all 0.2s ease;
}

.webhook-editor .tab:hover {
    color: var(--interactive-hover);
}

.webhook-editor .tab.active {
    color: var(--interactive-active);
    border-bottom-color: var(--background-accent);
}

/* JSON Editor */
.webhook-editor .json-editor {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.875rem;
    line-height: 1.5;
    tab-size: 2;
    height: 400px;
}

/* Character Counter */
.webhook-editor .text-muted.small {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.webhook-editor .text-muted.small.text-danger {
    color: #ED4245;
}

/* Form Check */
.webhook-editor .form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    user-select: none;
}

.webhook-editor .form-check-input {
    width: 1rem;
    height: 1rem;
    margin: 0;
    appearance: none;
    background: var(--background-tertiary);
    border: 1px solid var(--interactive-muted);
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.webhook-editor .form-check-input:checked {
    background: var(--background-accent);
    border-color: var(--background-accent);
}

.webhook-editor .form-check-input:checked::after {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    margin: 4px;
    background: #fff;
    border-radius: 1px;
}

.webhook-editor .form-check-label {
    color: var(--text-normal);
    font-size: 0.875rem;
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .webhook-editor .editor-grid {
        grid-template-columns: 1fr;
    }

    .webhook-editor .editor-main,
    .webhook-editor .editor-sidebar {
        grid-column: span 12;
    }

    .webhook-editor .embed-fields {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .webhook-editor {
        height: auto;
        margin: 0;
        padding: 0.5rem;
    }

    .webhook-editor .embed-fields {
        grid-template-columns: 1fr;
    }
} 