/* Antigravity Custom Styles */

/* Glassmorphism Utilities */
.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dark .glass-panel {
    background: rgba(15, 23, 42, 0.6); /* Slate-900 with opacity */
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
}

.dark .glass-header {
    background: rgba(15, 23, 42, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-sidebar {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(229, 231, 235, 0.5);
}

.dark .glass-sidebar {
    background: rgba(15, 23, 42, 0.8);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

/* Floating Animation */
.antigravity-float {
    transition: all 0.3s ease;
}

.antigravity-float:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

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

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.dark ::-webkit-scrollbar-thumb {
    background: #334155;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.dark ::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* Gradient Text */
.text-gradient {
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-image: linear-gradient(to right, #2563eb, #4f46e5);
}

.dark .text-gradient {
    background-image: linear-gradient(to right, #60a5fa, #818cf8);
}

/* Hide scrollbar but keep functionality */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
/* Premium Form Elements - Checkboxes & Radios */
input[type="checkbox"]:not(.sr-only), input[type="radio"]:not(.sr-only) {
    -webkit-appearance: none;
    appearance: none;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid #d1d5db; /* gray-300 */
    background-color: transparent;
    cursor: pointer;
    position: relative;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    vertical-align: middle;
}

input[type="checkbox"]:not(.sr-only) { border-radius: 6px; }
input[type="radio"]:not(.sr-only) { border-radius: 50%; }

.dark input[type="checkbox"]:not(.sr-only), .dark input[type="radio"]:not(.sr-only) {
    border-color: #475569; /* slate-600 */
}

input[type="checkbox"]:not(.sr-only):checked, input[type="radio"]:not(.sr-only):checked {
    background-color: #2563eb; /* blue-600 */
    border-color: #2563eb;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2), 0 2px 4px -1px rgba(37, 99, 235, 0.1);
}

.dark input[type="checkbox"]:not(.sr-only):checked, .dark input[type="radio"]:not(.sr-only):checked {
    background-color: #6366f1; /* indigo-500 */
    border-color: #6366f1;
    box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.2), 0 2px 4px -1px rgba(99, 102, 241, 0.1);
}

/* Custom Checkmark Icon */
input[type="checkbox"]:not(.sr-only):checked::after {
    content: "";
    position: absolute;
    left: 4.5px;
    top: 1px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}

/* Custom Radio Dot */
input[type="radio"]:not(.sr-only):checked::after {
    content: "";
    position: absolute;
    left: 4.5px;
    top: 4.5px;
    width: 7px;
    height: 7px;
    background-color: white;
    border-radius: 50%;
}

/* Indeterminate state (for parent checkbox) */
input[type="checkbox"]:not(.sr-only):indeterminate {
    background-color: #2563eb;
    border-color: #2563eb;
}

input[type="checkbox"]:not(.sr-only):indeterminate::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 7px;
    width: 8px;
    height: 2px;
    background-color: white;
    border-radius: 1px;
}

input[type="checkbox"]:not(.sr-only):hover, input[type="radio"]:not(.sr-only):hover {
    border-color: #3b82f6;
    transform: scale(1.05);
}

input[type="checkbox"]:not(.sr-only):focus, input[type="radio"]:not(.sr-only):focus {
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

/* Reply Context & Tracking Habit */
@keyframes highlight-flash {
    0% { background-color: rgba(59, 130, 246, 0.2); }
    100% { background-color: transparent; }
}

.highlight-flash {
    animation: highlight-flash 2s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
}

/* Quote Arrow Styling */
.quote-arrow {
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    font-weight: 900;
}
