/* /public/assets/css/style.css */

/* ================= RESET ================= */
*,
*::before,
*::after {
	 box-sizing: border-box;
}

html, body {
	 margin: 0;
	 padding: 0;
}

/* ================= VARIABLES ================= */
:root {
	 --bg: #0f1419;
	 --bg-soft: #151b22;
	 --bg-card: #1b232c;
	 --border: rgba(255,255,255,0.08);

	 --text: #e6edf3;
	 --text-muted: #8b98a5;

	 --primary: #3b82f6;
	 --primary-hover: #2563eb;

	 --success: #22c55e;
	 --warning: #f59e0b;
	 --danger: #ef4444;

	 --radius: 14px;
	 --radius-sm: 8px;

	 --shadow: 0 6px 20px rgba(0,0,0,0.25);
}

/* ================= BASE ================= */
body {
	 font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	 background: var(--bg);
	 color: var(--text);
	 line-height: 1.4;
}

a {
	 color: inherit;
	 text-decoration: none;
}

button {
	 font-family: inherit;
	 cursor: pointer;
}

/* ================= LAYOUT ================= */
.app {
	 display: flex;
	 min-height: 100vh;
}

/* ================= SIDEBAR ================= */
.sidebar {
	 width: 240px;
	 background: var(--bg-soft);
	 border-right: 1px solid var(--border);
	 padding: 20px;
	 display: flex;
	 flex-direction: column;
	 gap: 20px;
}

.logo {
	 font-weight: 700;
	 font-size: 18px;
}

.nav {
	 display: flex;
	 flex-direction: column;
	 gap: 6px;
}

.nav-link {
	 padding: 10px 12px;
	 border-radius: var(--radius-sm);
	 color: var(--text-muted);
}

.nav-link:hover {
	 background: rgba(255,255,255,0.05);
	 color: var(--text);
}

.nav-divider {
	 height: 1px;
	 background: var(--border);
	 margin: 8px 0;
}

.sidebar-stats {
	 margin-top: auto;
	 display: flex;
	 flex-direction: column;
	 gap: 10px;
}

.sidebar-stats .stat {
	 display: flex;
	 justify-content: space-between;
	 font-size: 13px;
	 color: var(--text-muted);
}

/* ================= MAIN ================= */
.main {
	 flex: 1;
	 display: flex;
	 flex-direction: column;
}

.topbar {
	 padding: 14px 20px;
	 border-bottom: 1px solid var(--border);
	 display: flex;
	 gap: 10px;
	 align-items: center;
	 justify-content: space-between;
}

.search input {
	 width: 280px;
	 max-width: 100%;
	 padding: 10px;
	 border-radius: var(--radius-sm);
	 border: 1px solid var(--border);
	 background: var(--bg-card);
	 color: var(--text);
}

.content {
	 padding: 20px;
}

/* ================= PAGE ================= */
.page-head {
	 display: flex;
	 justify-content: space-between;
	 align-items: center;
	 margin-bottom: 20px;
}

.page-title {
	 margin: 0;
}

.page-subtitle {
	 color: var(--text-muted);
	 font-size: 14px;
}

/* ================= BUTTONS ================= */
.btn {
	 border: none;
	 border-radius: var(--radius-sm);
	 padding: 8px 12px;
	 font-size: 14px;
}

.btn-primary {
	 background: var(--primary);
	 color: #fff;
}

.btn-primary:hover {
	 background: var(--primary-hover);
}

.btn-secondary {
	 background: var(--bg-card);
	 border: 1px solid var(--border);
	 color: var(--text);
}

.btn-ghost {
	 background: transparent;
	 color: var(--text-muted);
}

.btn-danger {
	 background: var(--danger);
	 color: #fff;
}

/* ================= PANELS ================= */
.panel {
	 background: var(--bg-card);
	 border: 1px solid var(--border);
	 border-radius: var(--radius);
	 padding: 16px;
	 margin-bottom: 20px;
	 box-shadow: var(--shadow);
}

.panel-title {
	 margin: 0;
}

.panel-subtitle {
	 font-size: 13px;
	 color: var(--text-muted);
}

/* ================= CARDS ================= */
.stat-card {
	 background: var(--bg-card);
	 padding: 16px;
	 border-radius: var(--radius);
	 border: 1px solid var(--border);
}

.dashboard-stats-grid {
	 display: grid;
	 grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	 gap: 12px;
	 margin-bottom: 20px;
}

/* ================= ITEMS ================= */
.item-row-card {
	 display: flex;
	 justify-content: space-between;
	 gap: 16px;
	 padding: 14px;
	 border-radius: var(--radius);
	 border: 1px solid var(--border);
	 margin-bottom: 12px;
	 background: var(--bg-soft);
}

.item-row-title {
	 margin: 0;
}

.item-meta-chip {
	 background: rgba(255,255,255,0.05);
	 padding: 6px 10px;
	 border-radius: var(--radius-sm);
	 font-size: 12px;
}

/* ================= SETS ================= */
.set-overview-card {
	 background: var(--bg-card);
	 border-radius: var(--radius);
	 border: 1px solid var(--border);
	 padding: 16px;
	 display: flex;
	 flex-direction: column;
	 gap: 10px;
}

.sets-grid {
	 display: grid;
	 grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	 gap: 14px;
}

/* ================= FORMS ================= */
input,
select,
textarea {
	 width: 100%;
	 padding: 10px;
	 border-radius: var(--radius-sm);
	 border: 1px solid var(--border);
	 background: var(--bg);
	 color: var(--text);
}

.form-group {
	 margin-bottom: 12px;
}

/* ================= BADGES ================= */
.badge {
	 background: rgba(255,255,255,0.08);
	 padding: 4px 8px;
	 border-radius: var(--radius-sm);
	 font-size: 12px;
}

.badge-success {
	 background: rgba(34,197,94,0.2);
}

.badge-warning {
	 background: rgba(245,158,11,0.2);
}

/* ================= TOAST ================= */
.toast-stack {
	 position: fixed;
	 bottom: 20px;
	 right: 20px;
	 display: flex;
	 flex-direction: column;
	 gap: 8px;
}

.toast {
	 padding: 10px 14px;
	 border-radius: var(--radius-sm);
	 background: var(--bg-card);
	 border: 1px solid var(--border);
	 opacity: 0;
	 transform: translateY(10px);
	 transition: all 0.2s;
}

.toast.is-visible {
	 opacity: 1;
	 transform: translateY(0);
}

.toast.is-success {
	 border-color: var(--success);
}

.toast.is-error {
	 border-color: var(--danger);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
	 .sidebar {
		  position: fixed;
		  left: -100%;
		  top: 0;
		  height: 100%;
		  z-index: 10;
		  transition: 0.3s;
	 }

	 .sidebar.is-mobile-open {
		  left: 0;
	 }

	 .main {
		  width: 100%;
	 }

	 .topbar {
		  gap: 6px;
	 }
}