/* ===== Gradify Studio — Custom Utility Classes (replaces Tailwind CDN) ===== */

/* === Tailwind Preflight (CSS Reset) === */
*, *::before, *::after { border-width: 0; border-style: solid; border-color: currentColor; }
blockquote, dl, dd, h1, h2, h3, h4, h5, h6, hr, figure, p, pre { margin: 0; }
h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }
ol, ul { list-style: none; margin: 0; padding: 0; }
img, svg, video, canvas, audio, iframe, embed, object { display: block; vertical-align: middle; }
button, input, optgroup, select, textarea { font-family: inherit; font-size: 100%; font-weight: inherit; line-height: inherit; color: inherit; margin: 0; padding: 0; }
button, select { text-transform: none; }
button { cursor: pointer; background-color: transparent; background-image: none; }
textarea { resize: vertical; }
input::placeholder, textarea::placeholder { opacity: 1; color: #9ca3af; }
table { border-collapse: collapse; border-spacing: 0; }

/* --- Layout / Display --- */
.tw-flex { display: flex; }
.tw-inline-flex { display: inline-flex; }
.tw-grid { display: grid; }
.tw-block { display: block; }
.tw-hidden { display: none !important; }
.tw-relative { position: relative; }
.tw-absolute { position: absolute; }
.tw-fixed { position: fixed; }
.tw-top-5 { top: 1.25rem; }
.tw-right-5 { right: 1.25rem; }
.tw--top-1 { top: -0.25rem; }
.tw--right-1 { right: -0.25rem; }
.tw-items-center { align-items: center; }
.tw-items-end { align-items: flex-end; }
.tw-items-start { align-items: flex-start; }
.tw-justify-between { justify-content: space-between; }
.tw-justify-center { justify-content: center; }
.tw-place-items-center { place-items: center; }
.tw-flex-col { flex-direction: column; }
.tw-flex-wrap { flex-wrap: wrap; }
.tw-text-center { text-align: center; }
.tw-gap-2 { gap: 0.5rem; }
.tw-gap-3 { gap: 0.75rem; }
.tw-min-w-0 { min-width: 0; }
.tw-space-y-2 > * + * { margin-top: 0.5rem; }
.tw-space-y-3 > * + * { margin-top: 0.75rem; }

/* --- Sizing --- */
.tw-w-3-5 { width: 0.875rem; }
.tw-w-4 { width: 1rem; }
.tw-w-5 { width: 1.25rem; }
.tw-w-6 { width: 1.5rem; }
.tw-w-7 { width: 1.75rem; }
.tw-w-14 { width: 3.5rem; }
.tw-w-16 { width: 4rem; }
.tw-w-20 { width: 5rem; }
.tw-w-24 { width: 6rem; }
.tw-w-28 { width: 7rem; }
.tw-w-32 { width: 8rem; }
.tw-h-4 { height: 1rem; }
.tw-h-5 { height: 1.25rem; }
.tw-h-6 { height: 1.5rem; }
.tw-h-7 { height: 1.75rem; }
.tw-h-3-5 { height: 0.875rem; }
.tw-h-14 { height: 3.5rem; }
.tw-h-full { height: 100%; }
.tw-min-h-300 { min-height: 300px; }

/* --- Typography --- */
.tw-text-xs { font-size: 0.75rem; line-height: 1rem; }
.tw-text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.tw-text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.tw-font-bold { font-weight: 700; }
.tw-font-semibold { font-weight: 600; }
.tw-font-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace; }
.tw-tracking-wide { letter-spacing: 0.025em; }
.tw-tracking-wider { letter-spacing: 0.05em; }
.tw-uppercase { text-transform: uppercase; }
.tw-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tw-leading-tight { line-height: 1.25; }
.tw-leading-relaxed { line-height: 1.625; }
.tw-tabular-nums { font-variant-numeric: tabular-nums; }
.tw-text-slate-400 { color: #94a3b8; }
.tw-text-slate-500 { color: #64748b; }
.tw-text-slate-600 { color: #475569; }
.tw-text-slate-700 { color: #334155; }
.tw-text-slate-900 { color: #0f172a; }
.tw-text-cyan-700 { color: #0e7490; }
.tw-text-white { color: #ffffff; }
.tw-text-coral { color: #ff6b35; }
.tw-text-10 { font-size: 10px; line-height: 1; }

/* --- Spacing / Padding / Margin --- */
.tw-p-3 { padding: 0.75rem; }
.tw-px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.tw-px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.tw-py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.tw-py-1-5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.tw-py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.tw-py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.tw-py-0-5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.tw-px-4 { padding-left: 1rem; padding-right: 1rem; }
.tw-mb-0 { margin-bottom: 0; }
.tw-mb-1 { margin-bottom: 0.25rem; }
.tw-mb-1-5 { margin-bottom: 0.375rem; }
.tw-mb-2 { margin-bottom: 0.5rem; }
.tw-mb-3 { margin-bottom: 0.75rem; }
.tw-ml-auto { margin-left: auto; }
.tw-mt-1 { margin-top: 0.25rem; }
.tw-mt-2 { margin-top: 0.5rem; }
.tw-mt-3 { margin-top: 0.75rem; }
.tw-pt-2 { padding-top: 0.5rem; }
.tw-pl-6 { padding-left: 1.5rem; }

/* --- Borders & Rounded --- */
.tw-border { border-width: 1px; border-style: solid; border-color: rgba(0,0,0,0.12); }
.tw-border-t { border-top-width: 1px; border-top-style: solid; }
.tw-border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.tw-rounded { border-radius: 0.25rem; }
.tw-rounded-lg { border-radius: 0.5rem; }
.tw-rounded-xl { border-radius: 0.75rem; }
.tw-rounded-full { border-radius: 9999px; }
.tw-border-black-10 { border-color: rgba(0,0,0,0.10); }
.tw-border-black-15 { border-color: rgba(0,0,0,0.15); }
.tw-border-black-25 { border-color: rgba(0,0,0,0.25); }
.tw-border-slate-200 { border-color: #e2e8f0; }
.tw-border-cyan-40 { border-color: rgba(46,196,182,0.40); }
.tw-border-coral-40 { border-color: rgba(255,107,53,0.40); }

/* --- Background --- */
.tw-bg-coral { background-color: #ff6b35; color: white; }
.tw-bg-cyan { background-color: #2ec4b6; color: white; }
.tw-bg-slate { background-color: #3a506b; color: white; }
.tw-bg-white-80 { background-color: rgba(255,255,255,0.80); }
.tw-bg-white-60 { background-color: rgba(255,255,255,0.60); }
.tw-bg-white { background-color: #ffffff; }
.tw-bg-black { background-color: #000000; color: white; }
.tw-bg-success { background-color: #2ec4b6; color: white; }
.tw-bg-error { background-color: #dc2626; color: white; }
.hover\:tw-bg-black-5:hover { background-color: rgba(0,0,0,0.05); }
.hover\:tw-brightness-110:hover { filter: brightness(1.1); }
.hover\:tw-text-coral:hover { color: #ff6b35; }

/* --- Misc --- */
.tw-cursor-pointer { cursor: pointer; }
.tw-list-none { list-style: none; }
.tw-resize-none { resize: none; }
.tw-overflow-hidden { overflow: hidden; }
.tw-shadow-xl { box-shadow: 0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1); }
.tw-whitespace-nowrap { white-space: nowrap; }
.tw-object-cover { object-fit: cover; }
.tw-transition { transition-property: color,background-color,border-color,text-decoration,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter,backdrop-filter; transition-duration: 150ms; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
.disabled\:tw-opacity-50:disabled { opacity: 0.5; }
.tw-z-50 { z-index: 50; }
.tw-underline { text-decoration: underline; }
.tw-mr-2 { margin-right: 0.5rem; }
.tw-leading-4 { line-height: 1rem; }

/* --- Grid --- */
.tw-grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tw-col-span-2 { grid-column: span 2 / span 2; }
.tw-grid-cols-3 { grid-template-columns: auto auto 1fr; }
.tw-grid-cols-5 { grid-template-columns: auto auto auto 1fr auto; }

/* --- Animation --- */
@keyframes tw-spin { to { transform: rotate(360deg); } }
.tw-animate-spin { animation: tw-spin 1s linear infinite; }
@keyframes tw-fade-in { from { opacity:0; transform:translateY(-8px); } to { opacity:1; transform:translateY(0); } }
.tw-animate-fade-in { animation: tw-fade-in .25s ease-out; }

/* --- Responsive --- */
@media (min-width: 768px) {
  .md\:tw-flex { display: flex !important; }
  .md\:tw-grid-cols-auto { grid-template-columns: auto auto 1fr auto; }
}
