/* Jirafeau Theme: cfloxpay
   Drop this folder into Jirafeau's /media directory and set in lib/config.local.php:
   $cfg['style'] = 'cfloxpay';
   This stylesheet intentionally avoids heavy overrides and sticks to variables-like sections
   so you can tweak brand colors easily.
*/

/* ---------- Brand tokens (approx. cflox pay look & feel) ---------- */
/* Adjust these three if you have exact corporate hex codes */
:root {
  --brand-bg: #0b1b2b;        /* deep navy background */
  --brand-primary: #0a6cff;   /* primary blue (buttons, links) */
  --brand-accent: #11c5ff;    /* light cyan accent for focus/hover */
  --brand-text: #0e1a2a;      /* dark body text on light backgrounds */
  --brand-muted: #6b7b90;     /* muted text */
  --surface: #ffffff;         /* cards & panels */
  --surface-alt: #f5f8fc;     /* very light background sections */
  --success: #12b886;
  --danger: #e03131;
  --warning: #f08c00;
  --radius: 12px;
  --shadow: 0 8px 24px rgba(0,0,0,0.08);
}

/* Global base */
html, body {
  background: linear-gradient(180deg, var(--surface-alt) 0%, #ffffff 40%) no-repeat fixed;
  color: var(--brand-text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, 'Helvetica Neue', Arial, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.45;
}

/* Top banner / title */
h1, .big, .title {
  color: var(--brand-primary);
  letter-spacing: -0.01em;
}
h2, h3 {
  color: #1b2b44;
}

/* Layout containers (Jirafeau default markup uses #content, .box etc.) */
#content, .content, .box, .infos, .text, .links {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.5rem;
  border: 1px solid #e9eef7;
}
#content, .content {
  max-width: 980px;
  margin: 2rem auto;
}

/* Header / logo (place a file named logo.png or logo.svg in this theme folder) */
#header, .header {
  max-width: 980px;
  margin: 1.5rem auto 0;
  display: flex;
  align-items: center;
  gap: 1rem;
}
#logo, .logo {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
}
#logo img, .logo img, #logo svg, .logo svg {
  height: 36px;
}

/* Links */
a { color: var(--brand-primary); text-decoration: none; }
a:hover, a:focus { color: var(--brand-accent); text-decoration: underline; }

/* Buttons */
button, .button, input[type="submit"], input[type="button"] {
  background: var(--brand-primary);
  color: #fff;
  border: none;
  border-radius: calc(var(--radius) - 4px);
  padding: .675rem 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform .02s ease-in, box-shadow .2s ease, background .2s ease;
  box-shadow: 0 4px 12px rgba(10,108,255,0.25);
}
button:hover, .button:hover, input[type="submit"]:hover, input[type="button"]:hover {
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
  transform: translateY(-1px);
}
button:disabled, .button:disabled, input[type="submit"]:disabled {
  opacity: .6; cursor: not-allowed; box-shadow: none;
}

/* Inputs */
input[type="text"], input[type="password"], input[type="email"], input[type="url"], textarea, select {
  border: 1px solid #dbe3ef;
  background: #fff;
  padding: .6rem .75rem;
  border-radius: 10px;
  outline: none;
  width: 100%;
  transition: border-color .2s ease, box-shadow .2s ease;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--brand-accent);
  box-shadow: 0 0 0 3px rgba(17,197,255,0.15);
}

/* Upload area */
.upload, #upload, #drop, .drop, .area, .uparea {
  border: 2px dashed rgba(10,108,255,0.35);
  border-radius: var(--radius);
  padding: 2rem;
  background: #ffffff;
  text-align: center;
}
.progress, .bar, .meter {
  height: 10px;
  background: #e9eef7;
  border-radius: 999px;
  overflow: hidden;
}
.progress .inner, .bar .inner, .meter span {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
  transition: width .2s ease;
}

/* Tables (links page, admin list) */
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  overflow: hidden;
  border-radius: var(--radius);
}
th, td {
  padding: .75rem .9rem;
  border-bottom: 1px solid #eef2f8;
  text-align: left;
}
th {
  color: #3a4a63;
  font-weight: 700;
  background: #f7faff;
}
tr:hover td { background: #fafcff; }

/* Alerts */
.alert, .warning, .error, .success, .message {
  border-radius: 10px;
  padding: .75rem 1rem;
  margin: 1rem 0;
  border: 1px solid transparent;
}
.success { background: #e6fcf0; border-color: #c3fae8; color: #087f5b; }
.warning { background: #fff4e6; border-color: #ffe8cc; color: #ad6800; }
.error { background: #fff5f5; border-color: #ffe3e3; color: #c92a2a; }

/* Footer */
#footer, .footer {
  max-width: 980px;
  margin: 2rem auto;
  color: var(--brand-muted);
  font-size: .95rem;
}

/* Small screens */
@media (max-width: 640px) {
  #content, .content { margin: 1rem; padding: 1rem; }
  #header, .header { margin: 1rem; }
  h1 { font-size: 1.6rem; }
  table { display: block; overflow-x: auto; }
}
