/* 
 * CableApp Custom Premium Theme Overrides
 * Designed for a modern SaaS look-and-feel
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary-color: #5e50ee;
  --primary-hover: #4b3fd3;
  --primary-rgb: 94, 80, 238;
  --secondary-color: #06b6d4;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  --sidebar-bg: #0f172a;
  --sidebar-header: #090d16;
  --sidebar-hover: #1e293b;
  --sidebar-text: #94a3b8;
  --sidebar-text-hover: #ffffff;
  --body-bg: #f8fafc;
  --card-bg: #ffffff;
  --border-color: rgba(226, 232, 240, 0.8);
  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Global Font Overrides */
body, html {
  font-family: var(--font-family) !important;
  background-color: var(--body-bg) !important;
  color: #1e293b !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, .weight-500, .weight-600, .weight-700 {
  font-family: var(--font-family) !important;
  color: #0f172a !important;
}

/* Custom Scrollbar for modern look */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--body-bg);
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Custom Scroll for DeskApp elements */
.customscroll::-webkit-scrollbar {
  width: 6px;
}
.customscroll::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.3);
  border-radius: 4px;
}
.customscroll::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.6);
}

/* Main Container and general layout */
.main-container {
  background-color: var(--body-bg) !important;
  min-height: 100vh;
  padding-top: 90px !important;
  transition: all 0.5s ease;
}

/* modern box layout */
.bg-white {
  background-color: var(--card-bg) !important;
}

.border-radius-5 {
  border-radius: 12px !important;
}

.box-shadow {
  box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 2px 4px -2px rgba(15, 23, 42, 0.05) !important;
  border: 1px solid var(--border-color) !important;
}

.box-shadow:hover {
  box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.08) !important;
  transition: all 0.3s ease;
}

/* Theme Utilities overrides (remapping red mockups back to clean theme colors) */
.text-blue {
  color: var(--primary-color) !important;
}
.bg-blue {
  background-color: var(--primary-color) !important;
}
.text-light-green {
  color: var(--success-color) !important;
}
.bg-light-green {
  background-color: var(--success-color) !important;
}
.text-light-orange {
  color: var(--warning-color) !important;
}
.bg-light-orange {
  background-color: var(--warning-color) !important;
}
.text-light-purple {
  color: #8b5cf6 !important;
}
.bg-light-purple {
  background-color: #8b5cf6 !important;
}

/* Header Styling */
.header {
  background: rgba(255, 255, 255, 0.8) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.02) !important;
}

.header-right {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px !important;
}

.header-right .brand-logo h4 {
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--primary-color) !important;
  margin: 0;
}

/* User dropdown button */
.user-info-dropdown {
  margin-left: auto !important;
}

.user-info-dropdown .dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.user-info-dropdown .user-icon {
  background: rgba(94, 80, 238, 0.1);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.user-info-dropdown .user-icon i {
  color: var(--primary-color) !important;
}

.user-info-dropdown .user-name {
  color: #334155;
  font-weight: 600;
  font-size: 14px;
}

.dropdown-menu {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  padding: 8px;
}

.dropdown-item {
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 10px;
}

.dropdown-item:hover {
  background-color: #f1f5f9;
  color: var(--primary-color);
}

.dropdown-item i {
  width: 16px;
  text-align: center;
}

/* Left Sidebar Overrides (Modern Dark Theme Sidebar) */
.left-side-bar {
  background: var(--sidebar-bg) !important;
  width: 250px !important;
  box-shadow: 4px 0 24px rgba(15, 23, 42, 0.15) !important;
  border-right: 1px solid #1e293b;
}

.left-side-bar .brand-logo {
  background: var(--sidebar-header) !important;
  border-bottom: 1px solid #1e293b;
  height: 70px;
  display: flex;
  align-items: center;
  padding: 0 24px;
}

.left-side-bar .brand-logo h4 {
  margin: 0;
  font-size: 18px;
  font-weight: 800 !important;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #ffffff 0%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Sidebar Menu elements */
.sidebar-menu {
  padding: 20px 12px !important;
}

/* Account search box in sidebar - Sleek unified styling */
.sidebar-menu form {
  padding: 0 4px;
  margin-bottom: 24px;
}

.sidebar-menu form .row {
  display: flex;
  margin: 0;
  position: relative;
  width: 100%;
}

.sidebar-menu form .col-9 {
  width: 100% !important;
  max-width: 100% !important;
  flex: 1 !important;
  padding: 0 !important;
}

.sidebar-menu form .col-3 {
  position: absolute !important;
  right: 0 !important;
  top: 0 !important;
  width: 40px !important;
  height: 100% !important;
  max-width: 40px !important;
  padding: 0 !important;
  z-index: 5;
}

.sidebar-menu form .form-control {
  background: #1e293b !important;
  border: 1px solid #334155 !important;
  color: #ffffff !important;
  border-radius: 20px !important;
  font-size: 13px;
  height: 38px;
  padding: 8px 40px 8px 16px !important;
  width: 100%;
  box-shadow: none !important;
  transition: all 0.2s ease-in-out;
}

.sidebar-menu form .form-control:focus {
  border-color: var(--primary-color) !important;
  background: #0f172a !important;
}

.sidebar-menu form .form-control::placeholder {
  color: #64748b;
}

.sidebar-menu form .btn-danger {
  background: transparent !important;
  border: none !important;
  color: #94a3b8 !important;
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  padding: 0 !important;
  font-size: 14px;
}

.sidebar-menu form .btn-danger:hover {
  color: var(--primary-color) !important;
}

/* Menu list */
.sidebar-menu .dropdown-toggle {
  color: var(--sidebar-text) !important;
  border-radius: 8px;
  margin-bottom: 6px;
  padding: 10px 16px 10px 44px !important;
  font-weight: 500;
  font-size: 13.5px;
  border-left: 3px solid transparent;
  transition: all 0.15s ease-in-out;
}

.sidebar-menu .dropdown-toggle .fa {
  left: 14px !important;
  color: var(--sidebar-text) !important;
  font-size: 16px !important;
  top: 13px !important;
}

.sidebar-menu .dropdown-toggle:hover {
  background: var(--sidebar-hover) !important;
  color: var(--sidebar-text-hover) !important;
  border-left-color: var(--primary-color) !important;
}

.sidebar-menu .dropdown-toggle:hover .fa {
  color: var(--sidebar-text-hover) !important;
}

/* Active Menu Item */
.sidebar-menu .dropdown-toggle.active,
.sidebar-menu .show > .dropdown-toggle {
  background: rgba(94, 80, 238, 0.15) !important;
  color: #ffffff !important;
  border-left-color: var(--primary-color) !important;
  box-shadow: none !important;
}

.sidebar-menu .dropdown-toggle.active .fa,
.sidebar-menu .show > .dropdown-toggle .fa {
  color: var(--primary-color) !important;
}

/* Submenu container - Developer-grade file tree connectors */
.sidebar-menu .submenu {
  background: transparent !important;
  border: none !important;
  padding: 4px 0 4px 12px !important;
  margin: 4px 0 8px 12px !important;
}

.sidebar-menu .submenu:before {
  display: none !important;
}

.sidebar-menu .submenu li {
  position: relative;
}

.sidebar-menu .submenu li::before {
  content: "" !important;
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: #334155 !important;
  display: block !important;
}

.sidebar-menu .submenu li:last-child::before {
  height: 50% !important;
}

.sidebar-menu .submenu li::after {
  content: "" !important;
  position: absolute;
  left: 12px;
  top: 50%;
  width: 12px;
  height: 1px;
  background: #334155 !important;
  display: block !important;
}

.sidebar-menu .submenu li a {
  color: var(--sidebar-text) !important;
  padding: 6px 12px 6px 32px !important;
  font-size: 13px;
  font-weight: 500;
  background: transparent !important;
  transition: all 0.15s ease-in-out;
}

.sidebar-menu .submenu li a:before {
  display: none !important;
}

.sidebar-menu .submenu li a:hover {
  color: #ffffff !important;
  background: var(--sidebar-hover) !important;
  padding-left: 36px !important;
}

.sidebar-menu .submenu li a.active {
  color: #818cf8 !important;
  font-weight: 600;
  background: transparent !important;
}

/* Content Container Card styles */
.progress-box .icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.project-info-right .no {
  font-weight: 700 !important;
  letter-spacing: -0.5px;
}

.project-info-right p {
  color: #64748b !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  margin-top: 4px;
}

/* Buttons style */
.btn {
  font-weight: 600;
  border-radius: 8px;
  padding: 8px 16px;
  transition: all 0.2s ease;
}

.btn-primary {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
}

.btn-primary:hover {
  background-color: var(--primary-hover) !important;
  border-color: var(--primary-hover) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(94, 80, 238, 0.2);
}

.btn-outline-primary {
  color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  background: transparent !important;
}

.btn-outline-primary:hover {
  background-color: var(--primary-color) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

.btn-danger {
  background-color: var(--danger-color) !important;
  border-color: var(--danger-color) !important;
}

.btn-danger:hover {
  background-color: #dc2626 !important;
  border-color: #dc2626 !important;
}

/* Custom Table overrides */
.table {
  border-collapse: separate;
  border-spacing: 0;
}

.table th {
  background-color: #f1f5f9 !important;
  color: #475569 !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  border-bottom: 2px solid #e2e8f0 !important;
  padding: 12px 16px !important;
}

.table td {
  padding: 12px 16px !important;
  vertical-align: middle !important;
  border-bottom: 1px solid #e2e8f0 !important;
  font-size: 13px !important;
}

.table tr:hover td {
  background-color: #f8fafc;
}

/* Custom Checkbox override */
.custom-control-input:checked ~ .custom-control-label::before {
  border-color: var(--primary-color) !important;
  background-color: var(--primary-color) !important;
}

/* Forms input fields styling */
.form-control {
  border-radius: 8px !important;
  border: 1px solid #cbd5e1 !important;
  font-size: 14px;
  padding: 10px 14px;
  height: auto;
  transition: all 0.15s ease-in-out;
}

.form-control:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 4px rgba(94, 80, 238, 0.15) !important;
}

.input-group-text {
  border-radius: 8px;
  background-color: #f8fafc;
  border-color: #cbd5e1;
  color: #64748b;
}

/* Footer Styling */
.footer-wrap {
  margin-top: 30px;
  color: #64748b;
  font-size: 13px;
  text-align: center;
  border: 1px solid var(--border-color);
  border-radius: 12px !important;
}

.footer-wrap a {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
}

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


/* ==========================================
   REDESIGNED SPLIT SCREEN LOGIN PAGE STYLES
   ========================================== */
.login-body {
  background: var(--body-bg) !important;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.login-split-container {
  display: flex;
  min-height: 100vh;
  width: 100vw;
  font-family: var(--font-family);
}

/* Left panel with dynamic gradient overlay */
.login-split-left {
  flex: 1.1;
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #311054 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 50px 60px;
  position: relative;
  overflow: hidden;
}

/* Dynamic overlay mesh */
.login-split-left::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 15% 25%, rgba(99, 102, 241, 0.22) 0%, transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(6, 182, 212, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(244, 63, 94, 0.05) 0%, transparent 60%);
  z-index: 1;
}

.login-split-left::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: url("data:image/svg+xml,%3Csvg width='30' height='30' viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M15 0L30 15L15 30L0 15Z' fill='%23ffffff' fill-opacity='0.015' fill-rule='evenodd'/%3E%3C/svg%3E");
  opacity: 0.8;
  z-index: 1;
}

.login-left-header,
.login-left-body,
.login-left-footer {
  position: relative;
  z-index: 2;
}

/* Top logo and header */
.login-left-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.login-left-header img {
  filter: brightness(0) invert(1);
  max-height: 42px;
}

.login-left-header h3 {
  color: #ffffff !important;
  font-weight: 800;
  font-size: 22px;
  margin: 0;
  letter-spacing: -0.5px;
}

/* Center graphics and copy text */
.login-left-body {
  max-width: 580px;
  margin: auto 0;
}

.login-left-tagline {
  display: inline-block;
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #818cf8;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}

.login-left-body h1 {
  color: #ffffff !important;
  font-size: 44px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.login-left-body h1 span {
  background: linear-gradient(to right, #60a5fa, #34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.login-left-body p {
  color: #94a3b8;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 35px;
}

/* Features List styling */
.login-features-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.login-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.login-feature-icon {
  background: rgba(52, 211, 153, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.25);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #34d399;
  font-size: 14px;
}

.login-feature-text h4 {
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 2px 0;
}

.login-feature-text p {
  color: #64748b;
  font-size: 13px;
  margin: 0;
  line-height: 1.4;
}

.login-left-footer p {
  color: #475569;
  font-size: 13px;
  margin: 0;
}

/* Right panel containing form */
.login-split-right {
  flex: 0.9;
  background-color: var(--body-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.login-form-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.05), 0 8px 10px -6px rgba(15, 23, 42, 0.05);
  border-radius: 20px;
  width: 100%;
  max-width: 440px;
  padding: 40px;
}

.login-logo-mobile {
  display: none;
  text-align: center;
  margin-bottom: 24px;
}

.login-logo-mobile h3 {
  font-weight: 800;
  color: var(--primary-color) !important;
  margin-top: 8px;
  font-size: 24px;
}

.login-logo-mobile img {
  max-width: 100px;
}

.login-form-card h2 {
  font-weight: 800;
  font-size: 26px;
  margin: 0 0 8px 0;
  letter-spacing: -0.5px;
}

.login-form-card p.subtitle {
  color: #64748b;
  font-size: 14px;
  margin: 0 0 32px 0;
}

.login-form-card label {
  font-weight: 600;
  font-size: 13px;
  color: #475569;
  margin-bottom: 8px;
  display: block;
}

/* custom input styling for login page */
.login-form-card .input-group {
  margin-bottom: 20px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
  border-radius: 8px;
}

.login-form-card .form-control {
  border-radius: 8px 0 0 8px !important;
  height: 48px;
  border-right: none !important;
}

.login-form-card .input-group-append .input-group-text {
  border-radius: 0 8px 8px 0;
  border-left: none !important;
  background-color: #ffffff;
  color: #94a3b8;
  padding: 0 16px;
  font-size: 16px;
}

.login-form-card .form-control:focus + .input-group-append .input-group-text {
  border-color: var(--primary-color) !important;
  color: var(--primary-color);
}

.login-form-card .custom-control-label {
  font-weight: 500;
  font-size: 13px;
  color: #64748b;
  cursor: pointer;
  user-select: none;
}

.login-form-card .forgot-password a {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
}

.login-form-card .forgot-password a:hover {
  text-decoration: underline;
}

/* Sign In Button styling */
.login-btn-submit {
  width: 100%;
  height: 48px;
  background: linear-gradient(135deg, var(--primary-color), #3b82f6) !important;
  border: none !important;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 15px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(94, 80, 238, 0.25) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  margin-top: 24px;
}

.login-btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(94, 80, 238, 0.4) !important;
}

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


/* Responsive styles for tablet & mobile screen */
@media (max-width: 991.98px) {
  .login-split-left {
    display: none !important;
  }
  
  .login-split-right {
    flex: 1;
    padding: 24px;
    background-color: var(--body-bg);
  }
  
  .login-form-card {
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0;
  }
  
  .login-logo-mobile {
    display: block !important;
  }
  
  .login-form-card h2 {
    text-align: center;
    font-size: 24px;
  }
  
  .login-form-card p.subtitle {
    text-align: center;
    margin-bottom: 24px;
  }
}

/* ==========================================
   DASHBOARD QUICK ACTIONS TILES GRID
   ========================================== */
.quick-action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 15px;
}

.action-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  padding: 14px 16px;
  border-radius: 12px;
  text-decoration: none !important;
  transition: all 0.2s ease-in-out;
}

.action-tile:hover {
  background: #ffffff;
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(94, 80, 238, 0.06), 0 4px 6px -4px rgba(94, 80, 238, 0.06);
}

.action-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.action-label {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  line-height: 1.3;
}

.action-tile:hover .action-label {
  color: var(--primary-color);
}

/* Soft Background Colors for Quick Action Icons */
.bg-soft-primary { background: rgba(94, 80, 238, 0.08); color: var(--primary-color); }
.bg-soft-secondary { background: rgba(6, 182, 212, 0.08); color: var(--secondary-color); }
.bg-soft-success { background: rgba(16, 185, 129, 0.08); color: var(--success-color); }
.bg-soft-warning { background: rgba(245, 158, 11, 0.08); color: var(--warning-color); }
.bg-soft-danger { background: rgba(239, 68, 68, 0.08); color: var(--danger-color); }
.bg-soft-purple { background: rgba(139, 92, 246, 0.08); color: #8b5cf6; }
.bg-soft-indigo { background: rgba(79, 70, 229, 0.08); color: #4f46e5; }

