.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #b9bbbe;
    font-size: 0.9rem;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #202225;
    border-radius: 4px;
    background: #40444b;
    color: #dcddde;
    font-size: 0.9rem;
    font-family: 'Whitney', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    transition: border-color 0.2s ease;
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: #5865f2;
    box-shadow: 0 0 0 2px rgba(88, 101, 242, 0.3);
}

.input-group input::placeholder,
.input-group textarea::placeholder {
    color: #72767d;
}

.input-group textarea {
    resize: vertical;
    min-height: 80px;
}

.input-group small {
    color: #72767d;
    font-size: 0.8rem;
    margin-top: 5px;
    display: block;
}

.input-with-button {
    display: flex;
    gap: 10px;
    align-items: center;
}

.input-with-button input {
    flex: 1;
    margin-bottom: 0;
}

.input-with-button .btn {
    flex-shrink: 0;
    margin-bottom: 0;
    white-space: nowrap;
}

/* Header controls styling */
.header-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-controls .btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Whitney', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    box-sizing: border-box;
    margin: 0;
}

.header-controls .btn:hover {
    transform: translateY(-1px);
}

.header-controls .btn:active {
    transform: translateY(0);
}

/* Webhook Info */
.webhook-info {
    display: flex;
    align-items: center;
    background: #40444b;
    padding: 15px;
    border-radius: 6px;
    margin-top: 15px;
    border: 1px solid #202225;
}

.webhook-avatar {
    margin-right: 15px;
}

.webhook-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #5865f2;
}

.webhook-details h3 {
    margin: 0;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
}

.webhook-details p {
    margin: 5px 0 0 0;
    color: #b9bbbe;
    font-size: 0.85rem;
}

/* Embed Editor */
.embed-section {
    border-top: 1px solid #202225;
    padding-top: 15px;
    margin-top: 15px;
}

.embed-editor {
    background: #40444b;
    padding: 15px;
    border-radius: 6px;
    margin-top: 10px;
    border: 1px solid #202225;
}

.advanced-section {
    border-top: 1px solid #202225;
    padding-top: 15px;
    margin-top: 15px;
}

/* Preview Section */
.preview-content {
    min-height: 400px;
    padding: 15px;
    background: #36393f;
    border-radius: 6px;
    border: 1px solid #202225;
    font-family: 'Whitney', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.5;
    overflow-y: auto;
}

.preview-content .placeholder {
    color: #72767d;
    font-style: italic;
    text-align: center;
    margin-top: 150px;
}

.preview-info {
    color: #b9bbbe;
    font-size: 0.85rem;
}

/* Custom scrollbar for input fields */
.input-group input::-webkit-scrollbar,
.input-group textarea::-webkit-scrollbar,
.preview-content::-webkit-scrollbar {
    width: 8px;
}

.input-group input::-webkit-scrollbar-track,
.input-group textarea::-webkit-scrollbar-track,
.preview-content::-webkit-scrollbar-track {
    background: #2f3136;
    border-radius: 4px;
}

.input-group input::-webkit-scrollbar-thumb,
.input-group textarea::-webkit-scrollbar-thumb,
.preview-content::-webkit-scrollbar-thumb {
    background: #4f545c;
    border-radius: 4px;
    border: 1px solid #2f3136;
}

.input-group input::-webkit-scrollbar-thumb:hover,
.input-group textarea::-webkit-scrollbar-thumb:hover,
.preview-content::-webkit-scrollbar-thumb:hover {
    background: #5d6269;
}

.input-group input::-webkit-scrollbar-thumb:active,
.input-group textarea::-webkit-scrollbar-thumb:active,
.preview-content::-webkit-scrollbar-thumb:active {
    background: #6a6f77;
}

/* Firefox scrollbar */
.input-group input,
.input-group textarea,
.preview-content {
    scrollbar-width: thin;
    scrollbar-color: #4f545c #2f3136;
}

/* Discord-like message preview styling */
.discord-message {
    background: #36393f;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    border-left: 3px solid #5865f2;
}

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

.discord-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    border: 2px solid #5865f2;
}

.discord-username {
    font-weight: 600;
    color: #ffffff;
    margin-right: 10px;
}

.discord-timestamp {
    color: #72767d;
    font-size: 0.8rem;
}

.discord-content {
    color: #dcddde;
    line-height: 1.4;
    margin-bottom: 10px;
    white-space: pre-wrap;
}

.discord-content code {
    background: #2f3136;
    color: #faa61a;
    padding: 2px 4px;
    border-radius: 3px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9em;
    border: 1px solid #202225;
}

.discord-content pre {
    background: #2f3136;
    color: #dcddde;
    padding: 10px;
    border-radius: 4px;
    margin: 5px 0;
    overflow-x: auto;
    border: 1px solid #202225;
}

.discord-content pre code {
    background: none;
    color: inherit;
    padding: 0;
    border: none;
}

.discord-content strong {
    font-weight: 600;
}

.discord-content em {
    font-style: italic;
}

.discord-content u {
    text-decoration: underline;
}

.discord-content s {
    text-decoration: line-through;
}

/* Discord Überschriften */
.discord-content h1 {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 8px 0 4px 0;
    text-align: left;
    border-bottom: none !important;
    text-decoration: none !important;
}

.discord-content h2 {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 6px 0 3px 0;
    text-align: left;
    border-bottom: none !important;
    text-decoration: none !important;
}

.discord-content h3 {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 4px 0 2px 0;
    text-align: left;
    border-bottom: none !important;
    text-decoration: none !important;
}

/* Discord Zitate */
.discord-content blockquote {
    background: #2f3136;
    border-left: 4px solid #4f545c;
    margin: 5px 0;
    padding: 8px 12px;
    border-radius: 4px;
    color: #dcddde;
    font-style: italic;
}

/* Discord Spoiler */
.discord-content .discord-spoiler {
    background: #202225;
    color: #202225;
    border-radius: 3px;
    padding: 2px 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.discord-content .discord-spoiler:hover {
    background: #2c2f33;
    color: #2c2f33;
}

.discord-content .discord-spoiler.revealed {
    background: #5865f2;
    color: #ffffff;
}

.discord-embed {
    background: #2f3136;
    border-left: 4px solid #5865f2;
    border-radius: 4px;
    padding: 15px;
    margin: 10px 0;
    position: relative;
}

.discord-embed-title {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.discord-embed-description {
    color: #dcddde;
    line-height: 1.4;
    margin-bottom: 10px;
    white-space: pre-wrap;
}

.discord-embed-image {
    max-width: 100%;
    border-radius: 4px;
    margin: 10px 0;
}

.discord-embed-thumbnail {
    position: absolute;
    top: 15px;
    right: 15px;
    max-width: 80px;
    max-height: 80px;
    border-radius: 4px;
}

.discord-embed-footer {
    color: #72767d;
    font-size: 0.8rem;
    margin-top: 10px;
    border-top: 1px solid #40444b;
    padding-top: 8px;
}

.discord-attachment {
    background: #2f3136;
    border-radius: 4px;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #40444b;
}

.discord-attachment img {
    max-width: 100%;
    border-radius: 4px;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #5865f2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error Messages */
.error {
    background: #ed4245;
    color: white;
    padding: 10px;
    border-radius: 5px;
    margin: 10px 0;
    border-left: 4px solid #c73e1d;
    position: relative;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.success {
    background: #57f287;
    color: #2c2f33;
    padding: 10px;
    border-radius: 5px;
    margin: 10px 0;
    border-left: 4px solid #43d67a;
    position: relative;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Responsive design */
@media (max-width: 768px) {
    .editor-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .container {
        padding: 15px;
    }

    .header-controls {
        flex-direction: column;
        gap: 8px;
        align-items: flex-end;
    }

    .copy-button {
        align-self: flex-end;
        font-size: 0.8rem;
        padding: 5px 10px;
    }

    .clear-button {
        align-self: flex-end;
        font-size: 0.8rem;
        padding: 5px 10px;
    }

    .button-group {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        margin-right: 0;
        margin-bottom: 8px;
    }

    .input-with-button {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .input-with-button input {
        margin-bottom: 0;
    }

    .input-with-button .btn {
        align-self: flex-start;
    }
}

/* Modal Styles */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #36393f;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid #202225;
}

.modal-header {
    background: #40444b;
    padding: 20px;
    border-bottom: 1px solid #202225;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 600;
}

.close-button {
    background: none;
    border: none;
    color: #b9bbbe;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.close-button:hover {
    background-color: #ed4245;
    color: white;
}

.modal-body {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

/* Custom scrollbar for modal body */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: #2f3136;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #4f545c;
    border-radius: 4px;
    border: 1px solid #2f3136;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #5d6269;
}

.modal-body::-webkit-scrollbar-thumb:active {
    background: #6a6f77;
}

/* Firefox scrollbar for modal body */
.modal-body {
    scrollbar-width: thin;
    scrollbar-color: #4f545c #2f3136;
}

.modal-footer {
    background: #40444b;
    padding: 15px 20px;
    border-top: 1px solid #202225;
    display: flex;
    justify-content: flex-end;
}

/* Webhook List Styles */
.webhook-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.webhook-item {
    background: #40444b;
    border: 1px solid #202225;
    border-radius: 6px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background-color 0.2s ease;
    margin-bottom: 1px;
}

.webhook-item:hover {
    background: #4f545c;
}

.webhook-item-info {
    flex: 1;
    min-width: 0;
}

.webhook-item-name {
    color: #b9bbbe;
    font-size: 0.9rem;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.webhook-item-webhook {
    color: #72767d;
    font-size: 0.8rem;
    font-style: italic;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.webhook-item-server {
    font-weight: 600;
    color: #ffffff;
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 8px;
}

.source-badge {
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    color: #fff;
    text-transform: uppercase;
    font-weight: 600;
    flex-shrink: 0;
}

.source-badge.local {
    background-color: #7289da;
}

.source-badge.cloud {
    background-color: #43b581;
}

.webhook-item-name-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 3px;
}

.webhook-item-url {
    color: #72767d;
    font-size: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.webhook-item-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.webhook-item-actions .btn {
    padding: 6px 12px;
    font-size: 0.8rem;
    margin: 0;
}

.webhook-item-actions .btn-danger {
    background: #ed4245;
    color: white;
    border: 1px solid #ed4245;
}

.webhook-item-actions .btn-danger:hover {
    background: #c73e1d;
    border-color: #c73e1d;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(237, 66, 69, 0.3);
}

.no-webhooks {
    text-align: center;
    color: #72767d;
    padding: 40px 20px;
}

.no-webhooks p {
    margin: 0;
    font-style: italic;
}

/* Section Divider */
.section-divider {
    border-top: 1px solid #202225;
    margin: 15px 0;
    padding-top: 15px;
}

/* Upload Area Styles */
.upload-area {
    border: 2px dashed #40444b;
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background: #36393f;
    position: relative;
    margin-bottom: 15px;
}

.upload-area:hover {
    border-color: #5865f2;
    background: #40444b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.2);
}

.upload-area.dragover {
    border-color: #5865f2;
    background: #40444b;
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.3);
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.upload-icon {
    font-size: 2rem;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.upload-area:hover .upload-icon {
    opacity: 1;
    transform: scale(1.1);
}

.upload-content h3 {
    margin: 0;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
}

.upload-content p {
    margin: 0;
    color: #b9bbbe;
    font-size: 0.9rem;
}

.upload-button {
    background: #5865f2;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 10px;
}

.upload-button:hover {
    background: #4752c4;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.3);
}

.upload-button:active {
    transform: translateY(0);
}

/* Color Picker Styles */
.color-picker {
    width: 60px !important;
    height: 40px !important;
    border: 2px solid #40444b !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    background: transparent !important;
    padding: 0 !important;
    transition: all 0.2s ease !important;
}

.color-picker:hover {
    border-color: #5865f2 !important;
    transform: scale(1.05) !important;
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.3) !important;
}

.color-picker:focus {
    outline: none !important;
    border-color: #5865f2 !important;
    box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.3) !important;
}

/* Clear Modal Styles */
.clear-warning {
    text-align: center;
    padding: 20px;
}

.warning-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.clear-warning p {
    color: #dcddde;
    margin-bottom: 15px;
    line-height: 1.5;
}

.clear-warning ul {
    text-align: left;
    color: #b9bbbe;
    margin: 15px 0;
    padding-left: 20px;
}

.clear-warning li {
    margin-bottom: 8px;
}

.clear-warning strong {
    color: #f04747;
    font-weight: 600;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: row;
        justify-content: center;
        height: 60px;
        padding: 10px 20px;
        gap: 10px;
    }

    .nav-brand {
        display: none; /* Hide myprofileforge brand name in mobile view */
    }

    /* Hide any mobile menu buttons */
    .mobile-menu-button {
        display: none !important;
    }

    .nav-menu {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-link {
        padding: 8px 12px;
        font-size: 0.85rem;
        white-space: nowrap;
    }

    .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
        background: #36393f;
        margin-top: 0;
        border-radius: 4px;
        display: none; /* Hide dropdown by default on mobile */
        z-index: 1001;
    }

    .nav-dropdown .dropdown-menu.show {
        display: block; /* Show dropdown when .show class is present */
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 8px 15px;
        height: 55px;
    }

    .nav-menu {
        gap: 8px;
    }

    .nav-link {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
}