/* Container */
.t2i-container {
    max-width: 1200px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #333; /* dark text */
}

/* Header - light grey */
.t2i-header {
    background-color: #f0f0f0;
    padding: 15px 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    border-radius: 8px 8px 0 0;
}

.t2i-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #333;
}

.t2i-header-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Buttons - neon green */
.t2i-btn {
    background-color: #b0ffb0; /* light neon green */
    color: #222;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.t2i-btn:hover {
    background-color: #a0f0a0;
}

.t2i-btn:active {
    background-color: #90e090;
}

/* Controls area */
.t2i-controls {
    background: #fafafa;
    padding: 20px;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 8px 8px;
}

.t2i-text-input {
    width: 100%;
    min-height: 80px;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 15px;
    resize: vertical;
    font-family: inherit;
}

.t2i-style-row {
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
}

.t2i-style-btn {
    background: #e0e0e0;
    border: none;
    padding: 8px 16px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    min-width: 40px;
}

.t2i-style-btn.active {
    background: #b0ffb0;
    box-shadow: 0 0 0 2px #333;
}

.t2i-align-btn {
    background: #e0e0e0;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
}

.t2i-align-btn.active {
    background: #b0ffb0;
    box-shadow: 0 0 0 2px #333;
}

.t2i-font-size {
    width: 200px;
    vertical-align: middle;
}

.t2i-font-size-value {
    font-weight: bold;
    margin-left: 5px;
}

/* Preview */
.t2i-preview {
    margin-top: 20px;
    text-align: center;
}

#t2i-canvas {
    max-width: 100%;
    height: auto;
    border: 2px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Fullscreen container */
.t2i-fullscreen-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.t2i-fullscreen-container canvas {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.t2i-close-fullscreen {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #b0ffb0;
    color: #222;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    z-index: 10000;
}

/* Responsive */
@media (max-width: 768px) {
    .t2i-header {
        flex-direction: column;
        gap: 10px;
    }
    .t2i-header-actions {
        justify-content: center;
    }
    .t2i-style-row {
        flex-direction: column;
        align-items: flex-start;
    }
}