/* ============================================
   CLAIMCHECKUP SHARED STYLES
   ============================================ */

* {
    box-sizing: border-box;
    -webkit-user-select: none;
    user-select: none;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: linear-gradient(145deg, #0f0f1a 0%, #1a1a2e 50%, #0f0f1a 100%);
    min-height: 100vh;
    cursor: default;
}

h1, h2, h3, h4, p, span, div, label, svg, path {
    cursor: default;
}

a, button, [role="button"], select {
    cursor: pointer;
}

input, textarea {
    cursor: text;
    -webkit-user-select: text;
    user-select: text;
}

input[type="checkbox"], input[type="date"] {
    cursor: pointer;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #818cf8 0%, #6366f1 50%, #4f46e5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glass Card */
.glass-card {
    background: rgba(99,102,241,0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(99,102,241,0.15);
}

/* Upload Zone */
.upload-zone {
    border: 2px dashed rgba(129,140,248,0.3);
    transition: all 0.3s ease;
}

.upload-zone:hover, .upload-zone.drag-over {
    border-color: rgba(129,140,248,0.6);
    background: rgba(99,102,241,0.08);
}

.upload-zone.uploaded {
    border-color: rgba(129,140,248,0.8);
    border-style: solid;
    background: rgba(99,102,241,0.12);
}

/* Noise Overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.03;
}

/* Severity Classes */
.severity-critical {
    background: linear-gradient(135deg, rgba(220,38,38,0.15) 0%, rgba(153,27,27,0.15) 100%);
    border: 1px solid rgba(220,38,38,0.4);
}

.severity-high {
    background: linear-gradient(135deg, rgba(239,68,68,0.15) 0%, rgba(185,28,28,0.15) 100%);
    border: 1px solid rgba(239,68,68,0.3);
}

.severity-medium {
    background: linear-gradient(135deg, rgba(245,158,11,0.15) 0%, rgba(217,119,6,0.15) 100%);
    border: 1px solid rgba(245,158,11,0.3);
}

.severity-advisory {
    background: linear-gradient(135deg, rgba(99,102,241,0.15) 0%, rgba(79,70,229,0.15) 100%);
    border: 1px solid rgba(99,102,241,0.3);
}

/* Status Classes */
.status-critical {
    background: linear-gradient(135deg, rgba(220,38,38,0.1) 0%, rgba(153,27,27,0.1) 100%);
    border: 1px solid rgba(220,38,38,0.4);
}

.status-high {
    background: linear-gradient(135deg, rgba(239,68,68,0.1) 0%, rgba(185,28,28,0.1) 100%);
    border: 1px solid rgba(239,68,68,0.4);
}

.status-medium {
    background: linear-gradient(135deg, rgba(245,158,11,0.1) 0%, rgba(217,119,6,0.1) 100%);
    border: 1px solid rgba(245,158,11,0.4);
}

.status-good {
    background: linear-gradient(135deg, rgba(34,197,94,0.1) 0%, rgba(22,163,74,0.1) 100%);
    border: 1px solid rgba(34,197,94,0.4);
}

/* File Input */
input[type="file"] {
    display: none;
}

/* Date Input */
input[type="date"] {
    color-scheme: dark;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.7);
    cursor: pointer;
}

/* Finding Card */
.finding-card {
    transition: all 0.2s ease;
}

.finding-card:hover {
    transform: translateX(4px);
}

/* Screen Transition */
.screen-transition {
    animation: fadeIn 0.4s ease-out;
}

/* Edited Field */
.edited-field {
    background-color: rgba(251,191,36,0.15) !important;
    border-color: rgba(251,191,36,0.5) !important;
}

.edited-badge {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

/* Line Clamp */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Paywall Blur */
.paywall-blur {
    filter: blur(8px);
    user-select: none;
    pointer-events: none;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(99,102,241,0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(99,102,241,0.5);
}

/* Select */
select {
    background-color: #1e1e38 !important;
    color: white !important;
}

select option {
    background-color: #1e1e38 !important;
    color: white !important;
}

/* Tooltip */
.tooltip-container {
    position: relative;
    display: inline-flex;
}

.tooltip-content {
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 8px;
    padding: 12px 16px;
    background: rgba(26,26,46,0.98);
    border: 1px solid rgba(99,102,241,0.2);
    border-radius: 12px;
    width: 280px;
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.tooltip-container:hover .tooltip-content {
    opacity: 1;
    visibility: visible;
}

/* Member Card */
.member-card {
    transition: all 0.2s ease;
    cursor: pointer;
}

.member-card:hover {
    border-color: rgba(129,140,248,0.5);
}

.member-card.selected {
    border-color: rgba(129,140,248,0.8);
    background: rgba(99,102,241,0.15);
}

/* Flow Card */
.flow-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.flow-card:hover {
    border-color: rgba(129,140,248,0.5);
    transform: translateY(-2px);
}

.flow-card.selected {
    border-color: rgba(129,140,248,0.8);
    background: rgba(99,102,241,0.15);
}

/* Legal Link */
.legal-link {
    color: #a5b4fc;
    text-decoration: underline;
    cursor: pointer;
}

.legal-link:hover {
    color: #c7d2fe;
}

/* Processing Overlay */
.processing-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 15, 26, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Animations */
@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes slideUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
    0% { opacity: 0; transform: translateX(20px); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out;
}

.animate-slide-up {
    animation: slideUp 0.5s ease-out;
}

.animate-slide-in-right {
    animation: slideInRight 0.4s ease-out;
}

.animate-spin-slow {
    animation: spin 2s linear infinite;
}

/* Responsive Tooltip */
@media (max-width: 768px) {
    .tooltip-content {
        left: 50%;
        top: 100%;
        transform: translateX(-50%);
        margin-left: 0;
        margin-top: 8px;
        width: 240px;
    }
}
