/* Modern Chat Container */
.chatjuris-tips {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin-bottom: 24px;
}

.tip-section {
    margin-top: 15px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tip-section:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
    border-color: #d1d5db;
}

.tip-header {
    padding: 18px 24px;
    cursor: pointer;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    border: none;
    outline: none;
    font-size: 15px;
}

.tip-header:hover {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e0 100%);
}

.tip-header i {
    margin-right: 14px;
    color: #3182ce;
    font-size: 18px;
}

.tip-content {
    padding: 24px;
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
}

.tip-example {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #bae6fd;
    border-left: 4px solid #3182ce;
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 12px;
    font-style: italic;
    color: #334155;
    font-size: 14px;
    line-height: 1.6;
    transition: all 0.2s ease;
}

.tip-example:hover {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    transform: translateX(4px);
}

.tip-example:last-child {
    margin-bottom: 0;
}

.tip-info {
    color: #64748b;
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
}

details[open] .tip-header {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    background: linear-gradient(135deg, #3182ce 0%, #2563eb 100%);
    color: white;
}

details[open] .tip-header i {
    color: white;
}

/* Modern Message Input Container */
.message-input-container {
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(49, 130, 206, 0.08);
    padding: 24px;
    border: 2px solid #e5e7eb;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.message-input-container:hover {
    border-color: #cbd5e0;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.12), 0 6px 20px rgba(49, 130, 206, 0.12);
}

.input-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 12px;
}

#user_message {
    width: 100%;
    resize: vertical;
    min-height: 100px;
    max-height: 280px;
    padding: 18px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.7;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    background: #fafbfc;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.04);
}

#user_message:hover {
    border-color: #cbd5e0;
    background: #ffffff;
}

#user_message:focus {
    border-color: #3182ce;
    box-shadow: 0 0 0 4px rgba(49, 130, 206, 0.15), inset 0 2px 4px rgba(0, 0, 0, 0.02);
    outline: none;
    background: #ffffff;
    transform: translateY(-1px);
}

#user_message:invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

#user_message:disabled {
    background-color: #f3f4f6 !important;
    border-color: #d1d5db !important;
    color: #6b7280 !important;
    cursor: not-allowed;
    opacity: 0.7;
    transform: none;
}

#user_message:disabled::placeholder {
    color: #9ca3af;
}

.input-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 18px;
    gap: 12px;
}

.tip-content .input-actions,
.chatjuris-container .input-actions {
    justify-content: flex-start;
}

.char-counter {
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 6px 14px;
    border-radius: 16px;
    border: 2px solid #e2e8f0;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.char-counter.warning {
    color: #d97706;
    background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%);
    border-color: #fb923c;
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.2);
}

.char-counter.error {
    color: #dc2626;
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-color: #f87171;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.2);
    animation: shake 0.5s;
}

.chatjuris-history-user {
    color: #1e293b;
}

.chatjuris-history-ai {
    color: #3182ce;
}

/* Modern Chat History Container */
.chatjuris-history {
    background-color: white;
    background-image: url('/img/logo-transparent.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    border: 2px solid #e5e7eb;
    border-radius: 20px;
    margin-bottom: 24px;
    max-height: 700px;
    min-height: 300px;
    overflow-y: auto;
    padding: 32px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.04);
    position: relative;
    transition: all 0.3s ease;
}

.chatjuris-history:hover {
    border-color: #cbd5e0;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.12), 0 6px 20px rgba(0, 0, 0, 0.06);
}

.chatjuris-history::-webkit-scrollbar {
    width: 10px;
}

.chatjuris-history::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
    margin: 8px;
}

.chatjuris-history::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #94a3b8 0%, #cbd5e0 100%);
    border-radius: 10px;
    border: 2px solid #f1f5f9;
    transition: all 0.2s ease;
}

.chatjuris-history::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #64748b 0%, #94a3b8 100%);
}

/* Modern Conversation Pairs */
.conversation-pair {
    margin-bottom: 32px;
    animation: fadeInUp 0.4s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.conversation-pair:last-child {
    margin-bottom: 0;
}

.chat_message {
    margin-bottom: 20px;
    position: relative;
}

.chatjuris-message {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 12px;
    font-weight: 600;
    font-size: 14px;
}

.chatjuris-message i {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.chatjuris-history-user i {
    background: linear-gradient(135deg, #3182ce 0%, #2563eb 100%);
    color: white;
}

.chatjuris-history-ai i {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

/* Modern Message Bubbles */
.message-bubble {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    padding: 18px 24px;
    margin-left: 46px;
    border: 2px solid #e5e7eb;
    position: relative;
    line-height: 1.7;
    font-size: 15px;
    color: #1e293b;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
}

.message-bubble:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.message-bubble::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 18px;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 10px solid #e5e7eb;
}

.message-bubble::after {
    content: '';
    position: absolute;
    left: -8px;
    top: 19px;
    width: 0;
    height: 0;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
    border-right: 9px solid #ffffff;
}

.message-bubble.user-message {
    background: linear-gradient(135deg, #3182ce 0%, #2563eb 100%);
    color: white;
    margin-left: 0;
    margin-right: 46px;
    border-color: #2563eb;
    box-shadow: 0 4px 16px rgba(49, 130, 206, 0.3);
}

.message-bubble.user-message:hover {
    box-shadow: 0 6px 24px rgba(49, 130, 206, 0.4);
}

.message-bubble.user-message::before {
    left: auto;
    right: -10px;
    border-right: none;
    border-left: 10px solid #2563eb;
}

.message-bubble.user-message::after {
    left: auto;
    right: -8px;
    border-right: none;
    border-left: 9px solid #2563eb;
}

.message-bubble.ai-message {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    color: #1e293b;
    border-color: #e5e7eb;
}

.loading-effect {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.6;
    }
}

/* Responsive Design for Chat Interface */
@media (max-width: 768px) {
    .chatjuris-tips {
        margin-bottom: 16px;
    }

    .tip-section {
        margin-top: 12px;
        border-radius: 12px;
    }

    .tip-header {
        padding: 12px 16px;
        font-size: 14px;
    }

    .tip-content {
        padding: 16px;
    }

    .chatjuris-interaction,
    .chatjuris-container {
        padding: 1rem;
    }

    .message-input-container {
        padding: 18px;
        border-radius: 16px;
    }

    #user_message {
        min-height: 80px;
        padding: 14px 16px;
    }

    .chatjuris-history {
        padding: 20px;
        min-height: 250px;
        max-height: 600px;
    }

    .message-bubble {
        margin-left: 38px;
        padding: 14px 18px;
        font-size: 14px;
    }

    .message-bubble.user-message {
        margin-right: 38px;
        margin-left: 0;
    }

    .chatjuris-message i {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }

    .token-usage-section {
        padding: 1.5rem;
        border-radius: 16px;
    }

    .token-card {
        padding: 1.25rem;
    }

    .precedents-section {
        padding: 18px;
        border-radius: 16px;
    }

    .precedent-item {
        padding: 14px 18px;
        border-radius: 12px;
    }
}

@media (max-width: 480px) {
    .tip-section {
        border-radius: 10px;
    }

    .tip-header {
        padding: 10px 14px;
        font-size: 13px;
    }

    .tip-example {
        padding: 10px 14px;
        font-size: 13px;
    }

    .message-input-container {
        padding: 16px;
        border-radius: 14px;
    }

    #user_message {
        min-height: 70px;
        padding: 12px 14px;
        font-size: 14px;
    }

    .char-counter {
        font-size: 11px;
        padding: 4px 10px;
    }

    .chatjuris-history {
        padding: 16px;
        min-height: 200px;
    }

    .conversation-pair {
        margin-bottom: 24px;
    }

    .message-bubble {
        margin-left: 34px;
        padding: 12px 16px;
        font-size: 13px;
        border-radius: 16px;
    }

    .message-bubble.user-message {
        margin-right: 34px;
    }

    .chatjuris-message i {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }

    .token-usage-section {
        padding: 1.25rem;
    }

    .token-card {
        padding: 1rem;
    }

    .token-number {
        font-size: 1.5rem;
    }

    .precedents-section {
        padding: 16px;
    }

    .precedent-item {
        padding: 12px 16px;
    }

    .mode-toggle-container {
        margin-right: 12px;
        padding: 6px 10px;
    }

    .mode-toggle-slider {
        width: 48px;
        height: 24px;
    }

    .mode-toggle-slider:before {
        width: 16px;
        height: 16px;
    }

    .mode-toggle-input:checked+.mode-toggle-slider:before {
        transform: translateX(24px);
    }
}

.tip-header:focus {
    outline: 2px solid #3182ce;
    outline-offset: 2px;
}

/* Modern Button Styles - Enhanced for chat interface */
.chatjuris-interaction .botaoCaderno,
.chatjuris-container .imprimirCaderno {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.chatjuris-interaction .botaoCaderno:disabled,
.chatjuris-container .imprimirCaderno:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #e5e7eb !important;
    border-color: #d1d5db !important;
    color: #9ca3af !important;
    transform: none !important;
    box-shadow: none !important;
    position: relative;
}

.chatjuris-interaction .botaoCaderno:disabled::before,
.chatjuris-container .imprimirCaderno:disabled::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(45deg,
            transparent,
            transparent 3px,
            rgba(156, 163, 175, 0.1) 3px,
            rgba(156, 163, 175, 0.1) 6px);
    border-radius: inherit;
    pointer-events: none;
}

.chatjuris-interaction .botaoCaderno:disabled:hover,
.chatjuris-container .imprimirCaderno:disabled:hover {
    opacity: 0.5;
    transform: none !important;
    box-shadow: none !important;
}

.chatjuris-interaction .botaoCaderno:not(:disabled):hover,
.chatjuris-container .imprimirCaderno:not(:disabled):hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.15), 0 4px 6px -2px rgba(0, 0, 0, 0.08);
}

.chatjuris-interaction .botaoCaderno:not(:disabled):active,
.chatjuris-container .imprimirCaderno:not(:disabled):active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1);
}

/* Modern Token Usage Section */
.token-usage-section {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-radius: 20px;
    padding: 2rem;
    margin: 2.5rem 0 2rem 0;
    border: 2px solid #86efac;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.15), 0 4px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.token-usage-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
}

.token-usage-section h2 {
    margin: 0 0 1.5rem 0;
    color: #064e3b;
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.token-usage-section h2 i {
    color: #10b981;
    font-size: 1.5rem;
}

.token-usage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.25rem;
}

.token-card {
    background: #ffffff;
    padding: 1.75rem;
    border-radius: 16px;
    text-align: center;
    border: 2px solid #d1fae5;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.token-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.token-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.15);
    border-color: #86efac;
}

.token-card:hover::before {
    transform: scaleX(1);
}

.token-card.cost-card {
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
    border-color: #10b981;
}

.token-number {
    font-size: 2rem;
    font-weight: 800;
    color: #10b981;
    margin-bottom: 0.75rem;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(16, 185, 129, 0.15);
}

.token-card.cost-card .token-number {
    color: #059669;
    font-size: 1.75rem;
}

.token-label {
    font-size: 0.8rem;
    color: #475569;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.4;
}

/* Modern Typing Indicator */
.typing-wave {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 14px 12px 8px 12px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(49, 130, 206, 0.15);
    min-height: 36px;
    overflow: hidden;
}

.typing-wave .dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, #3182ce 0%, #2563eb 100%);
    border-radius: 50%;
    animation: typingWave 1.4s infinite ease-in-out;
    box-shadow: 0 2px 4px rgba(49, 130, 206, 0.3);
}

.typing-wave .dot:nth-child(1) {
    animation-delay: 0s;
}

.typing-wave .dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-wave .dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingWave {

    0%,
    60%,
    100% {
        transform: translateY(0) scale(1);
        opacity: 0.7;
    }

    30% {
        transform: translateY(-8px) scale(1.1);
        opacity: 1;
    }
}

/* Modern Precedents Section */
.precedents-section {
    margin-top: 28px;
    padding: 24px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #fbbf24;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(251, 191, 36, 0.15), 0 4px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.precedents-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
}

.precedents-section h2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.3rem;
    font-weight: 700;
    color: #78350f;
    margin-bottom: 20px;
}

.precedents-section h2 i {
    color: #f59e0b;
    font-size: 1.5rem;
    filter: drop-shadow(0 2px 4px rgba(245, 158, 11, 0.3));
}

.precedents-content {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 12px;
}

.precedents-content::-webkit-scrollbar {
    width: 8px;
}

.precedents-content::-webkit-scrollbar-track {
    background: #fef3c7;
    border-radius: 8px;
}

.precedents-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-radius: 8px;
    border: 2px solid #fef3c7;
}

.precedents-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.precedent-item {
    background: #ffffff;
    border: 2px solid #fde68a;
    border-radius: 16px;
    padding: 18px 22px;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.12);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.precedent-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.precedent-item:hover {
    transform: translateX(4px);
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.2);
    border-color: #fbbf24;
}

.precedent-item:hover::before {
    transform: scaleY(1);
}

.precedent-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
    gap: 12px;
    flex-wrap: wrap;
}

.precedent-court {
    font-weight: 700;
    color: #ea580c;
    font-size: 15px;
}

.precedent-number {
    font-weight: 600;
    color: #78350f;
    background: #fef3c7;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 13px;
}

.precedent-summary {
    font-size: 14px;
    color: #292524;
    line-height: 1.7;
    margin-bottom: 10px;
}

.precedent-date {
    font-size: 12px;
    color: #78350f;
    font-style: italic;
    font-weight: 500;
}

.no-precedents {
    text-align: center;
    color: #78350f;
    font-style: italic;
    font-size: 15px;
    padding: 20px;
}

/* Modern Mode Toggle Styles */
.mode-toggle-container {
    display: flex;
    align-items: center;
    margin-right: 18px;
    padding: 8px 14px;
}

.mode-toggle-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    user-select: none;
}

.mode-toggle-input {
    display: none;
}

.mode-toggle-slider {
    position: relative;
    width: 56px;
    height: 28px;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e0 100%);
    border-radius: 14px;
    margin: 0 10px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #cbd5e0;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.08);
}

.mode-toggle-slider:before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.mode-toggle-input:checked+.mode-toggle-slider {
    background: linear-gradient(135deg, #3182ce 0%, #2563eb 100%);
    border-color: #2563eb;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1), 0 0 12px rgba(49, 130, 206, 0.3);
}

.mode-toggle-input:checked+.mode-toggle-slider:before {
    transform: translateX(28px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.mode-toggle-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: 10px;
    line-height: 1.3;
    gap: 2px;
}

.mode-text-quick,
.mode-text-deep {
    color: #94a3b8;
    transition: all 0.3s ease;
    font-weight: 500;
}

.mode-toggle-input:not(:checked)~.mode-toggle-text .mode-text-quick {
    color: #3182ce;
    font-weight: 700;
    transform: scale(1.05);
}

.mode-toggle-input:checked~.mode-toggle-text .mode-text-deep {
    color: #2563eb;
    font-weight: 700;
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .mode-toggle-container {
        margin-right: 10px;
    }

    .mode-toggle-text {
        font-size: 9px;
    }

    .mode-toggle-slider {
        width: 45px;
        height: 22px;
    }

    .mode-toggle-slider:before {
        width: 14px;
        height: 14px;
    }

    .mode-toggle-input:checked+.mode-toggle-slider:before {
        transform: translateX(23px);
    }
}