/* Verify MC Design System - Financial OS */

/* Primary Teal System */
.bg-verify-teal {
    background-color: #0C8F8B;
}

.hover-verify-teal:hover {
    background-color: #0A7F7B;
}

.text-verify-teal {
    color: #0C8F8B;
}

.border-verify-teal {
    border-color: #0C8F8B;
}

/* Focus ring for teal - softer */
.focus-verify-teal:focus {
    box-shadow: 0 0 0 2px rgba(12, 143, 139, 0.10);
    border-color: rgba(12, 143, 139, 0.45);
}

/* Primary CTA - softened presence */
.btn-primary-soft {
    background-color: #0C8F8B;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: all 0.2s ease;
}

.btn-primary-soft:hover {
    background-color: #0A7F7B;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

/* Custom scrollbar for sidebar */
aside::-webkit-scrollbar {
    width: 6px;
}

aside::-webkit-scrollbar-track {
    background: transparent;
}

aside::-webkit-scrollbar-thumb {
    background-color: #e5e7eb;
    border-radius: 20px;
}

/* Smooth transitions for sidebar text */
.sidebar-text {
    transition: opacity 0.2s ease-in-out, width 0.2s ease-in-out;
    white-space: nowrap;
    overflow: hidden;
}

/* Collapsed sidebar state */
.sidebar-collapsed .sidebar-text {
    opacity: 0;
    width: 0;
    display: none;
}

/* When sidebar is collapsed */
.sidebar-collapsed {
    width: 5rem !important;
}

.sidebar-collapsed #billingSubmenu {
    display: none;
}

/* Adjust main wrapper when sidebar collapsed */
.sidebar-collapsed ~ #mainWrapper {
    margin-left: 5rem;
}

/* Line item animations */
.line-item {
    animation: slideIn 0.2s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom focus styles - Verify MC soft focus */
input:focus, textarea:focus, select:focus {
    box-shadow: 0 0 0 2px rgba(12, 143, 139, 0.10);
    border-color: rgba(12, 143, 139, 0.45);
    outline: none;
    transition: all 120ms ease;
}

/* Softer input borders - fluid form feel */
input, textarea, select {
    border-color: #E5E7EB;
    border-radius: 0.375rem;
}

input:hover, textarea:hover, select:hover {
    border-color: #D1D5DB;
}

/* Readonly/Disabled inputs - no focus glow */
input:read-only, input:disabled, textarea:read-only, textarea:disabled, select:disabled {
    background: #F8FAFC;
    border-color: #E5E7EB;
    color: #64748B;
    cursor: not-allowed;
}

input:read-only:focus, input:disabled:focus, textarea:read-only:focus, textarea:disabled:focus, select:disabled:focus {
    box-shadow: none;
    border-color: #E5E7EB;
}

/* Search input high-visibility focus */
#patientSearch:focus {
    border-color: rgba(12, 143, 139, 0.55);
    box-shadow: 0 0 0 2px rgba(12, 143, 139, 0.12);
}

/* Search icon color transition on focus */
.search-input-wrapper:focus-within [data-lucide="search"] {
    color: #0C8F8B;
}

/* Line item inputs - remove grid feel */
.line-item input,
.line-item select {
    border-color: #E5E7EB;
    background: #FFFFFF;
    box-shadow: none;
}

.line-item input:focus,
.line-item select:focus {
    border-color: rgba(12, 143, 139, 0.45);
    box-shadow: 0 0 0 2px rgba(12, 143, 139, 0.08);
}

/* Add Line Item button - premium treatment */
.btn-add-item {
    border: 1px solid #E5E7EB;
    background: #F8FAFC;
    color: #64748B;
}

.btn-add-item:hover {
    background: #F1F5F9;
    border-color: #E2E8F0;
    color: #475569;
}

/* Financial precision alignment */
.financial-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.375rem 0;
}

.financial-amount {
    text-align: right;
    font-variant-numeric: tabular-nums;
    min-width: 80px;
}

/* Date picker custom styles */
input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.5;
    transition: 0.2s;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 0.8;
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white;
    }
    
    aside, header, #mobileSummary, .sticky {
        display: none !important;
    }
    
    #mainWrapper {
        margin-left: 0 !important;
    }
    
    main {
        padding: 0 !important;
    }
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    #mainWrapper {
        margin-left: 0 !important;
    }
}

/* Animation for search results */
#searchResults {
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Button press effect */
button:active {
    transform: scale(0.98);
}

/* Custom checkbox for line items - Verify MC teal */
.custom-checkbox {
    appearance: none;
    width: 1rem;
    height: 1rem;
    border: 2px solid #E5E7EB;
    border-radius: 0.25rem;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}

.custom-checkbox:checked {
    background-color: #0C8F8B;
    border-color: #0C8F8B;
}

.custom-checkbox:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Line item row softening */
.line-item {
    border-bottom: 1px solid rgba(229, 231, 235, 0.6);
}

.line-item:hover {
    background-color: #F8FAFC;
}

/* Table header softening */
thead tr {
    border-bottom-color: rgba(229, 231, 235, 0.8);
}

/* Warning box softening */
.warning-soft {
    background-color: #FEFCE8;
    border-color: rgba(245, 158, 11, 0.25);
}

.warning-soft i,
.warning-soft svg {
    opacity: 0.75;
}

/* Summary label/value hierarchy */
.summary-label {
    color: #64748B;
}

.summary-value {
    color: #0F172A;
}

/* Total amount - typography driven, hierarchy rebalanced */
.total-amount {
    color: #0F172A;
    font-weight: 500;
    font-size: 1.25rem;
    line-height: 1.75rem;
    letter-spacing: -0.01em;
}

/* Secondary button ghost style */
.btn-ghost-secondary {
    background-color: transparent;
    border-color: #E5E7EB;
    color: #64748B;
}

.btn-ghost-secondary:hover {
    background-color: #F8FAFC;
    border-color: #D1D5DB;
    color: #475569;
}

/* Tertiary button - lowest emphasis */
.btn-tertiary {
    background-color: transparent;
    border-color: transparent;
    color: #94A3B8;
}

.btn-tertiary:hover {
    background-color: #F8FAFC;
    color: #64748B;
}

/* Sidebar active state - Verify MC - more subtle */
.sidebar-active {
    background-color: rgba(12, 143, 139, 0.06);
    color: #0C8F8B;
}

.sidebar-active svg,
.sidebar-active i {
    color: #0C8F8B;
}