/* 
  Jibbio Business Builder - Support Center
  Enterprise Modern SaaS Theme 
*/

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

:root {
  --primary: #1E88E5;
  --primary-hover: #1565C0;
  --primary-light: #E3F2FD;
  --secondary-bg: #F5F7FA;
  --white: #FFFFFF;
  --text-main: #1E293B;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --border-color: #E2E8F0;
  --border-radius: 12px;
  --border-radius-sm: 8px;
  
  --success: #22C55E;
  --success-bg: #DCFCE7;
  --warning: #F59E0B;
  --warning-bg: #FEF3C7;
  --danger: #EF4444;
  --danger-bg: #FEE2E2;
  --gray-status: #64748B;
  --gray-status-bg: #F1F5F9;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.07);
  --shadow-hover: 0 8px 20px rgba(30, 136, 229, 0.12);

  --sidebar-width: 260px;
  --header-height: 70px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: #FAFAFB;
  color: var(--text-main);
  line-height: 1.5;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Base Utility Overrides */
.bg-secondary-light {
  background-color: var(--secondary-bg);
}

.rounded-custom {
  border-radius: var(--border-radius) !important;
}

.shadow-custom {
  box-shadow: var(--shadow-md) !important;
}

/* Layout Hierarchy */
.app-container {
  display: flex;
  min-height: 100vh;
}

/* Sidebar Styles */
.sidebar {
  width: var(--sidebar-width);
  background-color: var(--white);
  border-right: 1px solid var(--border-color);
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1040;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.sidebar-header {
  height: var(--header-height);
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 700;
  font-size: 1.15rem;
}

.brand-icon {
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.sidebar-menu {
  padding: 1.25rem 0.85rem;
  list-style: none;
  margin: 0;
  flex-grow: 1;
  overflow-y: auto;
}

.sidebar-item {
  margin-bottom: 0.35rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1rem;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.925rem;
  border-radius: var(--border-radius-sm);
  transition: var(--transition);
}

.sidebar-link i {
  font-size: 1.15rem;
  transition: var(--transition);
}

.sidebar-link:hover {
  color: var(--primary);
  background-color: var(--secondary-bg);
}

.sidebar-link.active {
  background-color: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 10px rgba(30, 136, 229, 0.3);
}

.sidebar-link.active i {
  color: var(--white);
}

/* Header Styles */
.main-wrapper {
  flex-grow: 1;
  margin-left: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: var(--transition);
}

.top-header {
  height: var(--header-height);
  background-color: var(--white);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1030;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
}

.header-search {
  position: relative;
  width: 100%;
  max-width: 440px;
}

.header-search i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 1.05rem;
}

.header-search .form-control {
  padding-left: 2.75rem;
  background-color: var(--secondary-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 0.9rem;
  height: 42px;
  transition: var(--transition);
}

.header-search .form-control:focus {
  background-color: var(--white);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.15);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.btn-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  position: relative;
  transition: var(--transition);
}

.btn-icon:hover {
  background-color: var(--secondary-bg);
  color: var(--primary);
}

.notification-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  background-color: var(--danger);
  border-radius: 50%;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: var(--border-radius-sm);
  transition: var(--transition);
}

.user-profile:hover {
  background-color: var(--secondary-bg);
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-light);
}

.user-info {
  line-height: 1.2;
}

.user-name {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-main);
  margin-bottom: 2px;
}

.user-role {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Hero Section */
.hero-section {
  background-color: var(--white);
  padding: 3.5rem 2rem 3rem 2rem;
  border-bottom: 1px solid var(--border-color);
  text-align: center;
}

.hero-heading {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-search-box {
  max-width: 680px;
  margin: 0 auto 2.5rem auto;
  position: relative;
}

.hero-search-box .form-control {
  height: 56px;
  padding-left: 3.25rem;
  padding-right: 7.5rem;
  font-size: 1rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.hero-search-box .form-control:focus {
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
}

.hero-search-box i {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  color: var(--text-light);
}

.hero-search-btn {
  position: absolute;
  right: 6px;
  top: 6px;
  bottom: 6px;
  border-radius: 8px;
  padding: 0 1.5rem;
  font-weight: 600;
  background-color: var(--primary);
  border: none;
}

.hero-search-btn:hover {
  background-color: var(--primary-hover);
}

/* Quick Action Cards */
.quick-action-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  text-decoration: none;
  color: var(--text-main);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
}

.quick-action-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(30, 136, 229, 0.3);
  color: var(--text-main);
}

.action-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: var(--border-radius-sm);
  background-color: var(--secondary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  transition: var(--transition);
}

.quick-action-card:hover .action-icon-wrapper {
  background-color: var(--primary-light);
  color: var(--primary);
}

.action-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.action-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Content Area */
.content-area {
  padding: 2.5rem 2rem;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.section-link {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition);
}

.section-link:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* Article Cards List */
.article-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--text-main);
}

.article-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(30, 136, 229, 0.4);
  transform: translateX(4px);
  color: var(--text-main);
}

.article-main {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.article-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--border-radius-sm);
  background-color: var(--secondary-bg);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.article-title {
  font-weight: 600;
  font-size: 0.975rem;
  margin-bottom: 0.25rem;
  color: var(--text-main);
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.article-category {
  background-color: var(--secondary-bg);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-weight: 500;
  color: var(--text-main);
}

.article-badge {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* Video Tutorial Cards */
.tutorial-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.tutorial-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.thumbnail-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  background-color: #0F172A;
  overflow: hidden;
}

.thumbnail-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: var(--transition);
}

.tutorial-card:hover .thumbnail-img {
  transform: scale(1.05);
  opacity: 0.95;
}

.duration-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background-color: rgba(15, 23, 42, 0.85);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

.play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background-color: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: var(--transition);
}

.tutorial-card:hover .play-overlay {
  transform: translate(-50%, -50%) scale(1.1);
  background-color: var(--primary-hover);
}

.tutorial-body {
  padding: 1.25rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tutorial-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.35rem;
}

.tutorial-title {
  font-size: 0.975rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

/* Recent Tickets Table */
.custom-table-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.table-responsive {
  margin: 0;
}

.custom-table {
  width: 100%;
  margin-bottom: 0;
  border-collapse: separate;
  border-spacing: 0;
}

.custom-table th {
  background-color: var(--secondary-bg);
  color: var(--text-muted);
  font-size: 0.775rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
}

.custom-table td {
  padding: 1rem 1.25rem;
  vertical-align: middle;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.9rem;
  color: var(--text-main);
}

.custom-table tbody tr:last-child td {
  border-bottom: none;
}

.custom-table tbody tr {
  transition: var(--transition);
}

.custom-table tbody tr:hover {
  background-color: rgba(245, 247, 250, 0.6);
}

.ticket-id {
  font-weight: 600;
  color: var(--primary);
}

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  font-size: 0.775rem;
  font-weight: 600;
}

.status-badge.open {
  background-color: var(--primary-light);
  color: var(--primary);
}

.status-badge.pending {
  background-color: var(--warning-bg);
  color: var(--warning);
}

.status-badge.resolved {
  background-color: var(--success-bg);
  color: var(--success);
}

.status-badge.closed {
  background-color: var(--gray-status-bg);
  color: var(--gray-status);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: currentColor;
}

/* Right Sidebar Widget Cards */
.widget-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.widget-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.widget-title i {
  color: var(--primary);
}

.announcement-item {
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px dashed var(--border-color);
}

.announcement-item:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
}

.announcement-date {
  font-size: 0.75rem;
  color: var(--text-light);
  font-weight: 500;
  margin-bottom: 0.2rem;
}

.announcement-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.35rem;
  line-height: 1.35;
}

.announcement-link {
  font-size: 0.8rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.announcement-link:hover {
  text-decoration: underline;
}

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

.info-list-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.info-list-item:last-child {
  margin-bottom: 0;
}

.info-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--secondary-bg);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.info-content {
  line-height: 1.35;
}

.info-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.1rem;
}

.info-value {
  font-weight: 600;
  color: var(--text-main);
}

/* Footer */
.portal-footer {
  background-color: var(--white);
  border-top: 1px solid var(--border-color);
  padding: 1.75rem 2rem;
  margin-top: auto;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary);
}

/* Mobile Sidebar Toggle Button */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--text-main);
  cursor: pointer;
  padding: 0.25rem;
  margin-right: 1rem;
}

/* ======================================
   LOGIN PAGE STYLES & ANIMATIONS
======================================= */
.login-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #FAFAFB;
}

.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.login-left {
  background-color: var(--secondary-bg);
  border-right: 1px solid var(--border-color);
  padding: 4rem 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  height: 100vh;
  position: sticky;
  top: 0;
}

.login-illustration-img {
  max-width: 85%;
  height: auto;
  margin-bottom: 2.5rem;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.04));
  border-radius: var(--border-radius);
}

.login-feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem 2rem;
  margin-top: 1.5rem;
}

.login-feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-main);
}

.login-feature-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.login-right {
  padding: 3.5rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.login-card {
  width: 100%;
  max-width: 440px;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 2.5rem 2.25rem;
  box-shadow: var(--shadow-md);
  animation: cardFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 1.75rem;
}

.login-input-group .form-control {
  height: 48px;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-color);
  padding-left: 1rem;
  font-size: 0.925rem;
  transition: var(--transition);
}

.login-input-group .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3.5px rgba(30, 136, 229, 0.15);
}

.divider-text {
  position: relative;
  text-align: center;
  margin: 1.75rem 0;
}

.divider-text::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background-color: var(--border-color);
  z-index: 1;
}

.divider-text span {
  position: relative;
  z-index: 2;
  background-color: var(--white);
  padding: 0 1rem;
  font-size: 0.775rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-jibbio-sso {
  height: 48px;
  background-color: var(--white);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  transition: var(--transition);
  width: 100%;
}

.btn-jibbio-sso:hover {
  background-color: var(--secondary-bg);
  border-color: #CBD5E1;
  color: var(--text-main);
}

.btn-primary-login {
  height: 48px;
  background-color: var(--primary);
  border: none;
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--border-radius-sm);
  transition: var(--transition);
  width: 100%;
  box-shadow: 0 4px 12px rgba(30, 136, 229, 0.25);
}

.btn-primary-login:hover {
  background-color: var(--primary-hover);
  box-shadow: 0 6px 16px rgba(30, 136, 229, 0.35);
  transform: translateY(-1px);
}

.security-box {
  max-width: 440px;
  width: 100%;
  margin-top: 1.5rem;
  padding: 0.85rem 1.25rem;
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.security-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 500;
}

.login-footer {
  width: 100%;
  max-width: 440px;
  margin-top: 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.login-footer a {
  color: var(--text-muted);
  text-decoration: none;
  margin: 0 0.5rem;
  transition: var(--transition);
}

.login-footer a:hover {
  color: var(--primary);
}

/* Responsive Rules */
@media (max-width: 991.98px) {
  .mobile-nav-toggle {
    display: block;
  }

  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.show {
    transform: translateX(0);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
  }

  .main-wrapper {
    margin-left: 0;
  }

  .top-header {
    padding: 0 1.25rem;
  }

  .hero-section {
    padding: 2.5rem 1.25rem 2rem 1.25rem;
  }

  .hero-heading {
    font-size: 1.75rem;
  }

  .hero-search-box .form-control {
    padding-right: 6.5rem;
    font-size: 0.925rem;
  }

  .content-area {
    padding: 1.75rem 1.25rem;
  }

  .login-left {
    height: auto;
    position: static;
    padding: 3rem 1.5rem;
    align-items: center;
    text-align: center;
  }

  .login-illustration-img {
    max-width: 280px;
  }

  .login-right {
    padding: 2.5rem 1.25rem;
    min-height: auto;
  }
}

@media (max-width: 575.98px) {
  .user-info {
    display: none;
  }

  .hero-search-btn span {
    display: none;
  }

  .hero-search-btn {
    padding: 0 1rem;
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .login-feature-list {
    grid-template-columns: 1fr;
  }

  .security-box {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }
}

/* ======================================
   PHASE 2 COMPONENT STYLES
======================================= */

/* Drag & Drop Upload Zone */
.dropzone-box {
  border: 2px dashed var(--border-color);
  border-radius: var(--border-radius);
  padding: 2rem 1.5rem;
  text-align: center;
  background-color: var(--secondary-bg);
  cursor: pointer;
  transition: var(--transition);
}

.dropzone-box:hover, .dropzone-box.dragover {
  border-color: var(--primary);
  background-color: var(--primary-light);
}

.dropzone-icon {
  font-size: 2.25rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

/* Rich Text Editor Mockup Toolbar */
.wysiwyg-toolbar {
  background-color: var(--secondary-bg);
  border: 1px solid var(--border-color);
  border-bottom: none;
  border-top-left-radius: var(--border-radius-sm);
  border-top-right-radius: var(--border-radius-sm);
  padding: 0.5rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.wysiwyg-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  border-radius: 4px;
  padding: 0.25rem 0.5rem;
  font-size: 0.85rem;
  transition: var(--transition);
}

.wysiwyg-btn:hover {
  background-color: var(--white);
  color: var(--primary);
  border-color: var(--border-color);
}

.wysiwyg-editor {
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
}

/* Conversation Timeline (Ticket Details) */
.timeline-list {
  position: relative;
  padding-left: 0;
  list-style: none;
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.timeline-card.support-reply {
  border-left: 4px solid var(--primary);
  background-color: #F8FAFC;
}

.timeline-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.attachment-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  background-color: var(--secondary-bg);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-main);
  text-decoration: none;
  transition: var(--transition);
}

.attachment-chip:hover {
  background-color: var(--primary-light);
  color: var(--primary);
  border-color: rgba(30, 136, 229, 0.3);
}

/* Article Reader Code Block & Alert Callouts */
.article-code-block {
  background-color: #0F172A;
  color: #F8FAFC;
  border-radius: var(--border-radius-sm);
  padding: 1.25rem;
  font-family: monospace;
  font-size: 0.875rem;
  position: relative;
  margin: 1.25rem 0;
}

.callout-box {
  padding: 1.25rem;
  border-radius: var(--border-radius-sm);
  margin: 1.25rem 0;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.callout-box.tip {
  background-color: #EFF6FF;
  border-left: 4px solid var(--primary);
  color: #1E40AF;
}

.callout-box.warning {
  background-color: #FFFBEB;
  border-left: 4px solid var(--warning);
  color: #92400E;
}

/* Table of Contents Sticky Sidebar */
.toc-sidebar {
  position: sticky;
  top: 90px;
}

.toc-link {
  display: block;
  padding: 0.35rem 0.75rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  border-left: 2px solid transparent;
  transition: var(--transition);
}

.toc-link:hover, .toc-link.active {
  color: var(--primary);
  border-left-color: var(--primary);
  font-weight: 600;
}

/* Skeleton Loading Helpers */
.skeleton-box {
  background: linear-gradient(90deg, #F1F5F9 25%, #E2E8F0 50%, #F1F5F9 75%);
  background-size: 200% 100%;
  animation: skeletonLoading 1.5s infinite;
  border-radius: var(--border-radius-sm);
}

@keyframes skeletonLoading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}


