﻿/* =========================================================
   ΑΘΗΝΑΪΣ Admin — Stylesheet
   Brand: Green #47a347 / Orange #f5a623 / White
   Font:  Nunito (Google Fonts)
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&display=swap');

:root {
  --green:        #47a347;
  --green-dark:   #388038;
  --green-light:  #edf7ed;
  --orange:       #f5a623;
  --orange-dark:  #d4880a;
  --orange-light: #fff8ec;
  --red:          #e53935;
  --red-light:    #fdecea;
  --blue:         #1e88e5;
  --blue-light:   #e3f2fd;
  --text:         #2d3436;
  --text-muted:   #7f8c8d;
  --border:       #dfe6e9;
  --bg:           #f0f4f0;
  --white:        #ffffff;
  --card-shadow:  0 2px 12px rgba(0,0,0,0.08);
  --radius:       10px;
  --radius-sm:    6px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0;
  font-family: 'Nunito', Arial, sans-serif;
  font-size: 14px;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-dark); text-decoration: underline; }

/* =========================================================
   HEADER
   ========================================================= */
#app-header {
  background: var(--white);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  border-bottom: 3px solid var(--green);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  gap: 10px;
  flex-wrap: wrap;
}

#app-header .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

#app-header .logo img { height: 52px; }

#app-header .logo .app-title {
  color: var(--green);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.5px;
  line-height: 1.1;
  white-space: normal;
  overflow-wrap: anywhere;
}

#app-header .user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--green-light);
  border: 1px solid #c8e6c9;
  border-radius: 50px;
  padding: 6px 16px 6px 10px;
  font-size: 13px;
  color: var(--text);
  flex-shrink: 0;
  margin-left: auto;
}

@media (max-width: 1200px) {
  #app-header {
    padding: 8px 14px;
  }

  #app-header .logo .app-title {
    font-size: 18px;
    letter-spacing: 0.2px;
  }

  #app-header .user-info {
    gap: 8px;
    padding: 5px 10px 5px 8px;
  }
}

@media (max-width: 960px) {
  #app-header {
    min-height: 68px;
    padding: 8px 12px;
    gap: 8px;
    flex-wrap: wrap;
  }

  #app-header .logo .app-title {
    font-size: 18px;
  }

  #app-header .user-info {
    width: 100%;
  }
}

#app-header .user-info .user-avatar {
  width: 34px;
  height: 34px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  flex-shrink: 0;
}

#app-header .user-info .user-name {
  font-weight: 700;
  font-size: 13px;
  color: var(--text);
}

#app-header .user-info .user-role {
  font-size: 11px;
  color: var(--text-muted);
}

#app-header .user-info a {
  color: var(--red);
  font-size: 12px;
  font-weight: 600;
  margin-left: 6px;
  white-space: nowrap;
}
#app-header .user-info a:hover { text-decoration: none; color: #b71c1c; }

/* =========================================================
   NAVIGATION
   ========================================================= */
#app-nav {
  background: var(--white);
  padding: 0 20px;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

#app-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}

#app-nav > ul > li { position: relative; }

#app-nav > ul > li > a {
  display: block;
  padding: 14px 18px;
  color: var(--text);
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

#app-nav > ul > li > a .nav-caret {
  display: inline-block;
  margin-left: 6px;
  font-size: 11px;
  line-height: 1;
  transition: transform 0.2s ease;
}

#app-nav > ul > li.open > a .nav-caret {
  transform: rotate(180deg);
}

#app-nav > ul > li > a:hover,
#app-nav > ul > li.active > a {
  color: var(--green);
  border-bottom-color: var(--green);
  text-decoration: none;
}

#app-nav ul ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--green);
  min-width: 240px;
  z-index: 2000;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

#app-nav ul li:hover > ul { display: block; }
#app-nav ul li.open > ul { display: block; }

#app-nav ul ul li a {
  display: block;
  padding: 10px 16px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.15s, color 0.15s;
}

#app-nav ul ul li:last-child a { border-bottom: none; }

#app-nav ul ul li a:hover {
  background: var(--green-light);
  color: var(--green-dark);
  text-decoration: none;
}

#app-nav ul ul li.separator {
  border-top: 1px dashed var(--border);
  margin: 4px 0;
}

/* =========================================================
   MAIN CONTENT WRAPPER
   ========================================================= */
#app-wrapper {
  min-height: calc(100vh - 190px);
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

/* =========================================================
   SECTION BOX (card/panel)
   ========================================================= */
.section-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 18px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.section-box .section-title {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: #fff;
  padding: 10px 16px;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  letter-spacing: 0.3px;
}

.section-box .section-body { padding: 14px; }

/* =========================================================
   DATA TABLE
   ========================================================= */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table th {
  background: var(--green-light);
  color: var(--green-dark);
  font-weight: 700;
  padding: 9px 10px;
  border-bottom: 2px solid #c8e6c9;
  border-right: 1px solid #dcedc8;
  white-space: nowrap;
  cursor: pointer;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.data-table th:last-child { border-right: none; }

.data-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #f0f0f0;
  border-right: 1px solid #f5f5f5;
  vertical-align: middle;
}

.data-table td:last-child { border-right: none; }

.data-table tr:nth-child(even) td { background: #fafdf9; }
.data-table tr:hover td { background: #f1f9f1; }
.data-table tr.selected td { background: #d4edda !important; }
.data-table th .sort-icon { font-size: 10px; color: var(--green); }

/* =========================================================
   TABLE TOOLBAR
   ========================================================= */
.table-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  background: #f8faf8;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.table-toolbar .btn-tool {
  border: 1px solid #c8e6c9;
  background: var(--white);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 12px;
  cursor: pointer;
  color: var(--green-dark);
  font-weight: 600;
  font-family: 'Nunito', sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s;
}

.table-toolbar .btn-tool:hover {
  background: var(--green-light);
  border-color: var(--green);
}

.table-toolbar .separator { color: #ccc; margin: 0 4px; }

.table-toolbar .pagination-info {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

/* =========================================================
   SEARCH ROW
   ========================================================= */
.data-table .search-row th input {
  width: 100%;
  border: 1px solid #c8e6c9;
  border-radius: 4px;
  padding: 4px 7px;
  font-size: 12px;
  font-family: 'Nunito', sans-serif;
  outline: none;
}
.data-table .search-row th input:focus { border-color: var(--green); }

/* =========================================================
   FILTER BAR
   ========================================================= */
.filter-bar {
  background: #f8faf8;
  border: 1px solid #dcedc8;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.filter-bar label {
  font-weight: 700;
  font-size: 12px;
  color: var(--green-dark);
  margin-right: 4px;
}

.filter-bar select,
.filter-bar input[type="text"],
.filter-bar input[type="date"] {
  border: 1px solid #c8e6c9;
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 13px;
  font-family: 'Nunito', sans-serif;
  background: var(--white);
  outline: none;
  transition: border-color 0.2s;
}
.filter-bar select:focus,
.filter-bar input:focus { border-color: var(--green); }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  font-family: 'Nunito', sans-serif;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.18s;
  white-space: nowrap;
}

.btn:hover { filter: brightness(0.92); transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); filter: brightness(0.88); }

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 2px 8px rgba(30,136,229,0.3);
}

.btn-accent {
  background: var(--green);
  color: #fff;
  font-size: 13px;
  padding: 8px 20px;
  box-shadow: 0 2px 8px rgba(71,163,71,0.35);
}

.btn-danger {
  background: var(--red);
  color: #fff;
  box-shadow: 0 2px 8px rgba(229,57,53,0.3);
}

.btn-success {
  background: var(--green);
  color: #fff;
  box-shadow: 0 2px 8px rgba(71,163,71,0.3);
}

.btn-sm {
  padding: 3px 10px;
  font-size: 12px;
  border-radius: 14px;
  font-weight: 600;
}

.btn-send-email {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 700;
  font-family: 'Nunito', sans-serif;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(245,166,35,0.4);
  transition: all 0.18s;
  white-space: nowrap;
}
.btn-send-email:hover { filter: brightness(0.92); transform: translateY(-1px); }

/* =========================================================
   FORMS
   ========================================================= */
.form-group {
  margin-bottom: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.form-group label {
  font-weight: 700;
  font-size: 13px;
  min-width: 180px;
  color: var(--text);
  text-align: right;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="date"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 7px 12px;
  font-size: 13px;
  font-family: 'Nunito', sans-serif;
  min-width: 200px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(71,163,71,0.15);
}

.form-group .required { color: var(--red); }

.form-label-box {
  background: var(--green);
  color: #fff;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  min-width: 130px;
  text-align: center;
}

.param-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}
.param-row:last-child { border-bottom: none; }

.param-row .param-label {
  background: var(--green);
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  min-width: 160px;
  text-align: center;
}

/* =========================================================
   DASHBOARD
   ========================================================= */
.dash-section {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 16px;
  background: var(--white);
  box-shadow: var(--card-shadow);
}

.dash-section-title {
  font-weight: 800;
  color: var(--green-dark);
  font-size: 14px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dash-section-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 18px;
  background: var(--green);
  border-radius: 2px;
}

.dash-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.dash-icon-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 115px;
  padding: 14px 8px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  text-decoration: none;
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  transition: all 0.2s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.dash-icon-link:hover {
  background: var(--green-light);
  border-color: var(--green);
  color: var(--green-dark);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(71,163,71,0.2);
}

.dash-icon-link .icon {
  font-size: 38px;
  margin-bottom: 8px;
  line-height: 1;
}

/* =========================================================
   MODAL
   ========================================================= */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 3000;
  align-items: center;
  justify-content: center;
}
.modal-overlay.show { display: flex; }

.modal-box {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  min-width: 380px;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: #fff;
  padding: 12px 18px;
  font-weight: 700;
  font-size: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: var(--radius) var(--radius) 0 0;
}

.modal-header .modal-close {
  background: rgba(255,255,255,0.2);
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  padding: 2px 8px;
  border-radius: 50%;
  transition: background 0.15s;
}
.modal-header .modal-close:hover { background: rgba(255,255,255,0.35); }

.modal-body { padding: 18px; }
.modal-footer {
  padding: 12px 18px;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  border-top: 1px solid var(--border);
  background: #fafafa;
  border-radius: 0 0 var(--radius) var(--radius);
}

/* =========================================================
   ACTIVITY PANELS
   ========================================================= */
.activity-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  background: #f8faf8;
}
.activity-panel legend { font-weight: 700; font-size: 12px; color: var(--green-dark); padding: 0 6px; }
.activity-panel select[multiple] {
  width: 100%; height: 130px;
  border: 1px solid #c8e6c9; border-radius: 4px;
  font-size: 12px; font-family: 'Nunito', sans-serif;
}
.activity-panel .free-input {
  width: 100%; border: 1px solid #c8e6c9; border-radius: 4px;
  padding: 4px 8px; font-size: 12px; font-family: 'Nunito', sans-serif; margin-top: 4px;
}
.activity-panel .btn-pair { display: flex; gap: 6px; margin-top: 6px; }

/* =========================================================
   INLINE EDIT / RATING
   ========================================================= */
.editable-cell input[type="number"],
.editable-cell input[type="text"] {
  width: 52px; border: 1px solid #c8e6c9; border-radius: 4px;
  padding: 3px 4px; font-size: 12px; text-align: center;
  font-family: 'Nunito', sans-serif;
}
.editable-cell input.wide { width: 110px; }

.rating-cell { font-weight: 700; text-align: center; }
.rating-4 { color: var(--green-dark); }
.rating-3 { color: var(--blue); }
.rating-2 { color: var(--orange-dark); }
.rating-1 { color: var(--red); }

/* =========================================================
   ALERTS
   ========================================================= */
.alert {
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 600;
  border-left: 4px solid transparent;
}
.alert-danger  { background: var(--red-light);   color: #c62828; border-left-color: var(--red);   }
.alert-success { background: var(--green-light);  color: #2e7d32; border-left-color: var(--green); }
.alert-info    { background: var(--blue-light);   color: #1565c0; border-left-color: var(--blue);  }
.alert-warning { background: var(--orange-light); color: #e65100; border-left-color: var(--orange);}

/* =========================================================
   TWO-COLUMN
   ========================================================= */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 768px) { .two-col { grid-template-columns: 1fr; } }

/* =========================================================
   FOOTER
   ========================================================= */
#app-footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  text-align: center;
  padding: 12px;
  font-size: 12px;
  font-weight: 600;
}

/* =========================================================
   LOGIN PAGE
   ========================================================= */
body.public-page {
  background: linear-gradient(135deg, #e8f5e9 0%, #f0f8ff 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.public-page #app-header { justify-content: center; }

.login-wrapper {
  flex: 1; display: flex; align-items: center;
  justify-content: center; padding: 30px 20px;
}

.login-container {
  display: flex; gap: 32px;
  align-items: flex-start; max-width: 820px; width: 100%;
}

.login-info {
  flex: 1; background: var(--white); border-radius: var(--radius);
  padding: 28px; font-size: 14px; line-height: 1.7;
  color: var(--text); box-shadow: var(--card-shadow);
}
.login-info h2 {
  color: var(--green); font-size: 18px; font-weight: 800;
  margin-top: 0; display: flex; align-items: center; gap: 8px;
}
.login-info ul { padding-left: 20px; }
.login-info li { margin-bottom: 6px; }

.login-box {
  width: 280px; background: var(--white);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.login-box .login-box-title {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: #fff; font-weight: 700; padding: 14px 18px;
  font-size: 15px; text-align: center; letter-spacing: 0.3px;
}

.login-box .login-box-body { padding: 20px 18px; }

.login-box .login-field { margin-bottom: 14px; }
.login-box .login-field label {
  display: block; font-size: 12px; color: var(--text-muted);
  margin-bottom: 4px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.login-box .login-field input {
  width: 100%; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); padding: 8px 12px;
  font-size: 14px; font-family: 'Nunito', sans-serif;
  outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.login-box .login-field input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(71,163,71,0.15);
}

.login-box .login-links { font-size: 12px; margin-top: 10px; }
.login-box .login-links a { display: block; color: var(--green); margin-bottom: 3px; font-weight: 600; }

/* =========================================================
   TOAST
   ========================================================= */
.toast-msg {
  border-radius: var(--radius-sm) !important;
  font-weight: 600 !important;
  font-family: 'Nunito', sans-serif !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15) !important;
}

/* =========================================================
   UTILITY
   ========================================================= */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-muted  { color: var(--text-muted); }
.mt-10 { margin-top: 10px; }
.mb-10 { margin-bottom: 10px; }
.d-flex { display: flex; }
.gap-8 { gap: 8px; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.hidden { display: none; }

.spinner {
  display: inline-block; width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.4); border-top-color: #fff;
  border-radius: 50%; animation: spin 0.7s linear infinite; vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

.badge {
  display: inline-block; padding: 3px 10px;
  border-radius: 20px; font-size: 11px; font-weight: 700;
}
.badge-success { background: var(--green-light);  color: #2e7d32; }
.badge-danger  { background: var(--red-light);    color: #c62828; }
.badge-warning { background: var(--orange-light); color: #e65100; }
.badge-info    { background: var(--blue-light);   color: #1565c0; }

/* =========================================================
   RESPONSIVE IMPROVEMENTS (MOBILE/TABLET)
   ========================================================= */
@media (max-width: 1024px) {
  #app-wrapper {
    padding: 14px;
  }

  #app-nav {
    padding: 0 10px;
  }

  #app-nav ul {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  #app-nav > ul > li {
    flex: 0 0 auto;
  }

  #app-nav > ul > li > a {
    white-space: nowrap;
    padding: 12px 14px;
  }

  #app-nav > ul > li > a {
    display: inline-flex;
    align-items: center;
  }

  /* On touch/tablet, ignore sticky hover and control dropdown only via .open */
  #app-nav ul li:hover > ul {
    display: none;
  }

  #app-nav ul li.open > ul {
    display: block;
  }

  /* On touch/tablet keep top nav in one row and show submenu in-flow when opened via tap. */
  #app-nav ul ul {
    position: static;
    min-width: 220px;
    border-left: none;
    border-right: none;
    border-top: 1px solid #dcedc8;
    border-radius: 0;
    box-shadow: none;
  }

  #app-nav ul ul li a {
    padding: 10px 14px;
  }

  .section-box .section-body {
    overflow-x: auto;
  }

  .data-table {
    min-width: 760px;
  }
}

@media (max-width: 768px) {
  #app-header {
    height: auto;
    min-height: 68px;
    padding: 10px 12px;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
  }

  #app-header .logo img {
    height: 42px;
  }

  #app-header .logo .app-title {
    font-size: 18px;
    letter-spacing: 0;
  }

  #app-header .user-info {
    width: 100%;
    justify-content: flex-start;
    border-radius: 12px;
    padding: 8px 10px;
  }

  .form-group {
    gap: 6px;
  }

  .form-group label {
    min-width: 0;
    width: 100%;
    text-align: left;
    margin-bottom: 2px;
  }

  .form-group input[type="text"],
  .form-group input[type="email"],
  .form-group input[type="password"],
  .form-group input[type="date"],
  .form-group input[type="number"],
  .form-group select,
  .form-group textarea {
    min-width: 0;
    width: 100%;
  }

  .filter-bar {
    gap: 10px;
    padding: 10px;
  }

  .filter-bar select,
  .filter-bar input[type="text"],
  .filter-bar input[type="date"] {
    width: 100%;
  }

  .table-toolbar {
    gap: 8px;
  }

  .table-toolbar .pagination-info {
    width: 100%;
    margin-left: 0;
  }

  .btn,
  .btn-send-email {
    min-height: 40px;
  }

  .modal-box {
    min-width: 0;
    width: calc(100% - 20px);
  }

  .login-container {
    flex-direction: column;
    gap: 14px;
    align-items: stretch;
  }

  .login-box {
    width: 100%;
  }
}

@media (max-width: 480px) {
  #app-wrapper {
    padding: 10px;
  }

  #app-header {
    padding: 8px 10px;
  }

  #app-header .logo .app-title {
    font-size: 16px;
  }

  #app-header .user-info {
    font-size: 12px;
  }

  #app-header .user-info .user-avatar {
    width: 30px;
    height: 30px;
    font-size: 13px;
  }

  #app-nav > ul > li > a {
    padding: 10px 12px;
    font-size: 12.5px;
  }

  .section-box .section-title {
    font-size: 13px;
    padding: 9px 12px;
  }

  .section-box .section-body {
    padding: 10px;
  }

  .dash-icon-link {
    width: calc(50% - 6px);
    min-width: 130px;
  }

  .login-wrapper {
    padding: 16px 12px;
  }

  .login-info,
  .login-box .login-box-body {
    padding: 14px;
  }
}

@media (max-width: 430px) {
  #app-header .logo {
    width: 100%;
    flex: 1 1 100%;
  }

  #app-header .logo img {
    height: 36px;
  }

  #app-header .logo .app-title {
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  #app-header .user-info {
    width: 100%;
    gap: 6px;
    padding: 6px 8px;
  }

  #app-header .user-info .user-name {
    font-size: 12px;
  }

  #app-header .user-info .user-role {
    font-size: 10px;
  }

  #app-header .user-info a {
    margin-left: auto;
    font-size: 11px;
  }
}
