/* 
 * Projekto dokumentacija - Tailwind CSS stiliai
 * Mobile-first, Dark mode palaikymas
 */

/* Tailwind baziniai stiliai (CDN versija neveiks su shared hosting, todėl įtraukiame rankiniu būdu) */

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Root kintamieji */
:root {
    --color-primary: #6366f1;
    --color-primary-dark: #4f46e5;
    --color-secondary: #64748b;
    --color-success: #10b981;
    --color-danger: #ef4444;
    --color-warning: #f59e0b;
    
    --bg-light: #f8fafc;
    --bg-dark: #0f172a;
    --text-light: #0f172a;
    --text-dark: #f1f5f9;
}

/* Baziniai stiliai */
html {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    background-color: var(--bg-light);
    color: var(--text-light);
}

/* Dark mode - body background and text */
html.dark,
html.dark body {
    background-color: #0f172a !important;
    color: #f1f5f9 !important;
}

html.dark .bg-slate-50 {
    background-color: #0f172a !important;
}

html.dark .text-slate-900 {
    color: #f1f5f9 !important;
}

/* Navigation backgrounds */
.bg-white\/80 { background-color: rgba(255, 255, 255, 0.8); }
.bg-white\/90 { background-color: rgba(255, 255, 255, 0.9); }

html.dark .bg-white\/80,
html.dark .bg-white\/90 { 
    background-color: rgba(30, 41, 59, 0.8) !important; 
}

/* Border colors */
.border-slate-200 { border-color: #e2e8f0; }
html.dark .border-slate-200 { border-color: #334155 !important; }

/* Utility classes */
.min-h-screen { min-height: 100vh; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.inline { display: inline; }

/* Dark mode visibility */
.dark .dark\:hidden { display: none !important; }
.dark .dark\:inline { display: inline !important; }
.dark .dark\:block { display: block !important; }
.dark .dark\:flex { display: flex !important; }

.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }
.justify-end { justify-content: flex-end; }

.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1 1 0%; }
.shrink-0 { flex-shrink: 0; }

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

.p-0\.5 { padding: 0.125rem; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }

.pl-3 { padding-left: 0.75rem; }
.pl-4 { padding-left: 1rem; }
.pl-10 { padding-left: 2.5rem; }
.pr-3 { padding-right: 0.75rem; }
.pt-3 { padding-top: 0.75rem; }
.pt-4 { padding-top: 1rem; }
.pt-20 { padding-top: 5rem; }
.pb-2 { padding-bottom: 0.5rem; }
.pb-8 { padding-bottom: 2rem; }
.pb-20 { padding-bottom: 5rem; }

.m-0 { margin: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }

.w-4 { width: 1rem; }
.w-8 { width: 2rem; }
.w-10 { width: 2.5rem; }
.w-12 { width: 3rem; }
.w-16 { width: 4rem; }
.w-20 { width: 5rem; }
.w-40 { width: 10rem; }
.w-full { width: 100%; }
.w-auto { width: auto; }
.max-w-sm { max-width: 24rem; }
.max-w-md { max-width: 28rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-7xl { max-width: 80rem; }
.max-w-none { max-width: none; }

.h-4 { height: 1rem; }
.h-8 { height: 2rem; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.h-16 { height: 4rem; }
.h-20 { height: 5rem; }
.min-w-0 { min-width: 0; }
.max-h-64 { max-height: 16rem; }

.mx-auto { margin-left: auto; margin-right: auto; }

.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-8xl { font-size: 6rem; line-height: 1; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.text-center { text-align: center; }

.text-white { color: #ffffff; }
.text-slate-400 { color: #94a3b8; }
.text-slate-500 { color: #64748b; }
.text-slate-600 { color: #475569; }
.text-slate-700 { color: #334155; }
.text-slate-900 { color: #0f172a; }
.text-indigo-600 { color: #4f46e5; }
.text-red-500 { color: #ef4444; }
.text-red-600 { color: #dc2626; }
.text-amber-600 { color: #d97706; }
.text-blue-600 { color: #2563eb; }
.text-emerald-600 { color: #059669; }
.text-emerald-700 { color: #047857; }

.text-slate-300 { color: #cbd5e1; }
.dark .text-slate-300 { color: #cbd5e1; }
.dark .text-slate-400 { color: #94a3b8; }
.dark .text-white { color: #ffffff; }
.dark .text-indigo-400 { color: #818cf8; }
.dark .text-red-400 { color: #f87171; }
.dark .text-amber-400 { color: #fbbf24; }
.dark .text-blue-400 { color: #60a5fa; }
.dark .text-emerald-400 { color: #34d399; }

.bg-white { background-color: #ffffff; }
.bg-slate-50 { background-color: #f8fafc; }
.bg-slate-100 { background-color: #f1f5f9; }
.bg-slate-200 { background-color: #e2e8f0; }
.bg-indigo-50 { background-color: #eef2ff; }
.bg-indigo-600 { background-color: #4f46e5; }
.bg-emerald-100 { background-color: #d1fae5; }
.bg-emerald-600 { background-color: #059669; }
.bg-amber-100 { background-color: #fef3c7; }
.bg-blue-100 { background-color: #dbeafe; }
.bg-red-100 { background-color: #fee2e2; }

.dark .bg-slate-700 { background-color: #334155; }
.dark .bg-slate-800 { background-color: #1e293b; }
.dark .bg-slate-900 { background-color: #0f172a; }
.dark .bg-amber-900\/30 { background-color: rgba(120, 53, 15, 0.3); }
.dark .bg-blue-900\/30 { background-color: rgba(30, 58, 138, 0.3); }
.dark .bg-red-900\/30 { background-color: rgba(127, 29, 29, 0.3); }
.dark .bg-emerald-900\/30 { background-color: rgba(6, 78, 59, 0.3); }

.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

.border { border-width: 1px; }
.border-t { border-top-width: 1px; }
.border-b { border-bottom-width: 1px; }
.border-slate-100 { border-color: #f1f5f9; }
.border-slate-200 { border-color: #e2e8f0; }
.border-slate-600 { border-color: #475569; }
.border-indigo-500 { border-color: #6366f1; }

.dark .border-slate-600 { border-color: #475569; }
.dark .border-slate-700 { border-color: #334155; }

.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.shadow { box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }

.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }
.overflow-y-auto { overflow-y: auto; }

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.inset-y-0 { top: 0; bottom: 0; }
.top-0 { top: 0; }
.right-0 { right: 0; }
.right-4 { right: 1rem; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }
.top-20 { top: 5rem; }
.z-50 { z-index: 50; }

.pointer-events-none { pointer-events: none; }
.cursor-pointer { cursor: pointer; }

.transition-all { transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1); }
.transition-colors { transition: color 150ms, background-color 150ms, border-color 150ms; }
.transition-opacity { transition: opacity 150ms; }
.transition-shadow { transition: box-shadow 150ms; }

.opacity-0 { opacity: 0; }
.group:hover .group-hover\:opacity-100 { opacity: 1; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.antialiased {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.object-contain { object-fit: contain; }
.align-middle { vertical-align: middle; }

/* Animacijos */
@keyframes spin {
    to { transform: rotate(360deg); }
}
.animate-spin { animation: spin 1s linear infinite; }

/* Gradient */
.bg-gradient-to-br {
    background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));
}
.from-indigo-500 { --tw-gradient-from: #6366f1; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(99, 102, 241, 0)); }
.via-purple-500 { --tw-gradient-stops: var(--tw-gradient-from), #a855f7, var(--tw-gradient-to, rgba(168, 85, 247, 0)); }
.to-purple-500 { --tw-gradient-to: #a855f7; }
.to-pink-500 { --tw-gradient-to: #ec4899; }

/* Backdrop blur */
.backdrop-blur-lg {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* Grid utilities */
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Media queries */
@media (min-width: 640px) {
    .sm\:flex-row { flex-direction: row; }
    .sm\:flex-1 { flex: 1 1 0%; }
    .sm\:items-center { align-items: center; }
    .sm\:justify-between { justify-content: space-between; }
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
    .sm\:pb-0 { padding-bottom: 0; }
    .sm\:w-40 { width: 10rem; }
    .sm\:w-48 { width: 12rem; }
    .sm\:inline { display: inline !important; }
}

@media (min-width: 768px) {
    .md\:flex { display: flex !important; }
    .md\:hidden { display: none !important; }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .md\:pb-8 { padding-bottom: 2rem; }
}

@media (min-width: 1024px) {
    .lg\:flex-row { flex-direction: row; }
    .lg\:items-start { align-items: flex-start; }
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
}

/* Komponentai */

/* Kortelė */
.card {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

html.dark .card,
.dark .card {
    background: #1e293b;
    border-color: #334155;
}

/* Įvesties laukai */
.input {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    line-height: 1.5rem;
    min-height: 2.75rem;
    color: #0f172a;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    transition: border-color 150ms, box-shadow 150ms;
    box-sizing: border-box;
}

select.input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.5rem;
}

.input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

html.dark .input,
.dark .input {
    background: #0f172a;
    border-color: #334155;
    color: #f1f5f9;
}

html.dark .input:focus,
.dark .input:focus {
    border-color: #818cf8;
}

/* Input with icon */
.input.pl-10 {
    padding-left: 2.5rem;
}

/* Input icon container */
.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.inset-y-0 {
    top: 0;
    bottom: 0;
}

.left-0 {
    left: 0;
}

.right-0 {
    right: 0;
}

.pr-3 {
    padding-right: 0.75rem;
}

.pointer-events-none {
    pointer-events: none;
}

/* Icon container in input */
.relative > .absolute.inset-y-0 {
    display: flex;
    align-items: center;
}

.relative > .absolute.inset-y-0 svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.375rem;
}

.dark .label {
    color: #d1d5db;
}

/* Checkbox */
.checkbox {
    width: 1rem;
    height: 1rem;
    border-radius: 0.25rem;
    border: 1px solid #d1d5db;
    cursor: pointer;
}

.checkbox:checked {
    background: #6366f1;
    border-color: #6366f1;
}

/* Mygtukai */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
    font-weight: 500;
    min-height: 2.75rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all 150ms;
    text-decoration: none;
    box-sizing: border-box;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #4f46e5, #4338ca);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
    background: #e2e8f0;
}

.dark .btn-secondary {
    background: #334155;
    color: #e2e8f0;
    border-color: #475569;
}

.dark .btn-secondary:hover {
    background: #475569;
}

.btn-danger {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.btn-danger:hover {
    background: #fee2e2;
}

/* Icon button */
.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    color: #64748b;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 150ms;
}

.icon-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.dark .icon-btn:hover {
    background: #334155;
    color: #f1f5f9;
}

.icon-btn-sm {
    width: 2rem;
    height: 2rem;
    border-radius: 0.375rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 150ms;
}

.icon-btn-sm:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.dark .icon-btn-sm:hover {
    background: #334155;
    color: #f1f5f9;
}

/* Navigacija */
.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #64748b;
    text-decoration: none;
    transition: all 150ms;
}

.nav-link:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.nav-link.active {
    background: #eef2ff;
    color: #4f46e5;
}

.dark .nav-link:hover {
    background: #334155;
    color: #f1f5f9;
}

.dark .nav-link.active {
    background: rgba(99, 102, 241, 0.2);
    color: #818cf8;
}

/* Mobile navigacija */
.mobile-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem;
    font-size: 0.625rem;
    font-weight: 500;
    color: #64748b;
    text-decoration: none;
    transition: color 150ms;
}

.mobile-nav-link.active {
    color: #4f46e5;
}

.dark .mobile-nav-link.active {
    color: #818cf8;
}

/* Tabs */
.tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #64748b;
    border: none;
    background: none;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 150ms;
}

.tab:hover {
    color: #0f172a;
}

.tab.active {
    color: #4f46e5;
    border-bottom-color: #4f46e5;
}

.dark .tab:hover {
    color: #f1f5f9;
}

.dark .tab.active {
    color: #818cf8;
    border-bottom-color: #818cf8;
}

/* Status badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 9999px;
}

.status-draft {
    background: #fef3c7;
    color: #92400e;
}

.status-active {
    background: #d1fae5;
    color: #065f46;
}

.status-completed {
    background: #dbeafe;
    color: #1e40af;
}

.status-archived {
    background: #e2e8f0;
    color: #475569;
}

/* Filter chip */
.filter-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #64748b;
    background: #f1f5f9;
    border-radius: 9999px;
    text-decoration: none;
    white-space: nowrap;
    transition: all 150ms;
}

.filter-chip:hover {
    background: #e2e8f0;
}

.filter-chip.active {
    background: #6366f1;
    color: white;
}

.dark .filter-chip {
    background: #334155;
    color: #94a3b8;
}

.dark .filter-chip:hover {
    background: #475569;
}

.dark .filter-chip.active {
    background: #6366f1;
    color: white;
}

/* Tech badge */
.tech-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #475569;
    background: #f1f5f9;
    border-radius: 0.375rem;
}

.dark .tech-badge {
    background: #334155;
    color: #cbd5e1;
}

/* Tag badge */
.tag-badge {
    display: inline-flex;
    padding: 0.125rem 0.5rem;
    font-size: 0.625rem;
    font-weight: 600;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

/* Compatibility badge */
.compat-badge {
    display: inline-flex;
    padding: 0.125rem 0.5rem;
    font-size: 0.625rem;
    font-weight: 500;
    border-radius: 0.25rem;
    border: 1px solid #10b981;
    color: #059669;
    background: rgba(16, 185, 129, 0.1);
}

.dark .compat-badge {
    color: #34d399;
}

/* Tag/Compat select */
.tag-select,
.compat-select {
    cursor: pointer;
}

.tag-select span,
.compat-select span {
    display: inline-flex;
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 0.375rem;
    border: 1px solid #e2e8f0;
    background: white;
    color: #64748b;
    cursor: pointer;
    transition: all 150ms;
}

.tag-select span:hover,
.compat-select span:hover {
    border-color: #6366f1;
    color: #4f46e5;
}

/* Peer-checked state for tag/compat select */
.tag-select input:checked + span,
.compat-select input:checked + span {
    background: #6366f1;
    border-color: #6366f1;
    color: white;
}

.dark .tag-select span,
.dark .compat-select span {
    border-color: #475569;
    background: #1e293b;
    color: #94a3b8;
}

.dark .tag-select span:hover,
.dark .compat-select span:hover {
    border-color: #818cf8;
    color: #818cf8;
}

.dark .tag-select input:checked + span,
.dark .compat-select input:checked + span {
    background: #6366f1;
    border-color: #6366f1;
    color: white;
}

/* Technology checkbox in projects */
.tech-checkbox {
    cursor: pointer;
    display: block;
}

.tech-checkbox-inner {
    transition: all 150ms;
}

.tech-checkbox input:checked + .tech-checkbox-inner {
    border-color: #6366f1;
    background: #eef2ff;
}

.tech-checkbox input:checked + .tech-checkbox-inner .tech-check-icon {
    color: #6366f1;
}

.dark .tech-checkbox input:checked + .tech-checkbox-inner {
    border-color: #818cf8;
    background: rgba(99, 102, 241, 0.2);
}

.dark .tech-checkbox input:checked + .tech-checkbox-inner .tech-check-icon {
    color: #818cf8;
}

/* Theme/Language button */
.theme-btn,
.lang-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    background: white;
    color: #64748b;
    cursor: pointer;
    transition: all 150ms;
}

.theme-btn:hover,
.lang-btn:hover {
    border-color: #6366f1;
    color: #4f46e5;
}

.theme-btn.active,
.lang-btn.active {
    background: #eef2ff;
    border-color: #6366f1;
    color: #4f46e5;
}

.dark .theme-btn,
.dark .lang-btn {
    background: #1e293b;
    border-color: #334155;
    color: #94a3b8;
}

.dark .theme-btn:hover,
.dark .lang-btn:hover {
    border-color: #818cf8;
    color: #818cf8;
}

.dark .theme-btn.active,
.dark .lang-btn.active {
    background: rgba(99, 102, 241, 0.2);
    border-color: #818cf8;
    color: #818cf8;
}

/* Flash messages */
.flash-message {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.flash-success {
    background: #d1fae5;
    color: #065f46;
}

.flash-error {
    background: #fee2e2;
    color: #991b1b;
}

.flash-info {
    background: #dbeafe;
    color: #1e40af;
}

.flash-close {
    padding: 0.25rem;
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.7;
}

.flash-close:hover {
    opacity: 1;
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.hidden {
    display: none !important;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    width: 100%;
    max-width: 28rem;
    max-height: 90vh;
    overflow: auto;
}

.dark .modal-content {
    background: #1e293b;
}

/* Space helpers */
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }

.whitespace-nowrap { white-space: nowrap; }

.divide-y > * + * {
    border-top: 1px solid #f1f5f9;
}

.dark .divide-y > * + * {
    border-top-color: #334155;
}

/* Prose (AI generated content styling) */
.prose {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: #334155;
}

.prose h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.prose h1:first-child {
    margin-top: 0;
}

.prose h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.prose h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 0.375rem;
    color: #334155;
}

.prose h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 0.75rem;
    margin-bottom: 0.25rem;
}

.prose p {
    margin-bottom: 0.625rem;
}

.prose ul, .prose ol {
    margin: 0.5rem 0 0.75rem 0;
    padding-left: 1.25rem;
}

.prose ul {
    list-style: disc;
}

.prose ol {
    list-style: decimal;
}

.prose li {
    margin-bottom: 0.25rem;
    padding-left: 0.25rem;
}

.prose li::marker {
    color: #6366f1;
}

.prose strong {
    font-weight: 600;
    color: #1e293b;
}

.prose em {
    font-style: italic;
}

.prose code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.8125rem;
    background: #f1f5f9;
    color: #6366f1;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
}

.prose pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 0.75rem 0;
    font-size: 0.8125rem;
}

.prose pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

.prose hr {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 1.25rem 0;
}

.prose a {
    color: #4f46e5;
    text-decoration: underline;
}

.prose a:hover {
    color: #4338ca;
}

/* Remove extra breaks between elements */
.prose br + br {
    display: none;
}

.prose h1 + br,
.prose h2 + br,
.prose h3 + br,
.prose h4 + br,
.prose li + br,
.prose hr + br,
.prose br + h1,
.prose br + h2,
.prose br + h3,
.prose br + h4,
.prose br + ul,
.prose br + ol {
    display: none;
}

/* Dark mode prose */
.dark .prose {
    color: #cbd5e1;
}

.dark .prose h1 {
    color: #f1f5f9;
    border-bottom-color: #334155;
}

.dark .prose h2 {
    color: #f1f5f9;
}

.dark .prose h3 {
    color: #e2e8f0;
}

.dark .prose strong {
    color: #f1f5f9;
}

.dark .prose code {
    background: #334155;
    color: #a5b4fc;
}

.dark .prose hr {
    border-top-color: #334155;
}

.dark .prose a {
    color: #818cf8;
}

.dark .prose a:hover {
    color: #a5b4fc;
}

/* Safe area pentru iOS */
.safe-bottom {
    padding-bottom: env(safe-area-inset-bottom);
}

/* Hover effects */
.hover\:shadow-lg:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.hover\:underline:hover {
    text-decoration: underline;
}

.hover\:bg-slate-50:hover {
    background-color: #f8fafc;
}

.hover\:bg-emerald-200:hover {
    background-color: #a7f3d0;
}

.hover\:text-slate-700:hover {
    color: #334155;
}

.dark .hover\:bg-slate-700\/50:hover,
.dark .dark\:hover\:bg-slate-700\/50:hover {
    background-color: rgba(51, 65, 85, 0.5);
}

.dark .dark\:hover\:bg-emerald-900\/50:hover {
    background-color: rgba(6, 78, 59, 0.5);
}

.dark .dark\:hover\:text-slate-200:hover {
    color: #e2e8f0;
}

.group:hover .group-hover\:text-indigo-600 {
    color: #4f46e5;
}

.dark .group:hover .dark\:group-hover\:text-indigo-400 {
    color: #818cf8;
}

/* Peer checked */
.peer:checked ~ .peer-checked\:border-indigo-500 { border-color: #6366f1; }
.peer:checked ~ .peer-checked\:bg-indigo-50 { background-color: #eef2ff; }
.peer:checked ~ .peer-checked\:text-indigo-600 { color: #4f46e5; }
.dark .peer:checked ~ .dark\:peer-checked\:bg-indigo-900\/20 { background-color: rgba(49, 46, 129, 0.2); }

/* Print */
@media print {
    .no-print { display: none; }
}
