/**
 * Text Case Converter - Muster Module (original simple version)
 */

.tcc-wrapper {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
    background: transparent;
    box-sizing: border-box;
}

.tcc-container {
    background: #ffffff;
    border: 1px solid #dbe4ea;
    border-radius: 10px;
    padding: 24px;
    overflow: hidden;
    box-sizing: border-box;
}

.tcc-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.tcc-title {
    font-size: 2rem;
    font-weight: 700;
    color: #0b1120;
    margin: 0 0 0.25rem;
    line-height: 1.2;
}

.tcc-description {
    font-size: 1rem;
    color: #4b5563;
    margin: 0;
}

.tcc-card {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
}

.tcc-input-section {
    padding: 0 0 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.tcc-textarea {
    width: 100%;
    min-height: 180px;
    padding: 0.875rem;
    font-family: 'Manrope', monospace;
    font-size: 0.95rem;
    line-height: 1.5;
    border: 1px solid #dbe4ea;
    border-radius: 10px;
    background: #ffffff;
    color: #111827;
    resize: vertical;
    box-sizing: border-box;
}

.tcc-textarea:focus {
    outline: none;
    border-color: #0a6475;
    box-shadow: 0 0 0 3px rgba(14, 126, 148, 0.1);
}

.tcc-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: #6b7280;
}

.tcc-char-count,
.tcc-word-count {
    background: #f8fafc;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
}

.tcc-buttons-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 0.6rem;
    padding: 1rem 0 0 0;
}

.tcc-btn {
    padding: 0.45rem 0.5rem;
    background: #0e7e94;
    color: white;
    border: none;
    border-radius: 8px;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.3rem;
    text-decoration: none;
    line-height: 1.3;
    white-space: normal;
    word-break: break-word;
}

.tcc-btn:hover:not(:disabled) {
    background: #0a6475;
}

.tcc-btn:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
    opacity: 0.7;
}

.tcc-btn.success {
    background: #0a6475 !important;
}

.tcc-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(14, 126, 148, 0.3);
}

.tcc-info {
    padding: 0.75rem 0 0 0;
    background: transparent;
    text-align: center;
    border-top: 1px solid #e5e7eb;
    margin-top: 1rem;
}

.tcc-info p {
    margin: 0;
    color: #4b5563;
    font-size: 0.8rem;
}

/* Toast messages */
.tcc-message {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    z-index: 9999;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    animation: slideInOut 2s ease forwards;
}

.tcc-message.success {
    background-color: #0e7e94;
    color: white;
}

.tcc-message.error {
    background-color: #dc2626;
    color: white;
}

@keyframes slideInOut {
    0% { opacity: 0; transform: translateX(20px); }
    10% { opacity: 1; transform: translateX(0); }
    90% { opacity: 1; transform: translateX(0); }
    100% { opacity: 0; transform: translateX(20px); }
}

/* Responsive */
@media (max-width: 768px) {
    .tcc-wrapper {
        padding: 15px;
    }
    .tcc-container {
        padding: 20px;
    }
    .tcc-title {
        font-size: 1.75rem;
    }
    .tcc-buttons-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    .tcc-textarea {
        min-height: 160px;
    }
}

@media (max-width: 550px) {
    .tcc-buttons-container {
        grid-template-columns: 1fr;
    }
}

/* Print */
@media print {
    .tcc-wrapper {
        padding: 0;
    }
    .tcc-container {
        border: 1px solid #ccc;
        padding: 10px;
    }
    .tcc-btn {
        display: none;
    }
}