/* Akrobat Font */
@font-face {
  font-family: "Akrobat";
  src: url("fonts/Akrobat.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}

/* Gilroy Font */
@font-face {
  font-family: "Gilroy";
  src: url("fonts/Gilroy.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

/* Product Sans Font */
@font-face {
  font-family: "Product Sans";
  src: url("fonts/Product Sans.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

textarea {
  resize: none;
}
/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
:root {
  scroll-behavior: smooth;
  
  /* Light theme colors */
  --bg-color: #d6d6d6;
  --text-color: #525252;
  --card-bg: #ffffff;
  --card-border: #e6e6e6;
  --header-bg: #ffffff;
  --sidebar-bg: #ffffff;
  --link-color: #4154f1;
  --link-hover: #717ff5;
  --title-color: #012970;
  --input-bg: #ffffff;
  --input-border: #ced4da;
  --dropdown-bg: #ffffff;
  --dropdown-border: #dee2e6;
}

/* Dark theme colors */
[data-theme="dark"] {
  --bg-color: #1a1a1a;
  --text-color: #e0e0e0;
  --card-bg: #2d2d2d;
  --card-border: #404040;
  --header-bg: #2d2d2d;
  --sidebar-bg: #2d2d2d;
  --link-color: #667eea;
  --link-hover: #8b9aff;
  --title-color: #ffffff;
  --input-bg: #3d3d3d;
  --input-border: #555555;
  --dropdown-bg: #3d3d3d;
  --dropdown-border: #555555;
}

body {
  font-family: "Product Sans", sans-serif;
  background: var(--bg-color);
  color: var(--text-color);
}

a,
#zoom-calendar a {
  color: var(--link-color);
  text-decoration: none;
  cursor: pointer;
}

a:hover {
  color: var(--link-hover);
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Gilroy", sans-serif;
}

/*--------------------------------------------------------------
# Main
--------------------------------------------------------------*/
#main {
  margin-top: 60px;
  padding: 20px 30px;
  transition: all 0.3s;
}

@media (max-width: 1199px) {
  #main {
    padding: 20px;
  }
}

/*--------------------------------------------------------------
# Page Title
--------------------------------------------------------------*/
.pagetitle {
  margin-bottom: 10px;
}

.pagetitle h1 {
  font-size: 24px;
  margin-bottom: 0;
  font-weight: 600;
  color: var(--title-color);
}

/*--------------------------------------------------------------
# Back to top button
--------------------------------------------------------------*/
.back-to-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 99999;
  background: #4154f1;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  transition: all 0.4s;
}

.back-to-top i {
  font-size: 24px;
  color: #fff;
  line-height: 0;
}

.back-to-top:hover {
  background: #6776f4;
  color: #fff;
}

.back-to-top.active {
  visibility: visible;
  opacity: 1;
}

/*--------------------------------------------------------------
# Override some default Bootstrap stylings
--------------------------------------------------------------*/
/* Dropdown menus */
.dropdown-menu {
  border-radius: 4px;
  padding: 10px 0;
  animation-name: dropdown-animate;
  animation-duration: 0.2s;
  animation-fill-mode: both;
  border: 1px solid var(--dropdown-border);
  background-color: var(--dropdown-bg);
  box-shadow: 0 5px 30px 0 rgba(82, 63, 105, 0.2);
}

.dropdown-menu .dropdown-header,
.dropdown-menu .dropdown-footer {
  text-align: center;
  font-size: 15px;
  padding: 10px 25px;
}

.dropdown-menu .dropdown-footer a {
  color: var(--text-color);
  text-decoration: underline;
}

.dropdown-menu .dropdown-footer a:hover {
  text-decoration: none;
}

.dropdown-menu .dropdown-divider {
  color: #a5c5fe;
  margin: 0;
}

.dropdown-menu .dropdown-item {
  font-size: 14px;
  padding: 10px 15px;
  transition: 0.3s;
}

.dropdown-menu .dropdown-item i {
  margin-right: 10px;
  font-size: 18px;
  line-height: 0;
}

.dropdown-menu .dropdown-item:hover {
  background-color: var(--card-border);
}

@media (min-width: 768px) {
  .dropdown-menu-arrow::before {
    content: "";
    width: 13px;
    height: 13px;
    background: #fff;
    position: absolute;
    top: -7px;
    right: 20px;
    transform: rotate(45deg);
    border-top: 1px solid #eaedf1;
    border-left: 1px solid #eaedf1;
  }
}

@keyframes dropdown-animate {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }

  0% {
    opacity: 0;
  }
}

/* Light Backgrounds */
.bg-primary-light {
  background-color: #cfe2ff;
  border-color: #cfe2ff;
}

.bg-secondary-light {
  background-color: #e2e3e5;
  border-color: #e2e3e5;
}

.bg-success-light {
  background-color: #d1e7dd;
  border-color: #d1e7dd;
}

.bg-danger-light {
  background-color: #f8d7da;
  border-color: #f8d7da;
}

.bg-warning-light {
  background-color: #fff3cd;
  border-color: #fff3cd;
}

.bg-info-light {
  background-color: #cff4fc;
  border-color: #cff4fc;
}

.bg-dark-light {
  background-color: #d3d3d4;
  border-color: #d3d3d4;
}

/* Card */
.card {
  margin-bottom: 30px;
  border: 1px solid var(--card-border);
  border-radius: 5px;
  box-shadow: 0px 0 30px rgba(1, 41, 112, 0.1);
  background-color: var(--card-bg);
}

.card-header,
.card-footer {
  border-color: var(--card-border);
  background-color: var(--card-bg);
  color: var(--text-color);
  padding: 15px;
}

.card-title {
  padding: 20px 0 15px 0;
  font-size: 18px;
  font-weight: 500;
  color: var(--title-color);
  font-family: "Akrobat", sans-serif;
}

.card-title span {
  color: #899bbd;
  font-size: 14px;
  font-weight: 400;
}

.card-body {
  padding: 0 20px 20px 20px;
}

.card-img-overlay {
  background-color: rgba(255, 255, 255, 0.6);
}

/* Alerts */
.alert-heading {
  font-weight: 500;
  font-family: "Akrobat", sans-serif;
  font-size: 20px;
}

/* Close Button */
.btn-close {
  background-size: 25%;
}

.btn-close:focus {
  outline: 0;
  box-shadow: none;
}

/* Accordion */
.accordion-item {
  border: 1px solid #ebeef4;
}

.accordion-button:focus {
  outline: 0;
  box-shadow: none;
}

.accordion-button:not(.collapsed) {
  color: #012970;
  background-color: #f6f9ff;
}

.accordion-flush .accordion-button {
  padding: 15px 0;
  background: none;
  border: 0;
}

.accordion-flush .accordion-button:not(.collapsed) {
  box-shadow: none;
  color: #4154f1;
}

.accordion-flush .accordion-body {
  padding: 0 0 15px 0;
  color: #3e4f6f;
  font-size: 15px;
}

/* Breadcrumbs */
.breadcrumb {
  font-size: 14px;
  font-family: "Gilroy", sans-serif;
  color: #899bbd;
  font-weight: 600;
}

.breadcrumb a {
  color: #899bbd;
  transition: 0.3s;
}

.breadcrumb a:hover {
  color: #51678f;
}

.breadcrumb .breadcrumb-item::before {
  color: #899bbd;
}

.breadcrumb .active {
  color: #51678f;
  font-weight: 600;
}

/* Bordered Tabs */
.nav-tabs-bordered {
  border-bottom: 2px solid #ebeef4;
}

.nav-tabs-bordered .nav-link {
  margin-bottom: -2px;
  border: none;
  color: #2c384e;
}

.nav-tabs-bordered .nav-link:hover,
.nav-tabs-bordered .nav-link:focus {
  color: #4154f1;
}

.nav-tabs-bordered .nav-link.active {
  background-color: #fff;
  color: #4154f1;
  border-bottom: 2px solid #4154f1;
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
.logo {
  line-height: 1;
}

@media (min-width: 1200px) {
  .logo {
    width: 280px;
  }
}

.logo img {
  max-height: 26px;
  margin-right: 6px;
}

.logo span {
  font-size: 26px;
  font-weight: 700;
  color: #012970;
  font-family: "Gilroy", sans-serif;
}

.header {
  transition: all 0.5s;
  z-index: 997;
  height: 60px;
  box-shadow: 0px 2px 20px rgba(1, 41, 112, 0.1);
  background-color: var(--header-bg);
  padding-left: 20px;
  /* Toggle Sidebar Button */
  /* Search Bar */
}

.header .toggle-sidebar-btn {
  font-size: 32px;
  padding-left: 10px;
  cursor: pointer;
  color: #012970;
}

.header .search-bar {
  min-width: 360px;
  padding: 0 20px;
}

@media (max-width: 1199px) {
  .header .search-bar {
    position: fixed;
    top: 50px;
    left: 0;
    right: 0;
    padding: 20px;
    box-shadow: 0px 0px 15px 0px rgba(1, 41, 112, 0.1);
    background: white;
    z-index: 9999;
    transition: 0.3s;
    visibility: hidden;
    opacity: 0;
  }

  .header .search-bar-show {
    top: 60px;
    visibility: visible;
    opacity: 1;
  }
}

.header .search-form {
  width: 100%;
}

.header .search-form input {
  border: 0;
  font-size: 14px;
  color: #012970;
  border: 1px solid rgba(1, 41, 112, 0.2);
  padding: 7px 38px 7px 8px;
  border-radius: 3px;
  transition: 0.3s;
  width: 100%;
}

.header .search-form input:focus,
.header .search-form input:hover {
  outline: none;
  box-shadow: 0 0 10px 0 rgba(1, 41, 112, 0.15);
  border: 1px solid rgba(1, 41, 112, 0.3);
}

.header .search-form button {
  border: 0;
  padding: 0;
  margin-left: -30px;
  background: none;
}

.header .search-form button i {
  color: #012970;
}

/*--------------------------------------------------------------
# Header Nav
--------------------------------------------------------------*/
.header-nav ul {
  list-style: none;
}

.header-nav > ul {
  margin: 0;
  padding: 0;
}

.header-nav .nav-icon {
  font-size: 22px;
  color: #012970;
  margin-right: 25px;
  position: relative;
}

.header-nav .nav-profile {
  color: #012970;
}

.header-nav .nav-profile img {
  max-height: 36px;
}

.header-nav .nav-profile span {
  font-size: 14px;
  font-weight: 600;
}

.header-nav .badge-number {
  position: absolute;
  inset: -2px -5px auto auto;
  font-weight: normal;
  font-size: 12px;
  padding: 3px 6px;
}

.header-nav .notifications {
  inset: 8px -15px auto auto !important;
}

.header-nav .notifications .notification-item {
  display: flex;
  align-items: center;
  padding: 15px 10px;
  transition: 0.3s;
}

.header-nav .notifications .notification-item i {
  margin: 0 20px 0 10px;
  font-size: 24px;
}

.header-nav .notifications .notification-item h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 5px;
}

.header-nav .notifications .notification-item p {
  font-size: 13px;
  margin-bottom: 3px;
  color: #919191;
}

.header-nav .notifications .notification-item:hover {
  background-color: #f6f9ff;
}

.header-nav .messages {
  inset: 8px -15px auto auto !important;
}

.header-nav .messages .message-item {
  padding: 15px 10px;
  transition: 0.3s;
}

.header-nav .messages .message-item a {
  display: flex;
}

.header-nav .messages .message-item img {
  margin: 0 20px 0 10px;
  max-height: 40px;
}

.header-nav .messages .message-item h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 5px;
  color: #444444;
}

.header-nav .messages .message-item p {
  font-size: 13px;
  margin-bottom: 3px;
  color: #919191;
}

.header-nav .messages .message-item:hover {
  background-color: #f6f9ff;
}

.header-nav .profile {
  min-width: 240px;
  padding-bottom: 0;
  top: 8px !important;
}

.header-nav .profile .dropdown-header h6 {
  font-size: 18px;
  margin-bottom: 0;
  font-weight: 600;
  color: #444444;
}

.header-nav .profile .dropdown-header span {
  font-size: 14px;
}

.header-nav .profile .dropdown-item {
  font-size: 14px;
  padding: 10px 15px;
  transition: 0.3s;
}

.header-nav .profile .dropdown-item i {
  margin-right: 10px;
  font-size: 18px;
  line-height: 0;
}

.header-nav .profile .dropdown-item:hover {
  background-color: #f6f9ff;
}

/*--------------------------------------------------------------
# Sidebar
--------------------------------------------------------------*/
.sidebar {
  position: fixed;
  top: 60px;
  left: 0;
  bottom: 0;
  width: 300px;
  z-index: 996;
  transition: all 0.3s;
  padding: 20px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #aab7cf transparent;
  box-shadow: 0px 0px 20px rgba(1, 41, 112, 0.1);
  background-color: var(--sidebar-bg);
}

@media (max-width: 1199px) {
  .sidebar {
    left: -300px;
  }
}

.sidebar::-webkit-scrollbar {
  width: 5px;
  height: 8px;
  background-color: var(--sidebar-bg);
}

.sidebar::-webkit-scrollbar-thumb {
  background-color: #aab7cf;
}

@media (min-width: 1200px) {
  #main,
  #footer {
    margin-left: 300px;
  }
}

@media (max-width: 1199px) {
  .toggle-sidebar .sidebar {
    left: 0;
  }
}

@media (min-width: 1200px) {
  .toggle-sidebar #main,
  .toggle-sidebar #footer {
    margin-left: 0;
  }

  .toggle-sidebar .sidebar {
    left: -300px;
  }
}

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

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

.sidebar-nav .nav-item {
  margin-bottom: 5px;
}

.sidebar-nav .nav-heading {
  font-size: 11px;
  text-transform: uppercase;
  color: #899bbd;
  font-weight: 600;
  margin: 10px 0 5px 15px;
}

.sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  font-size: 15px;
  font-weight: 600;
  color: #4154f1;
  transition: 0.3;
  background: #f6f9ff;
  padding: 10px 15px;
  border-radius: 4px;
}

.sidebar-nav .nav-link i {
  font-size: 16px;
  margin-right: 10px;
  color: #4154f1;
}

.sidebar-nav .nav-link.collapsed {
  color: #012970;
  background: #fff;
}

.sidebar-nav .nav-link.collapsed i {
  color: #899bbd;
}

.sidebar-nav .nav-link:hover {
  color: #4154f1;
  background: #f6f9ff;
}

.sidebar-nav .nav-link:hover i {
  color: #4154f1;
}

.sidebar-nav .nav-link .bi-chevron-down {
  margin-right: 0;
  transition: transform 0.2s ease-in-out;
}

.sidebar-nav .nav-link:not(.collapsed) .bi-chevron-down {
  transform: rotate(180deg);
}

.sidebar-nav .nav-content {
  padding: 5px 0 0 0;
  margin: 0;
  list-style: none;
}

.sidebar-nav .nav-content a {
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: #012970;
  transition: 0.3;
  padding: 10px 0 10px 40px;
  transition: 0.3s;
}

.sidebar-nav .nav-content a i {
  font-size: 6px;
  margin-right: 8px;
  line-height: 0;
  border-radius: 50%;
}

.sidebar-nav .nav-content a:hover,
.sidebar-nav .nav-content a.active {
  color: #4154f1;
}

.sidebar-nav .nav-content a.active i {
  background-color: #4154f1;
}

/*--------------------------------------------------------------
# Dashboard
--------------------------------------------------------------*/

/* Info Cards */
.dashboard .info-card {
  padding-bottom: 10px;
  cursor: pointer;
}

/* Info Cards */
.dashboard .info-card:hover {
  background-color: #ebebeb;
}

.dashboard .info-card h6 {
  font-size: 28px;
  color: #012970;
  font-weight: 700;
  margin: 0;
  padding: 0;
}

.dashboard .card-icon {
  font-size: 32px;
  line-height: 0;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  flex-grow: 0;
}

/*--------------------------------------------------------------
# Profie Page
--------------------------------------------------------------*/
.profile .profile-card img {
  max-width: 120px;
}

.profile .profile-card h2 {
  font-size: 24px;
  font-weight: 700;
  color: #2c384e;
  margin: 10px 0 0 0;
}

.profile .profile-card h3 {
  font-size: 18px;
}

.profile .profile-card .social-links a {
  font-size: 20px;
  display: inline-block;
  color: rgba(1, 41, 112, 0.5);
  line-height: 0;
  margin-right: 10px;
  transition: 0.3s;
}

.profile .profile-card .social-links a:hover {
  color: #012970;
}

.profile .profile-overview .row {
  margin-bottom: 20px;
  font-size: 15px;
}

.profile .profile-overview .card-title {
  color: #012970;
}

.profile .profile-overview .label {
  font-weight: 600;
  color: rgba(1, 41, 112, 0.6);
}

.profile .profile-edit label {
  font-weight: 600;
  color: rgba(1, 41, 112, 0.6);
}

.profile .profile-edit img {
  max-width: 120px;
}



/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer {
  padding: 20px 0;
  font-size: 14px;
  transition: all 0.3s;
  border-top: 1px solid #cddfff;
}

.footer .copyright {
  text-align: center;
  color: #012970;
}

.footer .credits {
  padding-top: 5px;
  text-align: center;
  font-size: 13px;
  color: #012970;
}

/* ==============================================================
   CerbDesk / Helpdesk Cerbit - Modern UI Override
   Dodane: nowoczesny wygląd, profesjonalne kolory, miękkie 3D,
   lepsze formularze, tabele DataTables, modale i sidebar.
   ============================================================= */

:root {
  scroll-behavior: smooth;

  --bg-color: #eef3fb;
  --text-color: #334155;
  --muted-color: #64748b;
  --card-bg: rgba(255, 255, 255, 0.88);
  --card-border: rgba(148, 163, 184, 0.22);
  --header-bg: rgba(255, 255, 255, 0.86);
  --sidebar-bg: linear-gradient(180deg, #0f172a 0%, #111827 52%, #1e293b 100%);
  --link-color: #2563eb;
  --link-hover: #1d4ed8;
  --title-color: #0f172a;
  --input-bg: rgba(255, 255, 255, 0.94);
  --input-border: #cbd5e1;
  --dropdown-bg: rgba(255, 255, 255, 0.96);
  --dropdown-border: rgba(148, 163, 184, 0.28);

  --cerb-primary: #2563eb;
  --cerb-primary-dark: #1e40af;
  --cerb-primary-soft: #dbeafe;
  --cerb-accent: #06b6d4;
  --cerb-success: #16a34a;
  --cerb-warning: #f59e0b;
  --cerb-danger: #dc2626;
  --cerb-dark: #0f172a;
  --cerb-surface: #ffffff;

  --cerb-radius-sm: 10px;
  --cerb-radius: 16px;
  --cerb-radius-lg: 22px;
  --cerb-shadow-sm: 0 8px 20px rgba(15, 23, 42, 0.08);
  --cerb-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --cerb-shadow-3d: 0 18px 35px rgba(37, 99, 235, 0.18), 0 2px 0 rgba(255,255,255,.55) inset;
}

[data-theme="dark"] {
  --bg-color: #020617;
  --text-color: #dbeafe;
  --muted-color: #94a3b8;
  --card-bg: rgba(15, 23, 42, 0.84);
  --card-border: rgba(148, 163, 184, 0.18);
  --header-bg: rgba(15, 23, 42, 0.88);
  --sidebar-bg: linear-gradient(180deg, #020617 0%, #0f172a 100%);
  --link-color: #60a5fa;
  --link-hover: #93c5fd;
  --title-color: #f8fafc;
  --input-bg: rgba(15, 23, 42, 0.92);
  --input-border: rgba(148, 163, 184, 0.35);
  --dropdown-bg: rgba(15, 23, 42, 0.96);
  --dropdown-border: rgba(148, 163, 184, 0.25);
}

html, body {
  min-height: 100%;
}

body {
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.16), transparent 34%),
    radial-gradient(circle at top right, rgba(6, 182, 212, 0.14), transparent 30%),
    linear-gradient(135deg, #eef3fb 0%, #f8fafc 50%, #eaf2ff 100%);
  color: var(--text-color);
  font-family: "Product Sans", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0.01em;
}

[data-theme="dark"] body {
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.22), transparent 34%),
    radial-gradient(circle at top right, rgba(6, 182, 212, 0.16), transparent 30%),
    linear-gradient(135deg, #020617 0%, #0f172a 55%, #111827 100%);
}

#main {
  padding: 28px 34px;
}

/* Header */
.header {
  height: 66px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.20);
  background: var(--header-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.logo span {
  color: var(--title-color);
  letter-spacing: -0.04em;
}

.header .toggle-sidebar-btn,
.header-nav .nav-icon,
.header-nav .nav-profile {
  color: var(--cerb-primary);
}

.header-nav .nav-profile img {
  border: 2px solid rgba(37, 99, 235, 0.28);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.18);
}

/* Sidebar */
.sidebar {
  top: 66px;
  width: 300px;
  padding: 18px 16px;
  background: var(--sidebar-bg);
  box-shadow: 16px 0 40px rgba(15, 23, 42, 0.22);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-nav .nav-heading {
  color: #94a3b8;
  letter-spacing: 0.12em;
  margin: 18px 0 8px 14px;
}

.sidebar-nav .nav-link,
.sidebar-nav .nav-link.collapsed {
  min-height: 44px;
  color: #cbd5e1;
  background: transparent;
  border-radius: 14px;
  border: 1px solid transparent;
  transition: all .22s ease;
}

.sidebar-nav .nav-link i,
.sidebar-nav .nav-link.collapsed i {
  color: #93c5fd;
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link:not(.collapsed),
.sidebar-nav .nav-content a.active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.92), rgba(6, 182, 212, 0.74));
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.28);
  transform: translateY(-1px);
}

.sidebar-nav .nav-link:hover i,
.sidebar-nav .nav-link:not(.collapsed) i {
  color: #ffffff;
}

.sidebar-nav .nav-content a {
  color: #cbd5e1;
  border-radius: 12px;
  margin: 2px 0;
  padding: 9px 10px 9px 42px;
}

.sidebar-nav .nav-content a:hover {
  color: #ffffff;
  background: rgba(255,255,255,0.08);
}

@media (min-width: 1200px) {
  #main,
  #footer {
    margin-left: 300px;
  }
}

/* Page title */
.pagetitle h1,
.card-title {
  color: var(--title-color);
  font-weight: 800;
  letter-spacing: -0.035em;
}

.pagetitle h1 {
  font-size: 28px;
}

/* Cards */
.card {
  border: 1px solid var(--card-border);
  border-radius: var(--cerb-radius-lg);
  background: var(--card-bg);
  box-shadow: var(--cerb-shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 56px rgba(15, 23, 42, 0.16);
  border-color: rgba(37, 99, 235, 0.24);
}

.card-body {
  padding: 6px 24px 24px 24px;
}

.card-header,
.card-footer {
  background: transparent;
  border-color: var(--card-border);
}

.card-title {
  position: relative;
  padding: 22px 0 18px 0;
  font-size: 19px;
}

.card-title::after {
  content: "";
  display: block;
  width: 54px;
  height: 4px;
  margin-top: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cerb-primary), var(--cerb-accent));
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.28);
}

/* Forms */
.form-control,
.form-select,
.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
  min-height: 38px;
  border-radius: 12px;
  border: 1px solid var(--input-border);
  background-color: var(--input-bg);
  color: var(--text-color);
  box-shadow: 0 1px 0 rgba(255,255,255,.65) inset, 0 8px 18px rgba(15, 23, 42, 0.04);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.form-control:focus,
.form-select:focus,
.dataTables_wrapper .dataTables_filter input:focus {
  border-color: rgba(37, 99, 235, 0.72);
  box-shadow: 0 0 0 .24rem rgba(37, 99, 235, 0.13), 0 12px 24px rgba(37, 99, 235, 0.10);
  transform: translateY(-1px);
}

label,
.form-label {
  color: #475569;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 6px;
}

[data-theme="dark"] label,
[data-theme="dark"] .form-label {
  color: #cbd5e1;
}

textarea.form-control {
  min-height: 110px;
}

.form-text {
  color: var(--muted-color);
}

/* Buttons */
.btn {
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: .01em;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.10);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.14);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  border: none;
  background: linear-gradient(135deg, var(--cerb-primary), var(--cerb-accent));
  box-shadow: var(--cerb-shadow-3d);
}

.btn-success {
  border: none;
  background: linear-gradient(135deg, #16a34a, #22c55e);
}

.btn-warning {
  border: none;
  color: #111827;
  background: linear-gradient(135deg, #f59e0b, #facc15);
}

.btn-danger {
  border: none;
  background: linear-gradient(135deg, #dc2626, #fb7185);
}

.btn-secondary,
.btn-outline-primary {
  border-color: rgba(37, 99, 235, 0.30);
  color: var(--cerb-primary);
  background: rgba(255,255,255,0.72);
}

.btn-sm {
  border-radius: 10px;
  padding: .34rem .54rem;
}

/* Status text colors */
.text-primary { color: var(--cerb-primary) !important; }
.text-success { color: var(--cerb-success) !important; }
.text-warning { color: var(--cerb-warning) !important; }
.text-danger { color: var(--cerb-danger) !important; }
.text-secondary { color: #64748b !important; }

/* Tables / DataTables */
table.dataTable,
.table {
  border-collapse: separate !important;
  border-spacing: 0 8px !important;
  color: var(--text-color);
}

table.dataTable thead th,
.table thead th {
  border: none !important;
  color: #64748b;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 800;
  background: transparent;
}

table.dataTable tbody tr,
.table tbody tr {
  background: rgba(255,255,255,0.88);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  transition: transform .16s ease, box-shadow .16s ease;
}

[data-theme="dark"] table.dataTable tbody tr,
[data-theme="dark"] .table tbody tr {
  background: rgba(15, 23, 42, 0.82);
}

table.dataTable tbody tr:hover,
.table tbody tr:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.12);
}

table.dataTable tbody td,
.table tbody td {
  border-top: 1px solid rgba(148, 163, 184, 0.14) !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14) !important;
  padding: 13px 12px !important;
  vertical-align: middle;
}

table.dataTable tbody td:first-child,
.table tbody td:first-child {
  border-left: 1px solid rgba(148, 163, 184, 0.14) !important;
  border-radius: 14px 0 0 14px;
  font-weight: 800;
  color: var(--title-color);
}

table.dataTable tbody td:last-child,
.table tbody td:last-child {
  border-right: 1px solid rgba(148, 163, 184, 0.14) !important;
  border-radius: 0 14px 14px 0;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
  color: var(--muted-color) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
  border-radius: 10px !important;
  border: 1px solid rgba(148, 163, 184, 0.22) !important;
  background: rgba(255,255,255,0.78) !important;
  color: var(--text-color) !important;
  margin: 0 3px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  border-color: transparent !important;
  background: linear-gradient(135deg, var(--cerb-primary), var(--cerb-accent)) !important;
  color: #ffffff !important;
}

/* Modals */
.modal-content {
  border: 1px solid rgba(148, 163, 184, 0.20);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.28);
  overflow: hidden;
}

[data-theme="dark"] .modal-content {
  background: rgba(15, 23, 42, 0.97);
}

.modal-header {
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.10), rgba(6, 182, 212, 0.10));
}

.modal-title {
  color: var(--title-color);
  font-weight: 850;
  letter-spacing: -0.03em;
}

.modal-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(248, 250, 252, 0.72);
}

[data-theme="dark"] .modal-footer {
  background: rgba(2, 6, 23, 0.55);
}

/* Attachments / screenshot drop zones */
#screenshot-area,
#screenshot-area-edit {
  border: 1px dashed rgba(37, 99, 235, 0.42) !important;
  border-radius: 18px !important;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(6, 182, 212, 0.08)) !important;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.08) inset;
  transition: all .18s ease;
}

#screenshot-area:hover,
#screenshot-area-edit:hover {
  border-color: rgba(37, 99, 235, 0.78) !important;
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.13);
}

#preview-attachments-gallery-admin .card,
#edit-attachments-gallery .card {
  border-radius: 18px;
  overflow: hidden;
}

#preview-attachments-gallery-admin img,
#edit-attachments-gallery img {
  transition: transform .22s ease;
}

#preview-attachments-gallery-admin img:hover,
#edit-attachments-gallery img:hover {
  transform: scale(1.035);
}

/* Dashboard cards */
.dashboard .info-card,
.info-card {
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255,255,255,.92), rgba(239,246,255,.82));
  box-shadow: var(--cerb-shadow);
}

.dashboard .info-card:hover,
.info-card:hover {
  background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(219,234,254,.9));
  transform: translateY(-3px);
}

.dashboard .info-card h6,
.info-card h6 {
  color: var(--title-color);
  font-weight: 900;
}

.dashboard .card-icon {
  border-radius: 20px;
  background: linear-gradient(135deg, var(--cerb-primary), var(--cerb-accent));
  color: #ffffff;
  box-shadow: var(--cerb-shadow-3d);
}

/* Dropdown */
.dropdown-menu {
  border-radius: 18px;
  box-shadow: 0 24px 56px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(14px);
}

.dropdown-menu .dropdown-item {
  border-radius: 12px;
  margin: 2px 8px;
  width: auto;
}

.dropdown-menu .dropdown-item:hover {
  background: rgba(37, 99, 235, 0.10);
  color: var(--cerb-primary);
}

/* Footer */
.footer {
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  color: var(--muted-color);
}

.footer .copyright,
.footer .credits {
  color: var(--muted-color);
}

/* Small polish / UX fixes */
.badge,
.alert {
  border-radius: 12px;
}

.alert {
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: var(--cerb-shadow-sm);
}

hr {
  border-color: rgba(148, 163, 184, 0.22);
  opacity: 1;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(148, 163, 184, 0.12);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--cerb-primary), var(--cerb-accent));
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.55);
}

@media (max-width: 767px) {
  #main {
    padding: 18px 14px;
  }

  .card-body {
    padding: 4px 16px 18px 16px;
  }

  .pagetitle h1 {
    font-size: 23px;
  }

  .modal-content {
    border-radius: 18px;
  }
}
