/* --- Case Converter Wrapper --- */
#cc-wrapper {
    font-family: 'Press Start 2P', monospace;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    background-color: #111827;
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    border: 2px solid #374151;
    color: white;
}

/* --- Text Input Area --- */
.cc-input-container {
    width: 100%;
    position: relative;
    background-color: #1f2937;
    padding: 5px;
    border-radius: 8px;
    border: 1px solid #374151;
    margin-bottom: 20px;
}

.cc-textarea {
    width: 100%;
    min-height: 200px;
    background-color: #050505;
    color: #d1d5db;
    border: 1px solid #333;
    padding: 15px;
    font-family: 'Press Start 2P', monospace, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    border-radius: 6px;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s;
}

.cc-textarea:focus {
    border-color: #FF00FF; /* Glitch Magenta */
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.1);
}

.cc-textarea::placeholder {
    color: #4b5563;
    opacity: 0.8;
}

/* --- Controls Grid --- */
.cc-controls-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: 100%;
    margin-bottom: 20px;
}

@media (min-width: 600px) {
    .cc-controls-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.cc-btn {
    padding: 12px 5px;
    font-family: inherit; /* Press Start 2P */
    font-size: 0.6rem;
    text-transform: uppercase;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.1s ease;
    background-color: #374151;
    color: #e5e7eb;
    border-bottom: 3px solid #1f2937;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    line-height: 1.4;
}

.cc-btn:hover {
    background-color: #4b5563;
    color: white;
    transform: translateY(-1px);
}

.cc-btn:active {
    transform: translateY(3px);
    border-bottom: none;
    margin-top: 3px;
}

/* Specific Button Colors */
.cc-btn.upper { color: #fca5a5; }
.cc-btn.lower { color: #93c5fd; }
.cc-btn.title { color: #fde047; }
.cc-btn.special { color: #d8b4fe; }

/* --- Action Bar (Copy/Clear) --- */
.cc-action-bar {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    width: 100%;
    border-top: 2px solid #374151;
    padding-top: 20px;
}

.cc-action-btn {
    flex: 1;
    padding: 12px;
    font-family: inherit;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.1s ease;
    border-bottom: 4px solid rgba(0,0,0,0.3);
}

.cc-action-btn:active {
    transform: translateY(4px);
    border-bottom: none;
    margin-top: 4px;
}

.cc-btn-copy {
    background-color: #10b981; /* Green */
    color: #064e3b;
    border-bottom-color: #059669;
}
.cc-btn-copy:hover { background-color: #34d399; }

.cc-btn-clear {
    background-color: #ef4444; /* Red */
    color: #7f1d1d;
    border-bottom-color: #b91c1c;
}
.cc-btn-clear:hover { background-color: #f87171; }

.cc-btn-download {
    background-color: #3b82f6; /* Blue */
    color: #1e3a8a;
    border-bottom-color: #1d4ed8;
}
.cc-btn-download:hover { background-color: #60a5fa; }

/* Status Text */
#cc-status {
    height: 20px;
    margin-top: 10px;
    color: #10b981;
    font-size: 0.7rem;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s;
}
#cc-status.visible { opacity: 1; }

/* Mobile Responsiveness */
@media (max-width: 480px) {
    #cc-wrapper { padding: 15px; }
    .cc-btn { font-size: 0.5rem; padding: 10px 2px; }
}