.x-tweet-generator {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: #f7f9f9;
    border-radius: 16px;
}

#xtgPreview {
    background: white;
    border-radius: 16px;
    padding: 16px;
    border: 1px solid #e7e7e8;
    margin-bottom: 20px;
}

.xtg-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.xtg-avatar-container {
    margin-right: 12px;
}

.xtg-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.xtg-avatar-initial {
    width: 48px;
    height: 48px;
    background-color: #1DA1F2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 20px;
}

.xtg-user-info {
    line-height: 1.2;
}

.xtg-display-name {
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 4px;
}

.xtg-verified {
    width: 18px;
    height: 18px;
    fill: #1DA1F2;
}

.xtg-username {
    color: #536471;
    font-size: 15px;
}

.xtg-content {
    margin-bottom: 12px;
    font-size: 15px;
    line-height: 1.5;
}

.xtg-time {
    color: #536471;
    font-size: 14px;
    margin-bottom: 12px;
}

.xtg-engagement {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e7e7e8;
    color: #536471;
    font-size: 14px;
}

.xtg-engagement-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.xtg-engagement-icons {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e7e7e8;
}

.xtg-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.xtg-icon-container {
    color: #536471;
    cursor: pointer;
}

.xtg-icon-container:hover {
    color: #1DA1F2;
}

.xtg-hashtag, .xtg-mention {
    color: #1DA1F2;
}

.xtg-form-group {
    margin-bottom: 15px;
}

.xtg-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.xtg-form-group input[type="text"],
.xtg-form-group input[type="file"],
.xtg-form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.xtg-form-group textarea {
    height: 100px;
    resize: vertical;
}

.xtg-username-input {
    position: relative;
}

.xtg-username-input span {
    position: absolute;
    left: 8px;
    top: 8px;
    color: #555;
}

.xtg-username-input input {
    padding-left: 20px !important;
}

.xtg-row {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.xtg-row .xtg-form-group {
    flex: 1;
    margin-bottom: 0;
}

.xtg-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
}

.xtg-checkbox input {
    margin: 0;
}

.xtg-submit-btn {
    background: #1DA1F2;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    font-weight: bold;
    margin-top: 10px;
}

.xtg-submit-btn:hover {
    background: #1991db;
}

.xtg-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.xtg-actions button {
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    flex: 1;
}

#xtgCopyBtn {
    background: #4CAF50;
}

#xtgCopyBtn:hover {
    background: #3d8b40;
}

#xtgDownloadBtn {
    background: #1DA1F2;
}

#xtgDownloadBtn:hover {
    background: #1991db;
}
/* [Previous CSS rules remain the same] */

.xtg-engagement {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e7e7e8;
    color: #536471;
    font-size: 14px;
}

.xtg-engagement-item {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 50px;
}

.xtg-engagement-item:last-child {
    margin-right: 0;
}

/* Remove the duplicate icons section */