/* Text Case Converter Tool Specific Styles */

/* Card overrides */
.card {
    gap: 0;
    height: auto;
    justify-content: flex-start;
}

/* Pane Sections */
.pane-section {
    padding: 20px 24px;
}

.pane-section:first-child {
    border-bottom: 1px solid var(--border-light);
}

.pane-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.pane-actions {
    display: flex;
    gap: 8px;
}

/* Field Labels */
.field-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    font-weight: 600;
}

/* Textareas */
#inputText,
#outputText {
    width: 100%;
    min-height: 120px;
    border-radius: var(--radius-small);
    border: 1px solid var(--input-border);
    background: var(--input-bg);
    color: var(--text-main);
    padding: 16px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    outline: none;
    transition: all 0.2s;
    line-height: 1.6;
}

#inputText:focus {
    background: var(--input-bg-focus);
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(94, 92, 230, 0.15);
}

#outputText {
    background: var(--subtle-bg);
    cursor: default;
}

/* Stats Bar */
.stats-bar {
    display: flex;
    gap: 16px;
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.stats-bar span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.stats-bar strong {
    color: var(--text-main);
    font-weight: 600;
}

/* Actions Section */
.actions-section {
    background: var(--subtle-bg);
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    border-bottom: 1px solid var(--border-light);
}

.action-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.action-group-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    font-weight: 600;
}

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.action-btn {
    padding: 8px 14px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--input-border);
    border-radius: 6px;
    background: var(--card-bg);
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.action-btn:hover {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(94, 92, 230, 0.2);
}

.action-btn:active {
    transform: translateY(0);
}

/* Buttons */
.btn {
    border: none;
    border-radius: 99px;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--tag-bg);
    color: var(--text-main);
}

.btn:hover:not(:disabled) {
    background: var(--input-border);
    transform: translateY(-1px);
}

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

.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    background: rgba(94, 92, 230, 0.05);
    color: var(--accent-color);
}

/* Toast */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    opacity: 0;
    transition: all 0.3s;
    pointer-events: none;
    z-index: 1000;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Mobile Layout Optimizations */
@media (max-width: 640px) {
    .app-shell {
        padding-left: 0;
        padding-right: 0;
        padding-top: 20px;
    }

    .tool-container {
        padding: 0;
        max-width: 100% !important;
    }

    .card {
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .pane-section {
        padding: 16px;
    }

    .actions-section {
        padding: 16px;
    }

    .hero-compact {
        margin-bottom: 4px !important;
        padding: 0;
    }

    .hero-compact h1 {
        font-size: 1.75rem;
        margin-bottom: 6px;
        padding: 0 16px;
    }

    .hero-compact p {
        font-size: 0.9rem;
        line-height: 1.4;
        padding: 0 16px;
    }

    .pane-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .pane-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .action-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
}