/* 
 * NaviPlus Global Styles - Minimal Bootstrap Style
 * CSS đơn giản cho hệ thống authentication
 */

/* ============================================
   CSS VARIABLES - Customize màu sắc tại đây
   ============================================ */
:root {
  /* Header Colors */
  --header-bg-color: #1A1A1A;
  --header-bg-active: #444;
  --header-text-color: #FFFFFF;
  --header-text-hover: #F0F0F0;
  --header-hover-bg: rgba(255, 255, 255, 0.1);
  --header-active-bg: rgba(255, 255, 255, 0.15);
  
  /* Dropdown Colors */
  --dropdown-bg: #FFFFFF;
  --dropdown-border: #E5E5E5;
  --dropdown-hover-bg: #F5F5F5;
  --dropdown-header-bg: #F9F9F9;
  --dropdown-header-text: #999999;
  --dropdown-active-bg: #E8F4F8;
  --dropdown-active-border: #5BC0DE;
  
  /* Current Website Card */
  --current-website-bg: #F0F7FF;
  --current-website-border: #4A90E2;
  --current-website-text: #333333;
  
  /* Plan Badge Colors */
  --badge-default: #777777;
  --badge-info: #5BC0DE;
  --badge-primary: #337AB7;
  --badge-warning: #F0AD4E;
  --badge-success: #5CB85C;
  --badge-danger: #D9534F;
  
  /* Text Colors */
  --text-primary: #333333;
  --text-secondary: #666666;
  --text-muted: #999999;
  --text-success: #5CB85C;
  --text-secondary-dark: #eee;
}

/* Nền và padding cơ bản */
body { 
  background: #f5f5f5; 
  padding-top: 50px; 
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "San Francisco", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

/* Body cho auth pages */
body.auth-page {
  padding-top: 0;
  overflow: hidden;
}

h2.page-title {
  font-size: 24px;
  font-weight: 700;
}

/* ============================================
   AUTH SPLIT-SCREEN LAYOUT
   ============================================ */

/* Split Container */
.auth-split-container {
  display: flex;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
  position: relative;
  margin: 0;
  padding: 0;
}

/* Left Panel: Background & Testimonial */
.auth-left-panel {
  position: relative;
  width: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Background Layers */
.auth-backgrounds {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.auth-bg-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  animation: bgTransition 16s infinite;
}

.auth-bg-1 {
  background-image: url('../../app/assets/images/background/1.jpg');
  animation-delay: 0s;
}

.auth-bg-2 {
  background-image: url('../../app/assets/images/background/2.jpg');
  animation-delay: 8s;
}

@keyframes bgTransition {
  0%, 45% {
    opacity: 1;
  }
  50%, 95% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* Overlay cho background */
.auth-backgrounds::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.85) 0%, rgba(45, 62, 80, 0.75) 100%);
  z-index: 1;
}

/* Testimonial Content */
.auth-testimonial {
  position: relative;
  z-index: 2;
  padding: 60px 40px;
  color: #ffffff;
  max-width: 600px;
}

.testimonial-content {
  animation: fadeInUp 1s ease-out;
}

.quote-icon {
  font-size: 64px;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 30px;
  line-height: 1;
}

.testimonial-text {
  font-size: 24px;
  line-height: 1.6;
  font-weight: 400;
  margin-bottom: 50px;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 20px;
}

.author-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.author-info {
  flex: 1;
}

.author-name {
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 5px 0;
}

.author-role {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

/* Right Panel: Login/Register Form */
.auth-right-panel {
  width: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  padding: 140px 40px 40px 40px;
  overflow-y: auto;
}

.auth-right-panel .panel{
  border: 0px;
}

.auth-right-panel .panel-heading {
  background: none;
  border-bottom: 0px;
}

.auth-right-panel .panel-heading b {
  font-size: 24px;
}

.auth-form-container {
  width: 100%;
  max-width: 450px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.auth-form-container .logo {
  text-align: center;
}

.auth-form-container .logo img{
  width: 96px;
  border-radius: 12px;
}

/* Copyright Footer */
.auth-copyright {
  text-align: center;
  padding: 20px 0;
  color: #999;
  font-size: 13px;
  margin-top: auto; /* Push to bottom on desktop */
}

.auth-copyright p {
  margin: 0;
}

/* Panel form đăng nhập/đăng ký */
.panel { 
  max-width: 100%; 
  margin: 0;
  box-shadow: none;
  border: 1px solid #ddd;
  border-radius: 12px;
}

.panel-heading {
  background-color: #f5f5f5;
  color: #333;
  font-size: 16px;
  font-weight: normal;
  padding: 10px 16px;
  border-bottom: 1px solid #ddd;
  border-radius: 12px 12px 0 0;
}

.panel-body {
  padding: 16px;
  background: #ffffff;
  border-radius: 0 0 12px 12px;
}

/* Form Input Styling - Bootstrap default */
.form-control {
  border-radius: 8px;
  border: 1px solid #ccc;
  padding: 6px 12px;
  font-size: 14px;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
  border-color: #66afe9;
  box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102,175,233,.6);
  outline: none;
}

/* Button Styling - Bootstrap default */
.btn-success,
.btn-primary,
.btn-danger {
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: normal;
  text-transform: none;
  letter-spacing: normal;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.btn-success {
  background-color: #5cb85c;
  border-color: #4cae4c;
  color: #fff;
}

.btn-success:hover {
  background-color: #449d44;
  border-color: #398439;
  transform: none;
  box-shadow: none;
}

.btn-primary {
  background-color: #337ab7;
  border-color: #2e6da4;
  color: #fff;
}

.btn-primary:hover {
  background-color: #286090;
  border-color: #204d74;
  transform: none;
  box-shadow: none;
}

.btn-danger {
  background-color: #d9534f;
  border-color: #d43f3a;
  color: #fff;
}

.btn-danger:hover {
  background-color: #c9302c;
  border-color: #ac2925;
  transform: none;
  box-shadow: none;
}

/* Social Login Buttons */
.btn-block {
  border-radius: 8px;
  padding: 6px 12px;
  margin-bottom: 0;
  font-weight: normal;
  transition: all 0.2s ease;
}

.btn-block i {
  margin-right: 5px;
  font-size: 16px;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Mobile Responsive */
@media (max-width: 992px) {
  .auth-split-container {
    flex-direction: column;
    min-height: 100vh;
  }

  .auth-left-panel {
    width: 100%;
    min-height: 40vh;
    padding: 40px 30px;
  }

  .auth-testimonial {
    padding: 40px 30px;
  }

  .testimonial-text {
    font-size: 20px;
    margin-bottom: 30px;
  }

  .quote-icon {
    font-size: 48px;
    margin-bottom: 20px;
  }

  .auth-right-panel {
    width: 100%;
    min-height: 60vh;
    padding: 24px 0px;
  }

  .auth-form-container {
    max-width: 100%;
    min-height: auto; /* Remove min-height on mobile */
  }

  /* Copyright không pin trên mobile */
  .auth-copyright {
    margin-top: 20px; /* Normal margin, not auto */
    position: static;
  }

  .panel-body {
    padding: 30px 25px;
  }
}

@media (max-width: 768px) {
  .auth-left-panel {
    min-height: 30vh;
    padding: 30px 20px;
  }

  .auth-testimonial {
    padding: 30px 20px;
  }

  .testimonial-text {
    font-size: 18px;
    margin-bottom: 25px;
  }

  .author-name {
    font-size: 16px;
  }

  .author-role {
    font-size: 13px;
  }

  .panel-heading {
    font-size: 20px;
    padding: 20px 25px;
  }

  .panel-body {
    padding: 25px 20px;
  }
}

/* Alert messages */
.alert {
  max-width: 100%;
  margin: 0 0 20px 0;
  border-radius: 8px;
  border: none;
}

.auth-form-container .alert {
  margin-bottom: 20px;
}

/* Spacing cho các nút social login */
.btn-block {
  margin-bottom: 10px;
}

/* Icon trong button */
.btn .glyphicon {
  margin-right: 8px;
}

/* Domain Cards Grid Layout */
.domain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.domain-card {
  background: white;
  border: 1px solid #ddd;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.domain-card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.add-domain-card {
  border: 2px dashed #ccc;
  background: #f9f9f9;
}

.add-domain-card .card-body {
  padding: 40px 20px;
}

.add-icon {
  font-size: 48px;
  color: #337ab7;
  margin-bottom: 16px;
}

.card-header {
  padding: 10px 16px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.domain-title {
  display: flex;
  align-items: center;
  flex: 1;
}

.platform-icon {
  font-size: 20px;
  margin-right: 10px;
}

.platform-icon .wordpress-icon { color: #21759b; }
.platform-icon .shopify-icon { color: #96bf48; }
.platform-icon .other-icon { color: #666; }

.domain-actions .btn-link {
  color: #666;
  padding: 5px;
  font-size: 16px;
}

.domain-actions .btn-link:hover {
  color: #333;
  background-color: transparent;
}

.domain-actions .dropdown-menu {
  min-width: 120px;
}

.domain-actions .dropdown-menu li a {
  padding: 6px 12px;
  display: block;
  color: #333;
  text-decoration: none;
}

.domain-actions .dropdown-menu li a:hover {
  background-color: #f5f5f5;
}

.domain-actions .dropdown-menu li a.text-danger:hover {
  background-color: #f2dede;
  color: #a94442;
}

.domain-actions .dropdown-menu li a i {
  margin-right: 8px;
  width: 14px;
}

/* Light mode dropdown for domain cards */
.dropdown-menu-light,
.domain-card .dropdown-menu {
  background-color: #ffffff !important;
  border: 1px solid #ddd !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
}

.dropdown-menu-light > li > a,
.domain-card .dropdown-menu > li > a {
  color: #333 !important;
}

.dropdown-menu-light > li > a:hover,
.dropdown-menu-light > li > a:focus,
.domain-card .dropdown-menu > li > a:hover,
.domain-card .dropdown-menu > li > a:focus {
  background-color: #f5f5f5 !important;
  color: #333 !important;
}

.dropdown-menu-light .divider,
.domain-card .dropdown-menu .divider {
  background-color: #ddd !important;
  height: 1px;
  margin: 6px 0;
}

.dropdown-menu-light > li > a.text-danger,
.domain-card .dropdown-menu > li > a.text-danger {
  color: #d9534f !important;
}

.dropdown-menu-light > li > a.text-danger:hover,
.domain-card .dropdown-menu > li > a.text-danger:hover {
  background-color: #f2dede !important;
  color: #a94442 !important;
}

/* Clickable domain name */
.domain-name-link {
  text-decoration: none;
  color: inherit;
}

.domain-name-link:hover {
  text-decoration: none;
}

.domain-name-link:hover .domain-name {
  color: #286090;
  text-decoration: underline;
}

/* Clickable menu count */
.menu-count-link {
  text-decoration: none;
  color: inherit;
  display: inline-block;
  transition: transform 0.2s;
}

.menu-count-link:hover {
  text-decoration: none;
  transform: scale(1.1);
}

.menu-count-link:hover span {
  color: #286090 !important;
}

.card-body {
  padding: 16px;
}

.domain-name {
  font-size: 16px;
  font-weight: bold;
  margin: 0;
  color: #337ab7;
}

.domain-description {
  color: #666;
  font-size: 14px;
  margin-bottom: 16px;
  min-height: 40px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  /* Limit to 130 characters visually */
  max-width: 65ch;
}

.domain-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.platform-badge {
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: bold;
}

.platform-wordpress { background: #e3f2fd; color: #21759b; }
.platform-shopify { background: #f3f8e8; color: #96bf48; }
.platform-other { background: #f5f5f5; color: #666; }

.card-footer {
  padding: 10px 16px;
}

.btn-primary-dark {
  background: linear-gradient(to bottom, #444 0%, #222 100%);
    border: 1px solid #000;
    border-radius: 8px;
    display: inline-block;
    color: #fff;
    padding: 6px 24px;
    width: 100%;
    font-weight: bold;
    font-size: 14px;
    text-shadow: 1px 1px 0px #000;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 2px 3px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease-in-out;
    box-shadow: 0rem -.0625rem 0rem .0625rem rgba(0, 0, 0, .8) inset, 0rem 0rem 0rem .0625rem rgba(48, 48, 48, 1) inset, 0rem .03125rem 0rem .09375rem rgba(255, 255, 255, .25) inset !important;
}

.modal-dialog {
  max-width: 520px;
}

/* Navbar styling - Dark Theme */
.navbar-default {
  background-color: #1A1A1A !important;
  border-color: #1a1a1a !important;
}

.navbar-brand {
  font-weight: bold;
  color: #ffffff !important;
}

.navbar-brand:hover,
.navbar-brand:focus {
  color: #f0f0f0 !important;
}

/* Navbar navigation items */
.navbar-default .navbar-nav > li > a {
  color: #ffffff !important;
  
}

.navbar-default .navbar-nav > li > a#user-token-copy {
  padding: 2px 16px;
  border-radius: 8px;
}

.navbar-default .navbar-nav > li > a#user-token-copy strong {
  color: #a7caf7 !important;
}

.navbar-default .navbar-nav > li > a.list-domains {
  font-size: 18px;
  color: #a7caf7 !important;
}

.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus {
  color: #cccccc !important;
  background-color: #333333 !important;
}

.navbar-brand img {
    height: 40px;
    margin-top: -10px;
}

/* Dropdown menu styling */
.navbar-default .navbar-nav > .dropdown > a .caret {
  border-top-color: #ffffff !important;
  border-bottom-color: #ffffff !important;
}

/* User avatar in header */
.user-avatar-small {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 8px;
  vertical-align: middle;
  transition: border-color 0.2s;
}

.user-dropdown-toggle:hover .user-avatar-small,
.user-dropdown-toggle:focus .user-avatar-small {
  border-color: rgba(255, 255, 255, 0.6);
}

.navbar-default .navbar-nav > .open > a,
.navbar-default .navbar-nav > .open > a:hover,
.navbar-default .navbar-nav > .open > a:focus {
  background-color: #333333 !important;
  color: #ffffff !important;
}

/* Dropdown menu items - Dark mode cho header navbar */
.navbar-default .dropdown-menu {
  background-color: #2d2d2d !important;
  border: 1px solid #444 !important;
  box-shadow: 0 6px 12px rgba(0,0,0,0.5) !important;
}

.navbar-default .dropdown-menu > li > a {
  color: #ffffff !important;
}

.navbar-default .dropdown-menu > li > a:hover,
.navbar-default .dropdown-menu > li > a:focus {
  background-color: #333333 !important;
  color: #cccccc !important;
}

.navbar-default .dropdown-menu .divider {
  background-color: #444 !important;
}

/* Profile page styles */
.table-borderless td {
    border: none !important;
    padding: 8px 16px;
    vertical-align: middle;
}

.table-borderless tr:first-child td {
    padding-top: 0;
}

.img-circle {
    border-radius: 50%;
}

/* Change password page styles */
.has-error {
    border-color: #d9534f;
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 6px #ce8483;
}

.error-message {
    margin-top: 5px;
}

.breadcrumb {
    background-color: #f5f5f5;
    border-radius: 4px;
}

/* Run page iframe styles */
.iframe-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.iframe-container iframe {
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.container {
  min-width: 1024px;
  width: auto;
  max-width: 1248px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .container {
        min-width: initial;
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .domain-grid {
        grid-template-columns: 1fr;
    }
    
    .domain-name {
        font-size: 14px;
    }
    
    .platform-icon {
        font-size: 18px;
        margin-right: 8px;
    }
    
    .card-header {
        padding: 8px 12px;
    }
    
    .card-body {
        padding: 12px;
    }
}

/* Run page full height layout */
.run-page-wrapper {
    margin-top: 50px;
    height: calc(100vh - 50px);
}

.run-page-container {
    height: 100%;
    padding: 0;
    max-width: none !important;
}

.run-iframe-container {
    height: 100%;
    padding: 0;
}

.run-iframe {
    width: 100%;
    height: 100%;
    border-radius: 4px;
}

/* Loading spinner animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Ensure full height layout for run page */
.run-page-fullheight,
.run-page-fullheight html {
    height: 100%;
    margin: 0;
    padding: 0;
}

.run-page-fullheight .container {
    padding-left: 0;
    padding-right: 0;
}

/* Modal styles */
.custom-modal .modal-dialog {
    margin-top: 10%;
}

.custom-modal .modal-content {
  border-radius: 8px;
  border: none;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.custom-modal .modal-header {
  text-align: center;
  padding: 30px 20px 20px;
  border-bottom: none;
}

.custom-modal .modal-icon {
  font-size: 60px;
  margin-bottom: 16px;
  display: block;
}

.custom-modal .modal-icon.success {
  color: #5cb85c;
}

.custom-modal .modal-icon.error {
  color: #d9534f;
}

.custom-modal .modal-icon.warning {
  color: #f0ad4e;
}

.custom-modal .modal-icon.info {
  color: #5bc0de;
}

.custom-modal .modal-icon.question {
  color: #337ab7;
}

.custom-modal .modal-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.custom-modal .modal-body {
  text-align: center;
  padding: 0 30px 20px;
}

.custom-modal .modal-message {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

.custom-modal .modal-footer {
  text-align: center;
  padding: 20px 30px 30px;
  border-top: none;
}

.custom-modal .modal-footer .btn {
  min-width: 80px;
  margin: 0 5px;
}

/* Responsive design */
@media (max-width: 991px) {
  .domain-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .domain-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  body {
    padding-top: 20px;
  }
  
  .panel {
    margin: 10px;
    max-width: calc(100% - 20px);
  }
  
  .alert {
    margin: 0 10px 20px 10px;
    max-width: calc(100% - 20px);
  }
  
  .domain-grid {
    margin: 10px;
    gap: 10px;
  }
}

/* ============================================
   HEADER NAVIGATION STYLES
   ============================================ */

/* Base Navbar Styling */
.navbar-default {
  background-color: var(--header-bg-color);
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  margin-bottom: 0;
}

.navbar-default .navbar-brand {
  color: var(--header-text-color) !important;
  font-weight: 600;
  font-size: 20px;
  padding: 16px 20px;
  transition: color 0.2s;
}

.navbar-default .navbar-brand:hover,
.navbar-default .navbar-brand:focus {
  color: var(--header-text-hover) !important;
}

.navbar-default .navbar-nav > li > a {
  color: var(--header-text-color) !important;
  font-weight: 500;
  padding: 16px;
  transition: all 0.2s;
  
}

.navbar-default .navbar-nav > li.dropdown-profile > a.user-dropdown-toggle {
  height: 52px;
  padding: 12px 16px;
}

.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus {
  color: var(--header-text-hover) !important;
  background-color: var(--header-hover-bg);
}

.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .open > a {
  background-color: var(--header-active-bg) !important;
  color: var(--header-text-color) !important;
}

/* Mobile Toggle Button */
.navbar-default .navbar-toggle {
  border-color: rgba(255, 255, 255, 0.3);
  margin-top: 10px;
  margin-bottom: 10px;
}

.navbar-default .navbar-toggle:hover,
.navbar-default .navbar-toggle:focus {
  background-color: var(--header-hover-bg);
}

.navbar-default .navbar-toggle .icon-bar {
  background-color: var(--header-text-color);
}

/* Dropdown Menu Styling */
.website-dropdown-menu {
  min-width: 380px;
  max-width: 450px;
  max-height: 80vh;
  overflow-y: auto;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  padding: 0;
  padding-bottom: 12px;
  background-color: var(--dropdown-bg);
  border: 1px solid var(--dropdown-border);
}

.website-dropdown-menu .dropdown-header {
  padding: 10px 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--dropdown-header-text);
  background: var(--dropdown-header-bg);
  border-bottom: 1px solid var(--dropdown-border);
}

/* Current Website Info Card */
.current-website-info {
  padding: 16px 20px;
  background-color: var(--current-website-bg);
  border-left: 3px solid var(--current-website-border);
  margin: 0;
}

.current-website-info:hover {
  background-color: var(--current-website-bg);
  cursor: default;
}

.website-info-card {
  display: block;
}

.website-info-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--current-website-text);
}

.website-info-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 8px;
}

.website-info-stats {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Website Dropdown Items */
.website-dropdown-item {
  display: block;
  padding: 12px 16px !important;
  white-space: normal !important;
  line-height: 1.4;
  transition: all 0.2s;
  color: var(--text-primary) !important;
}

.dropdown-menu>li>a {
  padding: 4px 16px;
}

.website-dropdown-item:hover {
  background-color: var(--dropdown-hover-bg) !important;
  text-decoration: none;
}

.website-item-layout {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.website-item-info {
  flex: 1;
  min-width: 0;
}

.website-item-name {
  font-weight: 600;
  font-size: 16px;
  color: var(--header-text-color);
  margin-bottom: 4px;
}

.website-item-desc {
  font-size: 11px;
  color: var(--text-secondary-dark);
  line-height: 1.3;
  margin-bottom: 5px;
}

.website-item-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.website-dropdown-menu .active > a,
.website-dropdown-menu .active > a:hover,
.website-dropdown-menu .active > a:focus {
  background-color: var(--header-bg-active) !important;
  border-left: 3px solid var(--dropdown-active-border);
  padding-left: 17px !important;
}

/* Plan Badge Styles */
.label-default {
  background-color: var(--badge-default) !important;
}

.label-info {
  background-color: var(--badge-info) !important;
}

.label-primary {
  background-color: var(--badge-primary) !important;
}

.label-warning {
  background-color: var(--badge-warning) !important;
}

.label-success {
  background-color: var(--badge-success) !important;
}

.label-danger {
  background-color: var(--badge-danger) !important;
}

/* Scrollbar for dropdown */
.website-dropdown-menu::-webkit-scrollbar {
  width: 6px;
}

.website-dropdown-menu::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.website-dropdown-menu::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 3px;
}

.website-dropdown-menu::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Mobile Responsive for Header */
@media (max-width: 767px) {
  .navbar-default .navbar-nav {
    margin: 0;
  }
  
  .navbar-default .navbar-nav > li > a {
    padding: 12px 16px;
  }
  
  .website-dropdown-menu {
    min-width: 100%;
    max-width: 100%;
    position: static !important;
    float: none;
    border: none;
    box-shadow: none;
    background: var(--dropdown-header-bg);
  }
  
  .website-dropdown-item {
    padding: 10px 16px !important;
  }
  
  .website-item-layout {
    gap: 10px;
  }
  
  .current-website-info {
    padding: 12px 16px;
  }
  
  .brand-text {
    display: inline;
  }

  
  /* Mobile Collapsed Menu */
  .navbar-collapse {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 0;
  }
  
  .navbar-collapse.in,
  .navbar-collapse.collapsing {
    background-color: var(--header-bg-color);
  }
  
  .website-dropdown-menu .active > a {
    border-left: none;
    padding-left: 16px !important;
    border-bottom: 2px solid var(--dropdown-active-border);
  }
}

@media (min-width: 768px) {
  .navbar-default .container-fluid {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* Helper Classes */
.text-success {
  color: var(--text-success) !important;
}

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

.btn {
    border-radius: 8px;
}
  

/* ============================================
   SNACKBAR - Toast Notifications
   ============================================ */
.snackbar {
  visibility: hidden;
  min-width: 280px;
  max-width: 500px;
  background-color: #323232;
  color: #fff;
  text-align: left;
  border-radius: 4px;
  padding: 14px 48px 14px 20px;
  position: fixed;
  z-index: 9999;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 14px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  gap: 10px;
}

.snackbar.show {
  visibility: visible;
  animation: fadein 0.3s, fadeout 0.3s 2.7s;
}

.snackbar .snackbar-close {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.snackbar .snackbar-close:hover {
  opacity: 1;
}

@keyframes fadein {
  from { bottom: 0; opacity: 0; }
  to { bottom: 30px; opacity: 1; }
}

@keyframes fadeout {
  from { bottom: 30px; opacity: 1; }
  to { bottom: 0; opacity: 0; }
}

/* Responsive */
@media only screen and (max-width: 600px) {
  .snackbar {
    min-width: calc(100% - 40px);
    bottom: 20px;
    left: 20px;
    transform: none;
  }
  
  @keyframes fadein {
    from { bottom: 0; opacity: 0; }
    to { bottom: 20px; opacity: 1; }
  }
  
  @keyframes fadeout {
    from { bottom: 20px; opacity: 1; }
    to { bottom: 0; opacity: 0; }
  }
}