.wp-text-rotator {
    display: inline-block;
    position: relative;
    min-height: 1.2em;
}

.rotator-text {
    display: inline-block;
    margin: 0;
}

.rotator-text.fade-out {
    opacity: 0;
}

/* Admin styles */
.wp-text-rotator-container {
    display: flex;
    gap: 20px;
}

.wp-text-rotator-settings,
.wp-text-rotator-texts {
    flex: 1;
}

.wp-text-rotator-list {
    list-style: none;
    padding: 0;
}

.wp-text-rotator-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    border: 1px solid #ddd;
    margin-bottom: 5px;
    background: #f9f9f9;
}

.wp-text-rotator-item .text-content {
    flex-grow: 1;
}

.wp-text-rotator-item .actions {
    display: flex;
    gap: 5px;
}

.wp-text-rotator-add-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.wp-text-rotator-add-form input[type="text"] {
    flex-grow: 1;
}

/* Modal styles */
.wp-text-rotator-modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
}

.wp-text-rotator-modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
}

.wp-text-rotator-modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.wp-text-rotator-modal-close:hover {
    color: black;
}