/* Text Case Converter Styles */
.tcc-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 30px;
    font-family: 'Manrope', sans-serif;
    background-color: #eeeeee;
    border-radius: 12px;
    border: 1px solid #bbbbbb;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.tcc-header {
    text-align: center;
    margin-bottom: 35px;
}

.tcc-title {
    color: #1976ea;
    font-size: 2.3em;
    font-weight: 600;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.tcc-description {
    color: #000000;
    font-size: 1.15em;
    font-weight: 500;
    margin: 0;
    opacity: 0.85;
}

.tcc-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 35px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #bbbbbb;
}

.tcc-input-section {
    margin-bottom: 30px;
}

.tcc-textarea {
    width: 100%;
    min-height: 200px;
    padding: 20px;
    border: 2px solid #bbbbbb;
    border-radius: 8px;
    font-family: 'Manrope', sans-serif;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.6;
    resize: vertical;
    transition: all 0.3s ease;
    background: #ffffff;
    color: #000000;
    box-sizing: border-box;
}

.tcc-textarea:focus {
    outline: none;
    border-color: #1976ea;
    box-shadow: 0 0 0 3px rgba(25, 118, 234, 0.15);
}

.tcc-textarea::placeholder {
    color: #666;
    opacity: 0.7;
    font-weight: 500;
}

.tcc-buttons-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.tcc-btn {
    padding: 16px 20px;
    background-color: #1976ea;
    color: white;
    border: none;
    border-radius: 8px;
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tcc-btn:hover:not(:disabled) {
    background-color: #219b92;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(33, 155, 146, 0.25);
}

.tcc-btn:active:not(:disabled) {
    transform: translateY(0);
}

.tcc-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
}

/* Copy button specific style */
.tcc-btn[data-action="copy"] {
    background-color: #17a2b8;
}

.tcc-btn[data-action="copy"]:hover:not(:disabled) {
    background-color: #138496;
    box-shadow: 0 6px 12px rgba(23, 162, 184, 0.25);
}

.tcc-reset {
    background-color: #6c757d;
    grid-column: 1 / -1;
    max-width: 200px;
    margin: 0 auto;
}

.tcc-reset:hover:not(:disabled) {
    background-color: #5a6268;
}

.tcc-info {
    text-align: center;
    padding: 18px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #1976ea;
    margin-top: 20px;
}

.tcc-info p {
    margin: 0;
    color: #000000;
    font-size: 16px;
    font-weight: 500;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tcc-container {
        padding: 20px 15px;
        margin: 15px 10px;
    }
    
    .tcc-card {
        padding: 25px 20px;
    }
    
    .tcc-title {
        font-size: 1.9em;
    }
    
    .tcc-description {
        font-size: 1.05em;
    }
    
    .tcc-buttons-container {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .tcc-btn {
        padding: 14px 15px;
        font-size: 15px;
        min-height: 50px;
    }
    
    .tcc-textarea {
        font-size: 16px;
        padding: 16px;
        min-height: 180px;
    }
    
    .tcc-reset {
        grid-column: 1 / -1;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .tcc-container {
        padding: 15px 10px;
        margin: 10px 5px;
    }
    
    .tcc-card {
        padding: 20px 15px;
    }
    
    .tcc-title {
        font-size: 1.7em;
    }
    
    .tcc-description {
        font-size: 1em;
    }
    
    .tcc-buttons-container {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .tcc-btn {
        padding: 12px 15px;
        font-size: 14px;
        min-height: 48px;
    }
    
    .tcc-textarea {
        font-size: 15px;
        padding: 14px;
        min-height: 160px;
    }
}

/* Loading state */
.tcc-btn.loading {
    position: relative;
    color: transparent;
}

.tcc-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success feedback */
.tcc-btn.success {
    background-color: #28a745;
}

/* Copy success/error message styles */
@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    15% {
        opacity: 1;
        transform: translateY(0);
    }
    85% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* Focus styles for accessibility */
.tcc-btn:focus {
    outline: 3px solid rgba(25, 118, 234, 0.4);
    outline-offset: 2px;
}

.tcc-textarea:focus {
    outline: 2px solid #1976ea;
    outline-offset: -2px;
}

/* Character count */
.tcc-char-count {
    text-align: right;
    font-size: 14px;
    color: #666;
    margin-top: 8px;
    font-weight: 500;
}