/* assets/styles.css */

/* ---- VMO2 theme tokens ---- */
:root{
  --bg: #f6f8fb;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;

  /* Brand */
  --vmo2-red: #e60000;   /* Vodafone red (approx) */
  --o2-blue:  #0019a5;   /* O2 blue (approx) */

  /* UI */
  --shadow: 0 10px 30px rgba(2, 6, 23, 0.08);
  --radius: 14px;

  --focus: 0 0 0 4px rgba(0, 25, 165, 0.18);
}

*{ box-sizing:border-box; }

html, body{
  height:100%;
}

body{
  margin:0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  line-height:1.4;
}

/* ---- Layout helpers ---- */
.container{
  max-width: 1120px;
  margin: 0 auto;
  padding: 22px;
}

h1{
  margin: 10px 0 6px;
  font-size: 32px;
  letter-spacing: -0.02em;
}

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

/* ---- Cards ---- */
.card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}

.card h3{
  margin:0 0 8px;
  font-size: 15px;
}

/* ---- Grid ---- */
.grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}

/* ---- Buttons ---- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  text-decoration:none;
  font-weight: 600;
  font-size: 13px;
  cursor:pointer;
  transition: transform .05s ease, box-shadow .2s ease, border-color .2s ease;
}

.btn:hover{
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.btn:focus{
  outline:none;
  box-shadow: var(--focus);
}

.btn.primary{
  background: linear-gradient(135deg, var(--o2-blue), #0b2bd4);
  color:#fff;
  border-color: transparent;
}

.btn.danger{
  background: linear-gradient(135deg, var(--vmo2-red), #ff3b3b);
  color:#fff;
  border-color: transparent;
}

/* ---- Pills / badges ---- */
.pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 12px;
  color: var(--text);
}

.pill.brand{
  border-color: rgba(0,25,165,.25);
  background: rgba(0,25,165,.06);
  color: var(--o2-blue);
}

.pill.success{
  border-color: rgba(22,163,74,.25);
  background: rgba(22,163,74,.08);
  color: #166534;
}

/* ---- Progress ---- */
.progress{
  width:100%;
  height: 12px;
  background: #e9eef7;
  border-radius: 999px;
  overflow:hidden;
  border: 1px solid rgba(0,25,165,.10);
}

.progress > div{
  height:100%;
  width: 0;
  background: linear-gradient(90deg, var(--o2-blue), var(--vmo2-red));
}

/* ---- Tables ---- */
table{
  width:100%;
  border-collapse: collapse;
}

td, th{
  padding: 10px 6px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  font-size: 13px;
}

th{
  text-align:left;
  color: var(--muted);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.right{ text-align:right; }

/* ---- Navbar ---- */
.topnav{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.topnav-inner{
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 22px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
}

.nav-left{
  display:flex;
  align-items:center;
  gap: 14px;
  flex-wrap: wrap;
}

.nav-right{
  display:flex;
  align-items:center;
  gap: 12px;
  flex-wrap: wrap;
}

.brand{
  display:flex;
  align-items:center;
  gap: 10px;
  text-decoration:none;
  color: var(--text);
}

.brand img{
  height: 30px;
  width:auto;
  display:block;
}

.nav-link{
  color: var(--text);
  text-decoration:none;
  font-weight: 600;
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 10px;
  transition: background .15s ease, color .15s ease;
}

.nav-link:hover{
  background: rgba(0,25,165,.06);
  color: var(--o2-blue);
}

.nav-link.active{
  background: rgba(0,25,165,.10);
  color: var(--o2-blue);
}

.meta{
  color: var(--muted);
  font-size: 13px;
}

/* ---- Responsive ---- */
@media (max-width: 900px){
  .grid{ grid-template-columns: repeat(6, 1fr); }
  h1{ font-size: 26px; }
}

@media (max-width: 600px){
  .grid{ grid-template-columns: repeat(1, 1fr); }
  .container{ padding: 16px; }
}

/* ---- Catalogue / data-heavy pages ---- */
.table-card{
  padding: 0;
  overflow: hidden;
}

.table-wrap{
  overflow-x: auto;
}

.table-card table{
  width: 100%;
}

.table-card th,
.table-card td{
  padding: 14px 16px;
}

.table-card tbody tr:hover{
  background: rgba(0,25,165,.03);
}

.filters{
  display:flex;
  gap:10px;
  flex-wrap: wrap;
  align-items: end;
}

.field{
  display:flex;
  flex-direction: column;
  gap:6px;
  min-width: 180px;
}

.field label{
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.input, .select{
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 13px;
}

.input:focus, .select:focus{
  outline: none;
  box-shadow: var(--focus);
  border-color: rgba(0,25,165,.35);
}
