/* ==========================================================================
   MediaKITA - Metronic 8.2 Dark Sidebar Layout System & Typography
   Font: GT Walsheim Pro, Helvetica, sans-serif
   ========================================================================== */

@import url('https://fonts.cdnfonts.com/css/gt-walsheim-pro');
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap');

/* Global Font Override to GT Walsheim Pro */
:root, [data-bs-theme=light], [data-bs-theme=dark], body, .font-heading, h1, h2, h3, h4, h5, h6, .menu-title, .form-label, .btn, .breadcrumb, .table {
  font-family: 'GT Walsheim Pro', 'GT Walsheim', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif !important;
}

/* ==========================================================================
   KeenIcons Font Faces & Class Definitions (Local WOFF/TTF)
   ========================================================================== */
@font-face {
  font-family: 'KeenIcons-Outline';
  src: url('../plugins/global/fonts/keenicons/keenicons-outline.woff') format('woff'),
       url('../plugins/global/fonts/keenicons/keenicons-outline.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'KeenIcons-Duotone';
  src: url('../plugins/global/fonts/keenicons/keenicons-duotone.woff') format('woff'),
       url('../plugins/global/fonts/keenicons/keenicons-duotone.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'KeenIcons-Solid';
  src: url('../plugins/global/fonts/keenicons/keenicons-solid.woff') format('woff'),
       url('../plugins/global/fonts/keenicons/keenicons-solid.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

.ki-outline, [class^="ki-outline-"], [class*=" ki-outline-"],
.ki-duotone, [class^="ki-duotone-"], [class*=" ki-duotone-"],
.ki-solid, [class^="ki-solid-"], [class*=" ki-solid-"] {
  font-family: 'KeenIcons-Outline' !important;
  speak: never;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.ki-duotone { font-family: 'KeenIcons-Duotone' !important; }
.ki-solid { font-family: 'KeenIcons-Solid' !important; }

/* KeenIcons Glyphs */
.ki-element-11:before { content: "\e980"; }
.ki-element-plus:before { content: "\e981"; }
.ki-element-7:before { content: "\e983"; }
.ki-microphone:before { content: "\ea12"; }
.ki-microphone-2:before { content: "\ea13"; }
.ki-podcast:before { content: "\ea13"; }
.ki-audio-wave:before { content: "\e945"; }
.ki-soundwave:before { content: "\e945"; }
.ki-teacher:before { content: "\eab0"; }
.ki-mortarboard:before { content: "\eab0"; }
.ki-document-text:before { content: "\e976"; }
.ki-document:before { content: "\e975"; }
.ki-book-open:before { content: "\e976"; }
.ki-screen:before { content: "\ea72"; }
.ki-broadcast:before { content: "\ea72"; }
.ki-profile-user:before { content: "\ea3e"; }
.ki-profile-2user:before { content: "\ea3f"; }
.ki-profile-circle:before { content: "\ea3e"; }
.ki-shield-tick:before { content: "\ea7e"; }
.ki-shield-cross:before { content: "\ea7f"; }
.ki-category:before { content: "\e955"; }
.ki-crown-2:before { content: "\e96c"; }
.ki-cup:before { content: "\e96d"; }
.ki-flash:before { content: "\e99a"; }
.ki-sun:before { content: "\ea9c"; }
.ki-moon:before { content: "\ea18"; }
.ki-plus:before { content: "\ea36"; }
.ki-plus-circle:before { content: "\ea37"; }
.ki-pencil:before { content: "\ea30"; }
.ki-trash:before { content: "\eab8"; }
.ki-gear:before { content: "\e9a2"; }
.ki-setting-2:before { content: "\ea7a"; }
.ki-eye:before { content: "\e994"; }
.ki-cross:before { content: "\e968"; }
.ki-cross-circle:before { content: "\e969"; }
.ki-check:before { content: "\e95c"; }
.ki-check-circle:before { content: "\e95d"; }
.ki-arrow-right:before { content: "\e93e"; }
.ki-arrow-left:before { content: "\e93d"; }
.ki-arrow-up:before { content: "\e941"; }
.ki-arrow-down:before { content: "\e93a"; }
.ki-filter:before { content: "\e998"; }
.ki-search-list:before { content: "\ea74"; }
.ki-magnifier:before { content: "\ea09"; }
.ki-abstract-26:before { content: "\e919"; }
.ki-exit-right:before { content: "\e98e"; }
.ki-time:before { content: "\eab2"; }
.ki-badge:before { content: "\e947"; }
.ki-camera:before { content: "\e950"; }
.ki-camera-video:before { content: "\e950"; }
.ki-video:before { content: "\e950"; }
.ki-down:before { content: "\e978"; }
.ki-information-2:before { content: "\e9c6"; }
.ki-award:before { content: "\e948"; }
.ki-star:before { content: "\ea94"; }
.ki-medal-star:before { content: "\ea94"; }
.ki-copy:before { content: "\e964"; }
.ki-bookmark:before { content: "\e94b"; }
.ki-arrows-circle:before { content: "\e940"; }
.ki-chart-line-star:before { content: "\e959"; }
.ki-cpu:before { content: "\e966"; }
.ki-dollar:before { content: "\e970"; }
.ki-text:before { content: "\eab1"; }

/* ==========================================================================
   Metronic 8.2 Layout Structure
   ========================================================================== */
body {
  background-color: #F5F8FA;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

[data-bs-theme="dark"] body {
  background-color: #0F1015;
}

.app-root {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
}

.app-page {
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
}

.app-wrapper {
  display: flex;
  flex: 1 0 auto;
  min-height: 100vh;
}

/* --- Metronic Dark Sidebar --- */
.app-sidebar, #kt_app_sidebar {
  width: 265px !important;
  min-width: 265px !important;
  background-color: #1E1E2D !important;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 105;
  display: flex !important;
  flex-direction: column !important;
  transition: transform 0.3s ease;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.08);
}

.app-sidebar-logo {
  height: 70px;
  min-height: 70px;
  display: flex;
  align-items: center;
  padding: 0 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background-color: #1A1A27;
}

.app-sidebar-menu {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 18px 12px;
}

.app-sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background-color: #1A1A27;
}

/* Sidebar Menu Items */
.app-sidebar-menu .menu-section {
  color: #565674 !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase;
  padding: 14px 12px 6px 12px;
  display: block;
}

.app-sidebar-menu .menu-item {
  margin-bottom: 2px;
}

.app-sidebar-menu .menu-link {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  color: #9D9DA6 !important;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  font-size: 13.5px;
  transition: all 0.2s ease;
}

.app-sidebar-menu .menu-link:hover {
  color: #FFFFFF !important;
  background-color: #1B1B28 !important;
}

.app-sidebar-menu .menu-link.active {
  color: #FFFFFF !important;
  background: linear-gradient(135deg, rgba(0, 158, 247, 0.2) 0%, rgba(0, 158, 247, 0.05) 100%) !important;
  border-left: 3px solid #009ef7 !important;
  font-weight: 600 !important;
}

.app-sidebar-menu .menu-icon {
  margin-right: 12px;
  width: 22px;
  display: inline-flex;
  justify-content: center;
  color: inherit;
}

.app-sidebar-menu .menu-link.active .menu-icon i {
  color: #009ef7 !important;
}

.app-sidebar-menu .menu-badge {
  margin-left: auto;
}

/* --- Metronic Header & Main Content --- */
.app-main, #kt_app_main {
  flex: 1 1 auto;
  margin-left: 265px !important;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: margin-left 0.3s ease;
}

.app-header, #kt_app_header {
  height: 70px;
  background-color: #FFFFFF;
  border-bottom: 1px solid #EFF2F5;
  display: flex;
  align-items: center;
  padding: 0 30px;
  position: sticky;
  top: 0;
  z-index: 95;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

[data-bs-theme="dark"] .app-header, 
[data-bs-theme="dark"] #kt_app_header {
  background-color: #15171F;
  border-bottom-color: #1E222D;
}

.app-content, #kt_app_content {
  flex: 1 1 auto;
}

.app-footer, #kt_app_footer {
  background-color: #FFFFFF;
  border-top: 1px solid #EFF2F5;
}

[data-bs-theme="dark"] .app-footer, 
[data-bs-theme="dark"] #kt_app_footer {
  background-color: #15171F;
  border-top-color: #1E222D;
}

/* Mobile Responsive */
@media (max-width: 991.98px) {
  .app-sidebar, #kt_app_sidebar {
    transform: translateX(-100%);
  }
  .app-sidebar.show, #kt_app_sidebar.show {
    transform: translateX(0);
  }
  .app-main, #kt_app_main {
    margin-left: 0 !important;
  }
}

/* Metronic Card Polish */
.card {
  border-radius: 12px;
  border: 1px solid #EFF2F5;
  box-shadow: 0px 0px 20px 0px rgba(76, 87, 125, 0.02);
}

[data-bs-theme="dark"] .card {
  background-color: #15171F;
  border-color: #1E222D;
}

.card-hover:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.25s ease;
}

/* Teleprompter Box */
.teleprompter-container {
  background: #0B0E14;
  color: #E2E8F0;
  border-radius: 12px;
  border: 1px solid #1E293B;
  padding: 24px;
  height: 380px;
  overflow-y: auto;
  position: relative;
  font-size: 20px;
  line-height: 1.8;
  font-weight: 500;
}

.waveform-canvas {
  width: 100%;
  height: 90px;
  background: #0A0D14;
  border-radius: 8px;
}

/* Soundboard Button */
.soundboard-pad {
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--bs-border-color);
  background: var(--bs-card-bg);
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.soundboard-pad:hover {
  transform: translateY(-2px);
  border-color: var(--bs-primary);
  box-shadow: 0 6px 18px rgba(0, 158, 247, 0.15);
}

.soundboard-pad:active {
  transform: scale(0.96);
  background-color: var(--bs-primary-bg-subtle);
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(160, 170, 190, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(160, 170, 190, 0.5);
}
