:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #f97316;
    --secondary-dark: #ea580c;
    --light-bg: #f8fafc;
    --dark-text: #1e293b;
    --light-text: #64748b;
    --white: #ffffff;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --radius: 20px;
}

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

.case-converter-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--dark-text);
    line-height: 1.6;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.case-converter-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 30px;
    margin-bottom: 30px;
}

.tool-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media (max-width: 768px) {
    .tool-grid {
        grid-template-columns: 1fr;
    }
}

.input-section, .output-section {
    display: flex;
    flex-direction: column;
}

.case-converter-container h2 {
    margin-bottom: 15px;
    color: var(--primary);
}

.case-converter-container textarea {
    width: 100%;
    min-height: 250px;
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-family: inherit;
    font-size: 16px;
    resize: vertical;
    margin-bottom: 20px;
    transition: border-color 0.3s;
}

.case-converter-container textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.button-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.case-converter-container button {
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

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

.primary-btn:hover {
    background-color: var(--primary-dark);
}

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

.secondary-btn:hover {
    background-color: var(--secondary-dark);
}

.outline-btn {
    background-color: transparent;
    border: 1px solid var(--border);
    color: var(--dark-text);
}

.outline-btn:hover {
    background-color: var(--light-bg);
}

.utility-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.counters {
    display: flex;
    gap: 20px;
}

.counter {
    display: flex;
    flex-direction: column;
}

.counter span:first-child {
    font-size: 0.9rem;
    color: var(--light-text);
}

.counter span:last-child {
    font-weight: 700;
    font-size: 1.2rem;
}

.utility-buttons {
    display: flex;
    gap: 10px;
}

.custom-options {
    margin-top: 20px;
    padding: 15px;
    background-color: var(--light-bg);
    border-radius: 12px;
}

.custom-options h3 {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--primary);
}

.option-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.custom-option {
    padding: 8px 12px;
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.custom-option:hover {
    background-color: var(--primary);
    color: white;
}

.custom-option.active {
    background-color: var(--primary);
    color: white;
}

.case-converter-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    background-color: var(--primary);
    color: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transform: translateX(100vw);
    transition: transform 0.3s ease-out;
    z-index: 1000;
}

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