:root {
    --primary: #4361ee;
    --primary-light: #4895ef;
    --secondary: #3f37c9;
    --dark: #2b2d42;
    --light: #f8f9fa;
    --gray: #adb5bd;
    --gray-light: #e9ecef;
    --success: #4cc9f0;
    --warning: #f72585;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --radius: 8px;
}

.itc-container * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.itc-container {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: #f5f7fb;
    padding: 30px 20px;
    min-height: 100vh;
    max-width: 1200px;
    margin: 0 auto;
}

.itc-upload-area {
    background: white;
    border: 2px dashed var(--gray-light);
    border-radius: var(--radius);
    padding: 40px 20px;
    text-align: center;
    margin-bottom: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.itc-upload-area:hover {
    border-color: var(--primary);
    background-color: rgba(67, 97, 238, 0.03);
}

.itc-upload-area.active {
    border-color: var(--primary);
    background-color: rgba(67, 97, 238, 0.05);
}

.itc-upload-icon {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 15px;
}

.itc-upload-text {
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 500;
}

.itc-upload-hint {
    color: var(--gray);
    font-size: 0.9rem;
}

.itc-file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
}

.itc-panels-container {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .itc-panels-container {
        flex-direction: column;
    }
}

.itc-panel {
    flex: 1;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    min-height: 400px;
}

.itc-panel-header {
    padding: 15px 20px;
    background: var(--primary);
    color: white;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.itc-panel-content {
    padding: 20px;
    height: 350px;
    overflow: auto;
}

.itc-image-preview {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: none;
}

.itc-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--gray);
    text-align: center;
}

.itc-placeholder-icon {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.7;
}

.itc-text-output {
    width: 100%;
    height: 100%;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius);
    resize: none;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.5;
    padding: 15px;
    background: var(--light);
}

.itc-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.itc-btn {
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius);
    font-family: inherit;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 140px;
    justify-content: center;
}

.itc-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.itc-btn-primary {
    background: var(--primary);
    color: white;
}

.itc-btn-primary:hover:not(:disabled) {
    background: var(--secondary);
    transform: translateY(-2px);
}

.itc-btn-secondary {
    background: var(--gray-light);
    color: var(--dark);
}

.itc-btn-secondary:hover:not(:disabled) {
    background: var(--gray);
    color: white;
    transform: translateY(-2px);
}

.itc-btn-success {
    background: var(--success);
    color: white;
}

.itc-btn-success:hover:not(:disabled) {
    background: #3aa8d0;
    transform: translateY(-2px);
}

.itc-btn-warning {
    background: var(--warning);
    color: white;
}

.itc-btn-warning:hover:not(:disabled) {
    background: #d21e6d;
    transform: translateY(-2px);
}

.itc-language-section {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.itc-select {
    padding: 12px 15px;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    background: white;
    min-width: 280px;
    cursor: pointer;
}

.itc-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.itc-feature-card {
    background: white;
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: flex-start;
    gap: 15px;
    transition: transform 0.3s ease;
}

.itc-feature-card:hover {
    transform: translateY(-5px);
}

.itc-feature-icon {
    font-size: 24px;
    color: var(--primary);
    flex-shrink: 0;
}

.itc-feature-content h3 {
    margin-bottom: 8px;
    font-size: 1.2rem;
    color: var(--dark);
}

.itc-feature-content p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.5;
}

.itc-loading {
    display: none;
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.itc-spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: var(--primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: itc-spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes itc-spin {
    to { transform: rotate(360deg); }
}

.itc-progress {
    width: 100%;
    height: 6px;
    background: var(--gray-light);
    border-radius: 3px;
    margin: 10px 0;
    overflow: hidden;
}

.itc-progress-bar {
    height: 100%;
    background: var(--primary);
    width: 0%;
    transition: width 0.3s ease;
}

.itc-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    background: var(--dark);
    color: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transform: translateX(150%);
    transition: transform 0.3s ease;
    z-index: 10000;
    max-width: 400px;
}

.itc-notification.show {
    transform: translateX(0);
}

.itc-notification.success {
    background: #2a9d8f;
}

.itc-notification.error {
    background: #e63946;
}

.itc-notification.warning {
    background: #e9c46a;
    color: var(--dark);
}

.itc-character-count {
    font-size: 0.8rem;
    color: var(--gray);
    background: white;
    padding: 5px 10px;
    border-radius: 12px;
    font-weight: 500;
}

.itc-supported-formats {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 10px;
}

.itc-format-tag {
    background: var(--primary-light);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.itc-translation-info {
    background: #e8f4fd;
    border: 1px solid #b3d9ff;
    border-radius: var(--radius);
    padding: 10px 15px;
    margin: 10px 0;
    font-size: 0.9rem;
    color: #0066cc;
}