.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 select {
    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 select:focus {
    outline: none;
    border-color: #5865f2;
    box-shadow: 0 0 0 2px rgba(88, 101, 242, 0.3);
}

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

/* Preview section header controls */
.preview-section .header-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Discord Profile Preview */
.discord-profile-preview {
    background: #2f3136;
    border-radius: 10px;
    overflow: hidden;
    border: 4px solid #40444b;
    min-width: 330px;
    max-width: 330px;
    margin: 0 auto;
    box-sizing: border-box;
    position: relative;
}

.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;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-header {
    height: 120px;
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 0;
    border: none;
    outline: none;
}

.header-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #5865f2, #7289da);
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin: 0;
    padding: 0;
    border: none;
    outline: none;
}

.profile-content {
    padding: 20px;
    position: relative;
}

.avatar-section {
    position: absolute;
    top: -60px;
    /* Hälfte des Avatars über den Header */
    left: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar-container {
    position: relative;
    display: inline-block;
}

.avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(45deg, #5865f2, #7289da);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 6px solid #2f3136;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-image: url('avatar.png');
}

.status-indicator {
    position: absolute;
    bottom: 6px;
    right: 6px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 6px solid #2f3136;
}

.status-indicator.online {
    background: #43b581;
}

.status-indicator.idle {
    background: #faa61a;
}

.status-indicator.dnd {
    background: #f04747;
}

.status-indicator.offline {
    background: #747f8d;
}

.profile-info {
    margin-top: 40px;
    /* Platz für den Avatar */
    padding-left: 0px;
    /* Platz für den Avatar */
}

.username {
    font-size: 1.3rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

.discriminator {
    font-size: 1rem;
    color: #72767d;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.nitro-indicator {
    display: none;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 8px;
    width: 100%;
}

.nitro-indicator.active {
    display: flex;
}

.nitro-indicator img {
    width: 24px;
    height: 24px;
    opacity: 0.8;
}

.status-message {
    display: none;
    background: #40444b;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    max-width: 180px;
    min-width: auto;
    word-wrap: break-word;
    position: relative;
    border: 1px solid #2f3136;
    line-height: 1.2;
    box-sizing: border-box;
    white-space: pre-wrap;
    overflow-wrap: break-word;
}

.status-message.active {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-all;
}

.about-me {
    font-size: 0.9rem;
    color: #b9bbbe;
    margin-bottom: 8px;
    line-height: 1.4;
    word-wrap: break-word;
    white-space: pre-wrap;
}

/* Watermark */
.watermark {
    position: absolute;
    bottom: 8px;
    right: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    pointer-events: none;
    z-index: 10;
}

.watermark-logo {
    width: 33px;
    height: 17px;
    opacity: 0.6;
    filter: brightness(0) invert(1);
    transition: filter 0.3s ease;
}

.watermark-text {
    font-size: 0.6rem;
    color: #72767d;
    opacity: 0.6;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.textarea-container {
    position: relative;
    width: 100%;
}

.input-hint {
    font-size: 0.8rem;
    color: #72767d;
    margin-top: 4px;
    font-style: italic;
}

.input-group textarea {
    width: 100%;
    padding: 10px;
    padding-bottom: 30px;
    /* Platz für Zeichenzähler */
    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;
    resize: vertical;
    min-height: 80px;
    overflow-y: auto;
    position: relative;
}

.char-counter {
    position: absolute;
    bottom: 17px;
    right: 10px;
    font-size: 0.8rem;
    color: #72767d;
    background: rgba(47, 49, 54, 0.8);
    padding: 1px 6px;
    border-radius: 4px;
    pointer-events: none;
}

.char-counter2 {
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 0.8rem;
    color: #72767d;
    background: rgba(47, 49, 54, 0.8);
    padding: 1px 6px;
    border-radius: 4px;
    pointer-events: none;
}

.textarea-container input[type="text"] {
    width: 100%;
    padding: 10px;
    padding-bottom: 30px;
    /* Platz für Zeichenzähler */
    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;
    box-sizing: border-box;
}

.textarea-container input[type="text"]:focus {
    outline: none;
    border-color: #5865f2;
    box-shadow: 0 0 0 2px rgba(88, 101, 242, 0.3);
}

.textarea-container input[type="text"]::placeholder {
    color: #72767d;
}

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

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

.color-inputs-container {
    display: flex;
    gap: 10px;
    margin-top: 8px;
    flex-direction: row;
    justify-content: space-between;
}

.color-input-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.color-input-box label {
    font-size: 0.9rem;
    color: #b9bbbe;
    text-align: center;
    margin: 0;
}

.input-group input[type="color"] {
    width: 80px;
    height: 80px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    background: none;
}

/* 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;
    }
}

/* Hover Effects */
.discord-profile-preview:hover {
    transform: translateY(-2px);
    transition: transform 0.3s ease;
}

.input-group input:hover,
.input-group select:hover {
    background: #454950;
}

/* Nitro-specific styles */
.nitro-only {
    opacity: 0.5;
    pointer-events: none;
    transition: all 0.3s ease;
}

.nitro-only.active {
    opacity: 1;
    pointer-events: auto;
}

/* Side by side inputs */
.side-by-side-inputs {
    display: flex;
    gap: 15px;
}

.input-half {
    flex: 1;
}

.input-half label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #dcddde;
}

.input-half select {
    width: 100%;
    padding: 12px;
    border: 1px solid #40444b;
    border-radius: 8px;
    background: #40444b;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

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

.input-half select:hover {
    background: #454950;
}

.upload-button {
    width: 100%;
    padding: 10px;
    background: #5865f2;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    color: #ffffff;
    transition: all 0.2s ease;
    font-weight: 500;
    text-align: center;
    font-family: 'Whitney', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.upload-button:hover {
    background: #4752c4;
    transform: translateY(-1px);
}

.upload-button:active {
    background: #3c45a5;
    transform: translateY(0);
}

.upload-info {
    font-size: 0.8rem;
    color: #72767d;
    margin-top: 5px;
}

/* Profile Management Styles */
.profile-management {
    margin-top: 15px;
    border-top: 1px solid #202225;
    padding-top: 15px;
}

.save-profile-section {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    align-items: center;
}

.save-profile-section input {
    flex: 1;
    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;
}

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

.save-button {
    padding: 10px 16px;
    background: #43b581;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-family: 'Whitney', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 0.85rem;
}

.save-button:hover {
    background: #3ca374;
    transform: translateY(-1px);
}

.save-button:active {
    background: #2d7d46;
    transform: translateY(0);
}

.saved-profiles-section {
    margin-top: 20px;
}

.search-container {
    margin-bottom: 15px;
}

.search-input {
    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;
    box-sizing: border-box;
}

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

.search-input::placeholder {
    color: #72767d;
}

.saved-profiles-list {
    max-height: 400px;
    overflow-y: auto;
}

.source-badge {
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    color: #fff;
}

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

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

.saved-profile-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #202225;
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.saved-profile-item:last-child {
    border-bottom: none;
}

.saved-profile-item:hover {
    background: #484c52;
}

.saved-profile-item.selected {
    background: #5865f2;
}

.profile-info-display {
    flex: 1;
}

.profile-name {
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
}

.profile-details {
    font-size: 0.85rem;
    color: #72767d;
}

.profile-actions {
    display: flex;
    gap: 8px;
}

.load-button,
.delete-button {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Whitney', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.load-button {
    background: #5865f2;
    color: white;
}

.load-button:hover {
    background: #4752c4;
}

.delete-button {
    background: #f04747;
    color: white;
}

.delete-button:hover {
    background: #d84040;
}

.no-profiles-message {
    padding: 20px;
    text-align: center;
    color: #72767d;
    font-style: italic;
}

/* Scrollbar styling for saved profiles list */
.saved-profiles-list::-webkit-scrollbar {
    width: 8px;
}

.saved-profiles-list::-webkit-scrollbar-track {
    background: #2f3136;
    border-radius: 4px;
}

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

.saved-profiles-list::-webkit-scrollbar-thumb:hover {
    background: #5d6269;
}

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

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

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

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

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