/* ===========================
   SERVICO GLOBAL THEME
   =========================== */

/* -------- Root Variables -------- */
:root {
  --color-bg: #ffffff;
  --color-primary: #0078d7;        /* clean blue */
  --color-secondary: #a86de3;      /* lavender accent */
  --color-success: #24b47e;        /* bright green */
  --color-warning: #f5b400;        /* golden yellow */
  --color-danger: #e53935;         /* strong red */
  --color-muted: #888888;          /* neutral grey */
  --color-text: #222222;
  --color-footer-bg: #000000;
  --color-footer-text: #ffffff;

  --font-main: "Poppins", "Segoe UI", sans-serif;
  --radius-lg: 16px;
  --radius-md: 10px;
  --shadow-soft: 0 3px 12px rgba(0, 0, 0, 0.1);
}

/* -------- Base -------- */
body {
  margin: 0;
  font-family: var(--font-main);
  background: var(--color-bg);
  color: var(--color-text);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: var(--color-primary);
  transition: 0.2s ease;
}

a:hover {
  color: var(--color-secondary);
}

/* -------- Header -------- */
.header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  color: white;
  padding: 0.7rem 1.5rem;
  box-shadow: var(--shadow-soft);
}

.header-bar .logo {
  height: 36px;
  width: auto;
  vertical-align: middle;
  margin-right: 0.6rem;
}

.header-bar .app-name {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.header-right .user-avatar {
  height: 36px;
  width: 36px;
  border-radius: 50%;
  border: 2px solid white;
}

/* -------- Sidebar -------- */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 240px;
  background: #f7faff;
  border-right: 1px solid #e3e8ef;
  padding-top: 70px;
  box-shadow: 3px 0 10px rgba(0, 0, 0, 0.05);
}

.sidebar-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-menu li {
  border-bottom: 1px solid #ececec;
}

.sidebar-menu li a {
  display: block;
  padding: 0.9rem 1.2rem;
  color: var(--color-text);
  font-weight: 500;
  transition: 0.25s;
  border-left: 4px solid transparent;
}

.sidebar-menu li a:hover {
  background: #e6f0ff;
  border-left: 4px solid var(--color-primary);
  color: var(--color-primary);
}

.sidebar-menu li.active a {
  background: #eaf7ef;
  border-left: 4px solid var(--color-success);
  color: var(--color-success);
}

/* -------- Footer -------- */
.footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: 0.7rem 1.5rem;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
}

.footer-bar a {
  color: var(--color-footer-text);
  font-weight: 500;
}

.footer-bar a:hover {
  text-decoration: underline;
}

.footer-logo {
  height: 28px;
  width: auto;
}

/* -------- Buttons -------- */
button, .btn {
  border: none;
  border-radius: var(--radius-md);
  padding: 0.6rem 1.2rem;
  font-size: 0.95rem;
  cursor: pointer;
  transition: 0.25s;
  font-weight: 500;
}

.btn-primary { background: var(--color-primary); color: #fff; }
.btn-success { background: var(--color-success); color: #fff; }
.btn-warning { background: var(--color-warning); color: #000; }
.btn-danger  { background: var(--color-danger); color: #fff; }
.btn-grey    { background: var(--color-muted); color: #fff; }

button:hover, .btn:hover {
  filter: brightness(1.1);
  box-shadow: var(--shadow-soft);
}

/* -------- Forms -------- */
input, select, textarea {
  border: 1px solid #ddd;
  border-radius: var(--radius-md);
  padding: 0.5rem 0.75rem;
  font-family: var(--font-main);
  width: 100%;
  transition: border-color 0.2s;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 4px rgba(0, 120, 215, 0.3);
}

/* -------- Cards -------- */
.card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 1rem 1.25rem;
  margin: 1rem 0;
}

/* -------- Utilities -------- */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-success { color: var(--color-success); }
.text-danger { color: var(--color-danger); }
.text-warning { color: var(--color-warning); }
.text-muted { color: var(--color-muted); }


.main-content {
  margin-left: 240px;   /* sidebar width */
  padding: 90px 2rem 60px;  /* header + footer offset */
  min-height: 100vh;
  background: var(--color-bg);
}
