/* Material Dashboard custom CSS – Bootstrap 5 alapú */
@import url('inter-font.css');

:root {
  --bs-primary: #43A047;
  --bs-primary-rgb: 67,160,71;
  --md-green: #43A047;
  --md-green-dark: #2E7D32;
  --md-sidenav-width: 250px;
  --md-navbar-height: 60px;
  --md-border-radius: 0.75rem;
}

/* ===== RESET / BASE ===== */
* { box-sizing: border-box; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; background: #f0f2f5; color: #344767; margin: 0; }

/* ===== SIDENAV ===== */
.sidenav {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: var(--md-sidenav-width);
  background: linear-gradient(195deg, #42424a 0%, #191919 100%);
  box-shadow: 4px 0 20px rgba(0,0,0,.15);
  z-index: 1040;
  display: flex; flex-direction: column;
  overflow-y: auto;
  transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.sidenav-header {
  padding: 1.5rem 1rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.sidenav-header .navbar-brand {
  display: flex; align-items: center;
  text-decoration: none; color: #fff !important;
  font-weight: 700; font-size: 1rem;
}
.sidenav .nav-link {
  display: flex; align-items: center;
  padding: .65rem 1rem;
  border-radius: .5rem;
  margin: 2px 8px;
  color: rgba(255,255,255,.7) !important;
  font-size: .875rem; font-weight: 500;
  text-decoration: none;
  transition: all .2s;
  cursor: pointer;
}
.sidenav .nav-link:hover { color: #fff !important; background: rgba(255,255,255,.1); }
.sidenav .nav-link.active {
  color: #fff !important;
  background: linear-gradient(195deg, #66BB6A, #43A047);
  box-shadow: 0 4px 20px rgba(67,160,71,.35);
}
.sidenav .nav-link .material-icons-round, .sidenav .nav-link i {
  font-size: 1.25rem; margin-right: .6rem; min-width: 1.5rem; text-align: center;
}
.sidenav h6 {
  color: rgba(255,255,255,.45); font-size: .65rem; letter-spacing: .08em;
  padding: .75rem 1.5rem .25rem; text-transform: uppercase; font-weight: 700; margin: 0;
}
.sidenav hr { border-color: rgba(255,255,255,.1); margin: .5rem 1rem; }

/* ===== MAIN CONTENT ===== */
.main-content {
  margin-left: var(--md-sidenav-width);
  min-height: 100vh;
  display: flex; flex-direction: column;
}

/* ===== TOPBAR ===== */
.navbar-main {
  background: rgba(240,242,245,.85) !important;
  backdrop-filter: saturate(200%) blur(30px);
  border-radius: var(--md-border-radius);
  margin: .75rem 1.5rem 0;
  padding: .5rem 1rem !important;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.breadcrumb { margin: 0; padding: 0; background: none; }
.breadcrumb-item a { color: #7b809a; font-size: .8rem; text-decoration: none; }
.breadcrumb-item.active { color: #344767; font-size: .8rem; font-weight: 600; }
.breadcrumb-item + .breadcrumb-item::before { color: #7b809a; }

/* ===== PAGE CONTENT ===== */
.container-fluid { padding: 1rem 1.5rem; }

/* ===== CARDS ===== */
.card {
  background: #fff;
  border: 0 !important;
  border-radius: var(--md-border-radius) !important;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -1px rgba(0,0,0,.06);
  margin-bottom: 1.5rem;
}
.card-header {
  background: transparent !important;
  border-bottom: 0 !important;
  padding: 1.25rem 1.25rem .5rem !important;
}
.card-body { padding: 1rem 1.25rem; }
.card-footer {
  background: transparent !important;
  border-top: 1px solid rgba(0,0,0,.06) !important;
  padding: .75rem 1.25rem;
}

/* ===== STAT CARDS ===== */
.card-stats .card-header {
  padding: 0 !important; position: relative; margin: -1.25rem .75rem 0 !important; z-index: 2;
}
.card-stats .card-header > div {
  border-radius: .75rem; padding: 1rem 1.5rem !important;
  text-align: center; min-height: 60px; display: flex; align-items: center; justify-content: center;
}
.card-stats .card-body { padding: .75rem 1.25rem .5rem !important; }
.card-stats .numbers { text-align: right; }
.card-stats .numbers p { font-size: .7rem; color: #7b809a; text-transform: uppercase; font-weight: 700; margin: 0; letter-spacing: .08em; }
.card-stats .numbers h5 { font-size: 1.3rem; font-weight: 700; margin: 0; color: #344767; }

/* ===== GRADIENT BACKGROUNDS ===== */
.bg-gradient-primary   { background: linear-gradient(195deg, #EC407A, #D81B60) !important; }
.bg-gradient-success   { background: linear-gradient(195deg, #66BB6A, #43A047) !important; }
.bg-gradient-info      { background: linear-gradient(195deg, #49a3f1, #1A73E8) !important; }
.bg-gradient-warning   { background: linear-gradient(195deg, #FFA726, #FB8C00) !important; }
.bg-gradient-danger    { background: linear-gradient(195deg, #EF5350, #E53935) !important; }
.bg-gradient-dark      { background: linear-gradient(195deg, #42424a, #191919) !important; }
.bg-gradient-secondary { background: linear-gradient(195deg, #747b8a, #495361) !important; }

.shadow-success { box-shadow: 0 4px 20px rgba(67,160,71,.4) !important; }
.shadow-info    { box-shadow: 0 4px 20px rgba(26,115,232,.4) !important; }
.shadow-warning { box-shadow: 0 4px 20px rgba(251,140,0,.4) !important; }
.shadow-danger  { box-shadow: 0 4px 20px rgba(229,57,53,.4) !important; }
.shadow-dark    { box-shadow: 0 4px 20px rgba(0,0,0,.4) !important; }

/* ===== BADGES ===== */
.badge { font-size: .7rem; font-weight: 600; letter-spacing: .04em; }
.badge.bg-gradient-success   { background: linear-gradient(195deg,#66BB6A,#43A047) !important; color:#fff; }
.badge.bg-gradient-primary   { background: linear-gradient(195deg,#EC407A,#D81B60) !important; color:#fff; }
.badge.bg-gradient-info      { background: linear-gradient(195deg,#49a3f1,#1A73E8) !important; color:#fff; }
.badge.bg-gradient-warning   { background: linear-gradient(195deg,#FFA726,#FB8C00) !important; color:#fff; }
.badge.bg-gradient-danger    { background: linear-gradient(195deg,#EF5350,#E53935) !important; color:#fff; }
.badge.bg-gradient-dark      { background: linear-gradient(195deg,#42424a,#191919) !important; color:#fff; }
.badge.bg-gradient-secondary { background: linear-gradient(195deg,#747b8a,#495361) !important; color:#fff; }

/* ===== BUTTONS ===== */
.btn {
  font-size: .75rem; font-weight: 600; letter-spacing: .04em;
  border-radius: .5rem; padding: .5rem 1.25rem;
  transition: all .2s;
}
.btn-success  { background: linear-gradient(195deg,#66BB6A,#43A047); border:0; color:#fff; }
.btn-success:hover  { background: linear-gradient(195deg,#81C784,#43A047); box-shadow:0 4px 20px rgba(67,160,71,.4); color:#fff; transform:translateY(-1px); }
.btn-warning  { background: linear-gradient(195deg,#FFA726,#FB8C00); border:0; color:#fff; }
.btn-warning:hover  { box-shadow:0 4px 20px rgba(251,140,0,.4); color:#fff; transform:translateY(-1px); }
.btn-danger   { background: linear-gradient(195deg,#EF5350,#E53935); border:0; color:#fff; }
.btn-danger:hover   { box-shadow:0 4px 20px rgba(229,57,53,.4); color:#fff; transform:translateY(-1px); }
.btn-primary  { background: linear-gradient(195deg,#49a3f1,#1A73E8); border:0; color:#fff; }
.btn-primary:hover  { box-shadow:0 4px 20px rgba(26,115,232,.4); color:#fff; transform:translateY(-1px); }
.btn-outline-success { border-color:#43A047; color:#43A047; }
.btn-outline-success:hover { background:#43A047; color:#fff; }
.btn-outline-primary { border-color:#1A73E8; color:#1A73E8; }
.btn-outline-primary:hover { background:#1A73E8; color:#fff; }
.btn-outline-secondary { border-color:#7b809a; color:#7b809a; }
.btn-outline-secondary:hover { background:#7b809a; color:#fff; }
.btn-outline-danger { border-color:#E53935; color:#E53935; }
.btn-outline-danger:hover { background:#E53935; color:#fff; }
.btn-white { background:#fff; color:#344767; border:1px solid #dee2e6; }
.btn-white:hover { background:#f8f9fa; color:#344767; }
.btn-icon { width:32px; height:32px; padding:0; display:inline-flex; align-items:center; justify-content:center; border-radius:.5rem; }

/* ===== TABLES ===== */
.table th {
  font-size: .65rem; text-transform: uppercase; font-weight: 700;
  color: #7b809a; letter-spacing: .08em; border-top: 0; padding: .75rem 1rem;
  border-bottom: 1px solid rgba(0,0,0,.08) !important;
}
.table td { font-size: .875rem; color: #344767; padding: .75rem 1rem; vertical-align: middle; border-bottom: 1px solid rgba(0,0,0,.04) !important; }
.table tbody tr:last-child td { border-bottom: 0 !important; }
.table-responsive { border-radius: 0 0 var(--md-border-radius) var(--md-border-radius); }

/* ===== FORMS ===== */
.form-control, .form-select {
  border: 1px solid #d2d6da;
  border-radius: .5rem;
  font-size: .875rem;
  padding: .5rem .75rem;
  color: #344767;
  transition: border-color .15s, box-shadow .15s;
}
.form-control:focus, .form-select:focus {
  border-color: #43A047;
  box-shadow: 0 0 0 3px rgba(67,160,71,.15);
  outline: 0;
}
.form-label { font-size: .75rem; font-weight: 600; color: #344767; margin-bottom: .3rem; }
.form-check-input:checked { background-color: #43A047; border-color: #43A047; }

/* ===== ALERTS ===== */
.alert { border: 0; border-radius: .75rem; font-size: .875rem; }
.alert-success { background: #d4edda; color: #155724; }
.alert-danger  { background: #f8d7da; color: #721c24; }
.alert-warning { background: #fff3cd; color: #856404; }
.alert-info    { background: #d1ecf1; color: #0c5460; }

/* ===== FOOTER ===== */
.footer { margin-top: auto; padding: 1rem 1.5rem; }

/* ===== PAGE HEADER ===== */
.page-header {
  position: relative; overflow: hidden;
  border-radius: var(--md-border-radius) !important;
  padding: 2rem;
}

/* ===== SIDENAV TOGGLER ===== */
.sidenav-toggler-inner { display: flex; flex-direction: column; gap: 5px; }
.sidenav-toggler-line  { display: block; width: 22px; height: 2px; background: #344767; border-radius: 2px; }

/* ===== MISC UTILITIES ===== */
.text-xs  { font-size: .75rem !important; }
.text-sm  { font-size: .875rem !important; }
.text-3xl { font-size: 1.875rem !important; }
.font-weight-bold    { font-weight: 700 !important; }
.font-weight-bolder  { font-weight: 900 !important; }
.font-weight-semibold{ font-weight: 600 !important; }
.opacity-5  { opacity: .5 !important; }
.opacity-6  { opacity: .6 !important; }
.opacity-7  { opacity: .7 !important; }
.opacity-8  { opacity: .8 !important; }
.currency { font-variant-numeric: tabular-nums; }
.border-radius-lg { border-radius: var(--md-border-radius) !important; }
.border-radius-xl { border-radius: 1rem !important; }
.z-index-2 { z-index: 2 !important; }
.mt-n4 { margin-top: -1.5rem !important; }
.mt-n5 { margin-top: -2rem !important; }
.min-height-200 { min-height: 200px; }
.max-height-vh-100 { max-height: 100vh; }
.g-sidenav-show .sidenav { transform: translateX(0); }
.avatar { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; font-weight: 700; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1199px) {
  .sidenav { transform: translateX(-100%); }
  .main-content { margin-left: 0; }
  .g-sidenav-show .sidenav { transform: translateX(0); }
}

/* ===== HOME PAGE EXTRAS ===== */
.hero { min-height: 100vh; display: flex; align-items: center; }
.feature-card { border: 0 !important; border-radius: 1rem !important; transition: transform .2s, box-shadow .2s; }
.feature-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(0,0,0,.15) !important; }
.feature-icon { width: 56px; height: 56px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; flex-shrink: 0; }

/* ===== DROPDOWN ===== */
.dropdown-menu { border: 0; border-radius: .75rem; box-shadow: 0 8px 30px rgba(0,0,0,.12); font-size: .875rem; }
.dropdown-item { padding: .5rem 1rem; color: #344767; border-radius: .5rem; margin: 2px 4px; }
.dropdown-item:hover { background: #f8f9fa; }
.dropdown-item.text-danger:hover { background: #ffeaea; }
