/* style.css - Complete Offline Light High-Contrast Styling System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&family=Space+Grotesk:wght@400;500;600;700&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
    background-color: #f1f5f9;
    color: #1e293b;
    min-height: 100vh;
}

/* Typography Helpers */
.font-sans { font-family: 'Inter', sans-serif; }
.font-display { font-family: 'Space Grotesk', sans-serif; }
.font-mono { font-family: 'JetBrains Mono', monospace; }

/* Flex/Grid utilities */
.flex { display: flex !important; }
.flex-col { flex-direction: column !important; }
.flex-row { flex-direction: row !important; }
.flex-grow { flex-grow: 1 !important; }
.shrink-0 { flex-shrink: 0 !important; }
.justify-between { justify-content: space-between !important; }
.justify-center { justify-content: center !important; }
.items-center { align-items: center !important; }
.items-stretch { align-items: stretch !important; }
.items-end { align-items: flex-end !important; }
.items-start { align-items: flex-start !important; }
.grid { display: grid !important; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)) !important; }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
.col-span-1 { grid-column: span 1 / span 1 !important; }
.col-span-2 { grid-column: span 2 / span 2 !important; }
.col-span-3 { grid-column: span 3 / span 3 !important; }
.col-span-4 { grid-column: span 4 / span 4 !important; }
.block { display: block !important; }
.inline-block { display: inline-block !important; }
.hidden { display: none !important; }

.gap-1 { gap: 0.25rem !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 0.75rem !important; }
.gap-4 { gap: 1rem !important; }
.gap-6 { gap: 1.5rem !important; }
.gap-8 { gap: 2rem !important; }

@media (min-width: 768px) {
    .md\:grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)) !important; }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
    .md\:col-span-1 { grid-column: span 1 / span 1 !important; }
    .md\:col-span-2 { grid-column: span 2 / span 2 !important; }
    .md\:col-span-3 { grid-column: span 3 / span 3 !important; }
    .md\:col-span-4 { grid-column: span 4 / span 4 !important; }
    .md\:flex-row { flex-direction: row !important; }
    .md\:items-center { align-items: center !important; }
}

/* Space-between Utilities */
.space-y-1 > * + * { margin-top: 0.25rem !important; }
.space-y-2 > * + * { margin-top: 0.5rem !important; }
.space-y-3 > * + * { margin-top: 0.75rem !important; }
.space-y-4 > * + * { margin-top: 1rem !important; }
.space-y-6 > * + * { margin-top: 1.5rem !important; }

.space-x-1 > * + * { margin-left: 0.25rem !important; }
.space-x-2 > * + * { margin-left: 0.5rem !important; }
.space-x-3 > * + * { margin-left: 0.75rem !important; }
.space-x-4 > * + * { margin-left: 1rem !important; }
.space-x-6 > * + * { margin-left: 1.5rem !important; }

/* Layout containers */
.min-h-screen { min-height: 100vh !important; }
.w-full { width: 100% !important; }
.h-full { height: 100% !important; }
.w-48 { width: 12rem !important; }
.w-60 { width: 15rem !important; }
.max-w-md { max-width: 28rem !important; }
.max-w-7xl { max-width: 80rem !important; }
.max-w-4xl { max-width: 56rem !important; }
.max-w-3xl { max-width: 48rem !important; }
.mx-auto { margin-left: auto; margin-right: auto; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.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; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }

/* Light Theme mapping for background classes to keep HTML clean and 100% functional */
.bg-slate-950 { background-color: #f1f5f9; }
.bg-slate-900\/40 { background-color: #ffffff; border: 1px solid #cbd5e1; }
.bg-slate-900\/60 { background-color: #ffffff; border: 1px solid #cbd5e1; }
.bg-slate-900\/30 { background-color: #f8fafc; border: 1px solid #cbd5e1; }
.bg-slate-950\/80 { background-color: #ffffff; border: 1px solid #cbd5e1; }
.bg-emerald-500\/10 { background-color: rgba(16, 185, 129, 0.08); }
.border { border-style: solid; border-width: 1px; }
.border-t { border-top: 1px solid #e2e8f0; }
.border-b { border-bottom: 1px solid #e2e8f0; }
.border-white\/5 { border-color: #cbd5e1; }
.border-emerald-500\/20 { border-color: #10b981; }

/* Text styling - High Contrast Light Mode */
.text-white { color: #0f172a !important; }
.text-slate-100 { color: #1e293b !important; }
.text-slate-200 { color: #334155 !important; }
.text-slate-300 { color: #334155 !important; }
.text-slate-400 { color: #475569 !important; }
.text-slate-500 { color: #64748b !important; }
.text-slate-600 { color: #475569 !important; }
.text-emerald-400 { color: #047857 !important; }
.text-emerald-500 { color: #059669 !important; }
.text-red-400 { color: #dc2626 !important; }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.font-black { font-weight: 900; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-widest { letter-spacing: 0.1em; }
.uppercase { text-transform: uppercase; }
.text-center { text-align: center !important; }
.text-right { text-align: right !important; }
.text-left { text-align: left !important; }
.italic { font-style: italic !important; }

/* Panels, cards and inputs in Light Mode */
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-lg { border-radius: 0.5rem; }
.shadow-lg { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03); }
.shadow-2xl { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.backdrop-blur-md { background-color: #ffffff !important; border: 1px solid #cbd5e1; }

/* Form inputs styling */
input:not([type="checkbox"]):not([type="radio"]), select, textarea {
    width: 100%;
    background-color: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 0.5rem;
    padding: 0.625rem 1rem;
    color: #0f172a !important;
    font-size: 0.75rem;
    font-family: inherit;
    transition: all 0.2s;
}
input[type="checkbox"], input[type="radio"] {
    width: auto !important;
    height: auto !important;
    margin-right: 0.5rem;
    cursor: pointer;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #10b981 !important;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.1) !important;
}

/* Beautiful Tactile Raised Buttons with Unique Identification Colors */
button, .btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 0.5rem !important;
    font-weight: 800 !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    padding: 0.625rem 1.25rem !important;
    cursor: pointer !important;
    position: relative !important;
    transition: all 0.1s ease-in-out !important;
    transform: translateY(-2px) !important;
}

/* 1. Emerald / Green Raised Buttons (Primary, Save, Connect) */
button.bg-emerald-500, button.bg-emerald-600, .bg-emerald-500, .bg-emerald-600, button[type="submit"] {
    background-color: #10b981 !important;
    color: #ffffff !important;
    border: none !important;
    border-bottom: 4px solid #059669 !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
}
button.bg-emerald-500:hover, button.bg-emerald-600:hover, .bg-emerald-500:hover, .bg-emerald-600:hover, button[type="submit"]:hover {
    background-color: #059669 !important;
    transform: translateY(-1px) !important;
    border-bottom-width: 3px !important;
}
button.bg-emerald-500:active, button.bg-emerald-600:active, .bg-emerald-500:active, .bg-emerald-600:active, button[type="submit"]:active {
    transform: translateY(1px) !important;
    border-bottom-width: 1px !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}

/* 2. Slate / Gray Raised Buttons (Secondary, Cancel, Back, Close) */
button.bg-slate-800, .bg-slate-800, button.bg-slate-700, .bg-slate-700 {
    background-color: #64748b !important;
    color: #ffffff !important;
    border: none !important;
    border-bottom: 4px solid #475569 !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
}
button.bg-slate-800:hover, .bg-slate-800:hover {
    background-color: #475569 !important;
    transform: translateY(-1px) !important;
    border-bottom-width: 3px !important;
}
button.bg-slate-800:active, .bg-slate-800:active {
    transform: translateY(1px) !important;
    border-bottom-width: 1px !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}

/* 3. Blue Raised Buttons (Action, Edit, Assignment) */
button.bg-blue-600, .bg-blue-600, button.bg-blue-500, .bg-blue-500 {
    background-color: #3b82f6 !important;
    color: #ffffff !important;
    border: none !important;
    border-bottom: 4px solid #1d4ed8 !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
}
button.bg-blue-600:hover, .bg-blue-600:hover {
    background-color: #1d4ed8 !important;
    transform: translateY(-1px) !important;
    border-bottom-width: 3px !important;
}

/* 4. Amber / Yellow Raised Buttons (Status, Launch, Deadlines) */
button.bg-amber-600, .bg-amber-600, button.bg-amber-500, .bg-amber-500 {
    background-color: #d97706 !important;
    color: #ffffff !important;
    border: none !important;
    border-bottom: 4px solid #b45309 !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
}

/* 5. Custom Red Raised Buttons (Danger, Delete) */
.btn-red, button.bg-red-600, .bg-red-600, button.bg-red-500, .bg-red-500 {
    background-color: #ef4444 !important;
    color: #ffffff !important;
    border: none !important;
    border-bottom: 4px solid #b91c1c !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
}
.btn-red:hover, button.bg-red-600:hover {
    background-color: #dc2626 !important;
    transform: translateY(-1px) !important;
    border-bottom-width: 3px !important;
}

/* Active Menu Tab Sidebar Buttons */
.active-menu {
    background-color: #2563eb !important;
    color: #ffffff !important;
    border-bottom: 4px solid #1d4ed8 !important;
    border-left: none !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-1px) !important;
}

/* Table styles - Crisp and readable in Light Mode */
.overflow-x-auto { overflow-x: auto; }
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.75rem;
    margin-top: 1rem;
    background-color: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 0.5rem;
}
th {
    background-color: #f1f5f9 !important;
    color: #334155 !important;
    text-align: left;
    padding: 0.75rem 1rem;
    font-weight: 700;
    border-bottom: 2px solid #cbd5e1 !important;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
}
td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #cbd5e1 !important;
    color: #1e293b !important;
}
tr:hover td {
    background-color: #f8fafc !important;
}

/* Sidebar structure */
.sidebar {
    background-color: #ffffff !important;
    border-right: 1px solid #cbd5e1 !important;
    padding: 1.5rem 1rem !important;
}

/* Card wrappers */
.bento-card {
    background-color: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 1rem !important;
    padding: 1.5rem !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
}

/* Extra Utility Classes for Visual Parity on Localhost */
.bg-slate-900\/20 { background-color: #f8fafc !important; border: 1px solid #cbd5e1 !important; }
.bg-slate-950\/40 { background-color: #f1f5f9 !important; border: 1px solid #cbd5e1 !important; }
.bg-red-500\/10 { background-color: #fee2e2 !important; border: 1px solid #fecaca !important; color: #991b1b !important; }
.border-red-500\/20 { border-color: #fecaca !important; }
.bg-amber-500\/10 { background-color: #fef3c7 !important; border: 1px solid #fde68a !important; color: #92400e !important; }
.border-amber-500\/20 { border-color: #fde68a !important; }
.bg-blue-500\/10 { background-color: #dbeafe !important; border: 1px solid #bfdbfe !important; color: #1e40af !important; }
.border-blue-500\/20 { border-color: #bfdbfe !important; }

.text-amber-400 { color: #d97706 !important; }
.text-blue-400 { color: #2563eb !important; }
.text-teal-400 { color: #0d9488 !important; }
.text-indigo-400 { color: #4f46e5 !important; }
.text-violet-400 { color: #7c3aed !important; }
.text-rose-400 { color: #e11d48 !important; }

.mb-2 { margin-bottom: 0.5rem !important; }
.mb-5 { margin-bottom: 1.25rem !important; }
.mt-5 { margin-top: 1.25rem !important; }
.mt-0\.5 { margin-top: 0.125rem !important; }
.mt-1\.5 { margin-top: 0.375rem !important; }
.mr-4 { margin-right: 1rem !important; }

.p-3\.5 { padding: 0.875rem !important; }
.p-12 { padding: 3rem !important; }
.py-1\.5 { padding-top: 0.375rem !important; padding-bottom: 0.375rem !important; }
.px-3 { padding-left: 0.75rem !important; padding-right: 0.75rem !important; }
.py-2 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
.px-4 { padding-left: 1rem !important; padding-right: 1rem !important; }
.py-2\.5 { padding-top: 0.625rem !important; padding-bottom: 0.625rem !important; }
.px-5 { padding-left: 1.25rem !important; padding-right: 1.25rem !important; }
.py-3 { padding-top: 0.75rem !important; padding-bottom: 0.75rem !important; }

.h-4 { height: 1rem !important; }
.w-4 { width: 1rem !important; }
.h-6 { height: 1.5rem !important; }
.w-6 { width: 1.5rem !important; }

.border-dashed { border-style: dashed !important; }
.cursor-pointer { cursor: pointer !important; }
.transition-all { transition-property: all !important; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important; transition-duration: 150ms !important; }
.hover\:scale-\[1\.02\]:hover { transform: scale(1.02) !important; }

/* Print CSS override */
@media print {
    .no-print { display: none !important; }
    body { background-color: #ffffff !important; color: #000000 !important; }
    .bg-slate-950, .bg-slate-900\/40, .bg-slate-900\/60, .bg-slate-900\/30 { background-color: #ffffff !important; }
    td, th, table { border-color: #cbd5e1 !important; color: #000000 !important; }
    th { background-color: #f1f5f9 !important; }
}
