@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;800&display=swap');

:root { 
  --bg: #141414;
  --card: #1E1E1E;
  --text-primary: #F0F0F0;
  --text-muted: #A0A0A0;
  --accent: #E8321B;
  --accent-dark: #B92815;
  --ok: #38A169;
  --warn: #D69E2E;
  --danger: #E53E3E;
  --border: #3A3A3A;
  --glow-shadow: 0 0 15px rgba(232, 50, 27, 0.6);
}

* { box-sizing: border-box; }

body { 
  margin: 0; 
  font-family: 'Inter', sans-serif; 
  background: var(--bg); 
  color: var(--text-primary); 
  background-image: linear-gradient(0deg, transparent 24%, rgba(255, 255, 255, 0.03) 25%, rgba(255, 255, 255, 0.03) 26%, transparent 27%, transparent 74%, rgba(255, 255, 255, 0.03) 75%, rgba(255, 255, 255, 0.03) 76%, transparent 77%, transparent), 
                    linear-gradient(90deg, transparent 24%, rgba(255, 255, 255, 0.03) 25%, rgba(255, 255, 255, 0.03) 26%, transparent 27%, transparent 74%, rgba(255, 255, 255, 0.03) 75%, rgba(255, 255, 255, 0.03) 76%, transparent 77%, transparent);
  background-size: 50px 50px;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-dark); text-decoration: underline; }

.wrap { max-width: 1300px; margin: 40px auto; padding: 0 24px; }

.header { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  margin-bottom: 30px; 
  border-bottom: 2px solid var(--accent);
  padding-bottom: 15px;
}

.header h1 { 
  display: flex;
  align-items: center;
  margin: 0; 
  font-size: 32px; 
  font-weight: 800; 
  color: var(--text-primary); 
  letter-spacing: 0.5px;
}

.header h1 .icon {
  width: 32px;
  height: 32px;
  margin-right: 12px;
  fill: var(--accent);
}

.card { 
  background: var(--card); 
  border: 1px solid var(--border); 
  border-radius: 12px; 
  padding: 30px; 
  margin-bottom: 24px; 
  box-shadow: 0 8px 30px rgba(0,0,0,.6); 
  transition: transform 0.3s, box-shadow 0.3s;
  background-image: linear-gradient(135deg, rgba(255,255,255,0.02) 0%, rgba(0,0,0,0.05) 100%);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 35px rgba(0,0,0,.7);
}

h2 { 
  display: flex;
  align-items: center;
  margin: 0 0 20px; 
  font-size: 24px; 
  font-weight: 700; 
  color: var(--text-primary); 
  border-left: 3px solid var(--accent); 
  padding-left: 10px; 
}

h2 .icon { 
  width: 24px;
  height: 24px; 
  margin-right: 10px;
  fill: var(--accent);
}

h3 { margin: 8px 0 12px; font-size: 18px; color: var(--text-muted); font-weight: 600; }

.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }

.muted { color: var(--text-muted); }

.btn { 
  display: inline-flex; 
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px; 
  border-radius: 6px; 
  border: none; 
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(0,0,0,0.4);
  text-shadow: 0 1px 1px rgba(0,0,0,0.2);
}

.btn:hover { 
  text-decoration: none; 
  transform: translateY(-1px); 
  box-shadow: 0 5px 10px rgba(0,0,0,0.5); 
}

.btn-prim { 
  background: linear-gradient(145deg, var(--accent), var(--accent-dark)); 
  color: var(--text-primary); 
}

.btn-prim:hover { 
  background: linear-gradient(145deg, var(--accent-dark), var(--accent)); 
  box-shadow: var(--glow-shadow); 
}

.btn-ok { background: var(--ok); color: var(--bg); }
.btn-ok:hover { background: #31825B; box-shadow: 0 0 10px rgba(56, 161, 105, 0.5); }

.btn-warn { background: var(--warn); color: var(--bg); }
.btn-warn:hover { background: #B7791F; box-shadow: 0 0 10px rgba(214, 158, 46, 0.5); }

.btn-danger { background: var(--danger); color: var(--text-primary); }
.btn-danger:hover { background: #C53030; box-shadow: 0 0 10px rgba(229, 62, 62, 0.5); }

form.inline { display: inline-block; }

table { 
  width: 100%; 
  border-collapse: collapse; 
  background: #232323; 
  border-radius: 12px; 
  overflow: hidden; 
}

th, td { 
  padding: 15px 20px; 
  text-align: left; 
  border-bottom: 1px solid var(--border); 
}

th { 
  color: var(--text-muted); 
  font-weight: 700; 
  background: #282828; 
  position: sticky; 
  top: 0; 
  z-index: 10; 
  text-transform: uppercase;
  font-size: 14px;
}

tr:hover { background: rgba(232, 50, 27, 0.05); } 
tr:last-child td { border-bottom: none; }

input[type="text"], 
input[type="password"], 
input[type="number"], 
input[type="file"],
select, 
textarea { 
  background: #111111; 
  border: 1px solid var(--border); 
  color: var(--text-primary); 
  padding: 12px 14px; 
  border-radius: 6px; 
  width: 100%; 
  transition: border-color 0.3s, box-shadow 0.3s;
}

input:focus, select:focus, textarea:focus { 
  border-color: var(--accent); 
  outline: none; 
  box-shadow: 0 0 0 3px rgba(232, 50, 27, 0.3);
}

.alert { 
  padding: 18px; 
  border-radius: 8px; 
  margin-bottom: 20px; 
  border-left: 5px solid; 
  font-weight: 600; 
}

.alert-success { 
  background-color: rgba(56, 161, 105, 0.15); 
  border-color: var(--ok); 
  color: var(--ok); 
}

.alert-error { 
  background-color: rgba(229, 62, 62, 0.15); 
  border-color: var(--danger); 
  color: var(--danger); 
}

.icon { width: 18px; height: 18px; display: block; fill: currentColor; }
.icon-small { width: 14px; height: 14px; }

@keyframes spin {
  to { transform: rotate(360deg); }
}

.spinner {
  animation: spin 1s linear infinite;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
}
