/* Base Styles for Laptop Size (768px - 1600px) */
/* SaaS Resume Builder Template */

/* Common Layout Elements */
.main {
  padding: 20px;
}

.page-title-section {
  margin-bottom: 2rem;
}

.page-title {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.page-subtitle {
  color: var(--text-light);
  margin-bottom: 0;
}

.action-bar {
  background-color: var(--bg-light);
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
}


/* CSS Variables */
:root {
  --primary-color: #4dabf7;
  --primary-light: rgba(77, 171, 247, 0.08);
  --primary-hover: #3c99e6;
  --sidebar-width: 250px;
  --header-height: 60px;
  --text-dark: #1a202c;
  --text-medium: #4a5568;
  --text-light: #718096;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --border-color: #e2e8f0;
  --danger-color: #e53e3e;
  --success-color: #38a169;
  --warning-color: #f6ad55;
  --info-color: #3182ce;
  --top-nav-color: #008371;
  --action-bar-bg: linear-gradient(to right, #f8f9fa, #ffffff);
  --card-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Custom modal sizes */
.modal-xxl {
  width: 1200px;
  max-width: 95vw;
}

/* Bullet manager specific styles */
#bulletEditColumn {
  position: relative;
}

/* Fix for bullet manager modal height */
#bulletManagerModal .modal-dialog {
  height: 80vh;
}

#bulletManagerModal .modal-content {
  height: 100%;
}

#bulletManagerModal .modal-body {
  height: calc(100% - 120px); /* Subtract header and footer height */
  overflow-y: auto;
}

#bulletManagerContainer {
  height: 100%;
}

#bulletListColumn .card {
  height: 400px;
  overflow-y: auto;
}

#bulletsList {
  max-height: 100%;
  overflow-y: auto;
}

/* Bullet drag handle styling */
.bullet-item .drag-handle {
  cursor: grab;
  display: flex;
  align-items: center;
  padding: 0 5px;
}

.bullet-item .drag-handle:active {
  cursor: grabbing;
}

/* Delete confirmation area styling */
#bulletDeleteConfirmArea {
  max-width: 350px;
  transition: all 0.3s ease;
}

#bulletDeleteConfirmArea .btn {
  margin-left: 5px;
}

#bulletEditPlaceholder {
  background-color: #f8f9fa;
  border-radius: 0.25rem;
  border: 1px solid rgba(0, 0, 0, 0.125);
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

#bulletEditForm {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
}

ul {
  list-style-type: none;
  padding-left: 0;
}

/* File upload styles */
.drop-zone {
  border: 2px dashed #dee2e6;
  border-radius: 0.25rem;
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.drop-zone:hover,
.drop-zone.dragover {
  border-color: #6c757d;
  background-color: rgba(0, 0, 0, 0.02);
}

.drop-zone-prompt {
  width: 100%;
  color: #6c757d;
}

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

/* Sidebar Navigation */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background-color: var(--bg-white);
  border-right: 1px solid var(--border-color);
  z-index: 1000;
  transition: all 0.3s;
  overflow-y: auto;
  padding-top: var(--header-height);
}

/* Sidebar User Profile */
.sidebar-user-profile {
  padding: 15px;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 20px;
  background-color: transparent;
  box-shadow: none;
}

.sidebar-user-profile .user-avatar {
  width: 70px;
  height: 70px;
  margin: 0 auto;
  overflow: hidden;
}

.sidebar-user-profile .user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 2px solid var(--border-color);
}

.sidebar-user-profile .user-details {
  margin-top: 10px;
}

.sidebar-user-profile .user-name {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 16px;
}

.sidebar-user-profile .user-plan {
  margin-top: 5px;
}

.sidebar-user-profile .badge {
  background-color: #e7e7e7 !important;
  padding: 5px 20px;
  border-radius: 10px;
}

.sidebar-content {
  padding: 15px;
  padding-top: 0;
  position: relative;
}

/* Regular menu items */
.nav-menu-item {
  padding: 10px 15px;
  border-radius: 6px;
  color: var(--text-medium);
  border: 1px solid transparent;
  margin-bottom: 4px;
  font-weight: 400;
  font-size: 16px;
}

.nav-menu-item:hover, .nav-menu-item.active {
  border: 1px solid var(--success-color);
  color: var(--text-medium);
  font-weight: 400;
}

/* Folder menu items */
.nav-menu-folder {
  padding: 8px 12px;
  border-radius: 6px;
  color: #6c757d;
  cursor: pointer;
  border: 1px solid transparent;
  margin-bottom: 4px;
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
}

.nav-menu-folder:hover {
  background-color: #f8f9fa;
  color: #198754;
  text-decoration: none;
  border: 1px solid var(--success-color);
}

.nav-menu-folder.active {
background-color: #198754;
color: white;
}

.nav-menu-folder .submenu-indicator {
  font-size: 10px;
  opacity: 0.7;
}

.nav-menu-folder:hover .submenu-indicator,
.nav-menu-folder.active .submenu-indicator {
  opacity: 1;
}

.nav-menu-folder .menu-icon {
  font-size: 12px;
  margin-right: 8px;
}

/* Submenu items */
.nav-menu-subitem {
  padding: 8px 15px 8px 35px;
  border-radius: 6px;
  color: var(--text-medium);
  font-size: 14px;
  transition: all 0.2s ease;
  display: none; /* Hidden by default */
  margin-bottom: 3px;
}

.nav-menu-subitem:hover, .nav-menu-subitem.active {
  background-color: var(--primary-light);
  color: var(--primary-color);
  font-weight: 500;
}

/* Show sublinks when parent folder is active */
.nav-menu-folder.active + .nav-menu-subitem {
  display: flex;
}

/* Folder submenu container */
.folder-submenu-container {
  position: fixed; /* Fixed position */
  width: 220px;
  background-color: var(--bg-white);
  border-radius: 8px;
  z-index: 1050;
  overflow-y: auto;
  display: none; /* Hidden by default */
  max-height: 300px;
  padding: 0;
}

.folder-submenu {
  display: none; /* Hidden by default */
  overflow-y: auto;
  left: var(--sidebar-width);
  position: fixed;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1) ;
}



.submenu-item {
  padding: 12px 24px;
  color: var(--text-medium);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  font-size: 14px;
  margin-bottom: 0px;
  width: 250px;
  cursor: pointer;
}

.submenu-item:hover {
color: var(--success-color);
}

.submenu-item.active {
background-color: var(--success-color);
color: var(--bg-white);
}

/* Back to main button */
.back-to-main {
  margin-top: 20px;;
  color: var(--text-medium);
  font-weight: 500;
}

.back-to-main:hover {
  color: var(--primary-color);
}

.menu-separator {
  height: 1px;
  background-color: var(--border-color);
  opacity: 0.5;
}

/* Sidebar Character */
.sidebar-character-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 1;
}

.sidebar-character {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  text-align: center;
  z-index: 1;
}

.sidebar-character img {
  max-width: 100%;
  height: auto;
}

/* Sidebar Quote */
.sidebar-quote {
  font-style: italic;
  color: #6c757d;
  font-size: 13px;
  text-align: center;
  padding: 10px 15px;
  margin-bottom: 10px;
  position: relative;
  z-index: 2;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 5px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Sidebar */
.sidebar-header {
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  display: flex;
  align-items: center;
}

.logo img {
  height: 30px;
  margin-right: 10px;
}

.sidebar-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-medium);
  cursor: pointer;
  font-size: 20px;
}

.sidebar-menu {
  padding: 20px 0;
}

.menu-category {
  padding: 0 20px;
  margin-bottom: 10px;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--text-light);
  letter-spacing: 1px;
  font-weight: 600;
}

.menu-item {
  position: relative;
}

.menu-link {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  color: var(--text-medium);
  transition: all 0.2s;
}

.menu-link:hover {
  background-color: var(--bg-light);
  color: var(--text-dark);
}

.menu-link.active {
  background-color: var(--primary-light);
  color: var(--primary-color);
  font-weight: 500;
}

.menu-link.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background-color: var(--primary-color);
}

/* Menu divider */
.menu-divider {
  height: 1px;
  background-color: var(--border-color);
  margin: 15px 20px;
  opacity: 0.5;
}

/* Logout button styling */
.menu-link-logout {
  margin-top: 5px;
  color: var(--text-medium) !important;
}

.menu-link-logout:hover {
  color: var(--danger-color) !important;
  background-color: rgba(229, 62, 62, 0.1) !important;
}

.menu-icon {
  margin-right: 10px;
  width: 22px;
  height: 22px;
  min-width: 22px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Loading Popup */
.loading-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loading-content {
  padding: 30px;
  border-radius: 8px;
  text-align: center;
}

.loading-text {
  font-size: 16px;
  color: var(--text-dark);
  font-weight: 500;
}

/* Notification Message */
.notification-message {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: none;
  z-index: 9998;
  transition: all 0.3s ease;
  transform: translateY(100px);
}

.notification-message.show {
  display: block;
  transform: translateY(0);
}

.notification-content {
  background-color: white;
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  min-width: 300px;
}

.notification-icon {
  font-size: 20px;
  margin-right: 12px;
}

.notification-icon.success {
  color: var(--success-color);
}

.notification-icon.error {
  color: var(--danger-color);
}

.notification-icon.warning {
  color: var(--warning-color);
}

.notification-icon.info {
  color: var(--info-color);
}

.notification-text {
  font-size: 14px;
  color: var(--text-dark);
}

/* Top Navigation Bar */
.navbar {
  height: var(--header-height);
  background-color: var(--top-nav-color) !important;
  z-index: 1030;
}

/* Target Stats Styling */
.target-stats {
  display: flex;
  gap: 15px;
}

.target-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.target-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.target-value {
  font-size: 14px;
  color: white;
  font-weight: 600;
}

/* User Name Styling */
.user-name {
  padding: 8px 12px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.user-name span {
  font-size: 14px;
}

/* Main Area - Left of Sidebar */
.main {
  margin-left: var(--sidebar-width);
  margin-top: var(--header-height);
  padding: 20px 30px;
  background-color: var(--bg-light);
  min-height: calc(100vh - var(--header-height));
}

/* Page Title Section */
.page-title-section {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.page-title-section h1 {
  font-size: 1.75rem;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-dark);
}

.page-title-section p {
  color: var(--text-medium);
  margin-bottom: 0;
}

/* Main Content - Keep for backward compatibility */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Action Bar - Full Width */
.action-bar {
  background: none;
  padding: 0;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: none;
  box-shadow: none;
}

.action-bar .row {
  width: 100%;
  margin: 0;
  padding: 0;
}

.action-bar .row>* {
  padding: 0;
}

.action-bar .action-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.action-bar .search-container {
  margin-left: auto;
}

/* Action Bar Button Styles */
.action-bar .btn {
  font-weight: 500;
  transition: all 0.2s ease;
  padding: 6px 14px;
  border-radius: 6px;
  min-width: 200px;
}

.action-bar .btn-link {
  min-width: unset;
}

.action-bar .btn-add {
  background-color: var(--primary-color);
  color: white;
}

.action-bar .btn-add:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.action-bar .btn-ai {
  background-color: #10b981;
  color: white;
}

.action-bar .btn-ai:hover {
  background-color: #059669;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.action-bar .btn-more {
  background-color: #f3f4f6;
  color: #4b5563;
  display: none;
}

.action-bar .btn-more:hover {
  background-color: #e5e7eb;
}


.action-bar .btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.action-bar .btn-primary:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
}

.action-bar .btn-outline-secondary {
  color: var(--text-medium);
  border-color: var(--border-color);
}

.action-bar .btn-outline-secondary:hover {
  background-color: var(--bg-light);
  color: var(--text-dark);
}

.action-bar .btn:hover {
  transform: none;
}

/* Table Container - Full Width with Color */
.table-container {
  background-color: var(--bg-white);
  border-radius: 8px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
}

.table {
  margin-bottom: 0;
}

.table th {
  border-top: none;
  font-weight: 600;
  color: var(--text-dark);
  background-color: var(--bg-light);
  padding: 12px 16px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.table td {
  vertical-align: middle;
  padding: 12px 16px;
  border-color: var(--border-color);
}

.table tr:hover {
  background-color: rgba(0,0,0,0.01);
}

.table .text-end .btn-group {
  box-shadow: none;
}

/*
.table .btn,
.table .btn-outline-secondary,
.table .btn-primary,
.table .btn-danger,
.table .btn-success,
.table .btn-info,
.table .btn-warning {
  border-color: transparent !important;
  color: var(--text-medium) !important;
  background-color: transparent !important;
  padding: 4px 8px;
  box-shadow: none !important;
}
*/
.table .btn:hover,
.table .btn-outline-secondary:hover,
.table .btn-primary:hover,
.table .btn-danger:hover,
.table .btn-success:hover,
.table .btn-info:hover,
.table .btn-warning:hover {
  background-color: var(--bg-light) !important;
  color: var(--text-dark) !important;
}

.table-container .table tbody tr {
  transition: background-color 0.2s ease;
}

.table-container .table tbody tr:hover {
  background-color: var(--bg-light);
}

/* Cards */
.card {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background-color: var(--bg-white);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: box-shadow 0.2s ease;
}

.card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  font-weight: 600;
  color: var(--text-dark);
}

.card-body {
  padding: 20px;
}

.card-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
}

/* Buttons */
.btn {
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

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

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

/* Forms */
.form-control {
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 8px 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--primary-light);
}

/* Placeholder styles - lighter color */
.form-control::placeholder,
input::placeholder,
textarea::placeholder,
select::placeholder {
  color: #bec2c7;
  opacity: 1;
}

.form-control::-webkit-input-placeholder {
  color: #bec2c7;
  opacity: 1;
}

.form-control::-moz-placeholder {
  color: #bec2c7;
  opacity: 1;
}

.form-control:-ms-input-placeholder {
  color: #bec2c7;
  opacity: 1;
}

/* Navigation Menu Styles */

.nav-menu h5 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0px;
}


.nav-menu p {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-medium);
  margin-bottom: 10px;
}

.nav-menu-item {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  color: #6c757d;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s ease;
  font-size: 16px;
  margin-bottom: 2px;
}

.nav-menu-item .nav-menu-subitem {
  display: none; /* Hide sublinks by default */
  padding: 8px 15px;
  color: var(--text-medium);
  text-decoration: none;
  border-radius: 5px;
  transition: all 0.2s;
  font-size: 14px;
}

.nav-menu-item:hover {
  background-color: #f8f9fa;
  color: #198754;
  text-decoration: none;
}

.nav-menu-item.active {
  background-color: #198754;
  color: white;
}

.nav-menu-item.active:hover {
  background-color: #157347;
  color: white;
}

.nav-menu-item i {
  margin-right: 8px;
  width: 16px;
  text-align: center;
}

/* Upgrade Button */
.upgrade-btn {
  border-color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
  transition: all 0.2s ease;
}

.upgrade-btn:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.8);
  transform: translateY(-1px);
}

.upgrade-btn .fa-crown {
  color: #FFD700;
}

/* Popup Overlay */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1050;
  display: none;
  align-items: center;
  justify-content: center;
}

.popup-content {
  background: white;
  border-radius: 8px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  animation: slideIn 0.3s ease;
}

.popup-header {
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.popup-body {
  padding: 20px;
}

.popup-footer {
  padding: 20px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* Animations */
@keyframes slideIn {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Table Enhancements */
.table-responsive {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #dee2e6;
}

.table th {
  background: #f8f9fa;
  border: none;
  font-weight: 600;
  color: #495057;
  padding: 12px;
}

.table td {
  padding: 12px;
  vertical-align: middle;
  border-color: #f1f3f4;
}

.table tbody tr:hover {
  background: #f8f9fa;
}

/* Progress Bars */
.progress {
  background: #e9ecef;
  border-radius: 10px;
}

.progress-bar {
  border-radius: 10px;
}

/* Badges */
.badge {
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 20px;
}


/* Button Enhancements */
.btn:hover {
  transform: translateY(-1px);
}

.btn-group-sm .btn {
  padding: 4px 8px;
}

/* Form Controls Enhancement */
.form-control, .form-select {
  border-radius: 6px;
  border: 1px solid #dee2e6;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--primary-light);
}

/* SaaS UI Components */
.section-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 24px;
  border: 1px solid #e9ecef;
  transition: box-shadow 0.3s ease;
}

.section-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.section-header {
  border-bottom: 1px solid #f1f3f4;
  padding-bottom: 12px;
}

.section-title {
  font-weight: 600;
  color: #2c3e50;
  margin: 0;
}

/* Stats Cards */
.stat-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: none !important;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}

.stat-card h3 {
  font-weight: 700;
  font-size: 29px;
}

/* Activity List */
.activity-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}

.activity-item {
  padding: 12px 0;
  border-bottom: 1px solid #f1f3f4;
}

.activity-item:last-child {
  border-bottom: none;
}

/* Popup styles */
.modal-header {
    border-bottom: 1px solid #e9ecef;
    background-color: #f8f9fa;
}

.modal-body {
    max-height: calc(100vh - 200px); /* Limit height to viewport height minus header/footer */
    overflow-y: auto; /* Enable vertical scrolling */
    overflow-x: hidden;
    padding-right: 10px; /* Add some padding for the scrollbar */
}

/* Bullet management styles */
.bullet-list {
    overflow-y: auto;
}

.bullet-item {
    padding: 0.75rem 1rem;
    border-left: none;
    border-right: none;
    transition: background-color 0.2s;
}

.bullet-item:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

.bullet-content {
    cursor: grab;
    padding: 0.25rem 0;
    flex: 1;
}

.bullet-icon {
    font-size: 0.5rem;
    vertical-align: middle;
    color: #198754;
}

.bullet-actions {
    opacity: 0.6;
    transition: opacity 0.2s;
}

.bullet-item:hover .bullet-actions {
    opacity: 1;
}

/* Profile item bullet points */
.bullet-points {
    padding-left: 1.5rem;
    margin-top: 0.5rem;
}

.bullet-points li {
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
    color: #495057;
}

.bullet-points li:last-child {
    margin-bottom: 0;
}

/* Section Tabs Styling */
#sticky-tabs-wrapper {
    width: 100%;
}

.section-tabs-container {
    padding: 0 1rem;
    margin-bottom: 0;
    border-bottom: 1px solid #dee2e6;
    backdrop-filter: blur(5px); /* Add blur effect for modern browsers */
    -webkit-backdrop-filter: blur(5px); /* For Safari */
    transition: box-shadow 0.3s ease; /* Smooth transition for shadow */
    width: 100%;
}

/* Add shadow when scrolled */
#sticky-tabs-wrapper.scrolled {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    top: var(--header-height);
    background-color: rgba(241, 249, 244, 0.8);
    z-index: 1030;
    position: -webkit-sticky; /* For Safari */
    position: sticky;
    z-index: 1030; /* Higher than Bootstrap's navbar (1020) */
}

.nav-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    margin-bottom: -1px;
    padding-bottom: 4px; /* Space for scrollbar */
    background-color: transparent; /* Ensure tabs are transparent */
}

.nav-tabs::-webkit-scrollbar {
    height: 4px;
}

.nav-tabs::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.2);
    border-radius: 4px;
}

.nav-tabs .nav-item {
    white-space: nowrap;
    margin-bottom: -1px;
}

.nav-tabs .nav-link {
    border: 1px solid transparent;
    border-top-left-radius: 0.25rem;
    border-top-right-radius: 0.25rem;
    color: #495057;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    transition: all 0.2s ease-in-out;
    background-color: transparent; /* Ensure link background is transparent */
}

.nav-tabs .nav-link:hover {
    border-color: rgba(233, 236, 239, 0.5) rgba(233, 236, 239, 0.5) #dee2e6;
    color: #198754; /* Green color on hover */
}

.nav-tabs .nav-link.active {
    color: #198754; /* Green color for active tab */
    background-color: transparent; /* Transparent background */
    border-color: #dee2e6 #dee2e6 #fff;
    font-weight: 500;
    position: relative; /* For the active indicator */
}

/* Active tab indicator */
.nav-tabs .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #198754; /* Green indicator line */
}

/* Responsive tabs */
@media (max-width: 768px) {
    .nav-tabs .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
}

.modal-footer {
    border-top: 1px solid #e9ecef;
    background-color: #f8f9fa;
}

.modal-footer .btn {
  min-width: 120px;
}
/* Drag and drop styles */
.drag-handle {
    cursor: grab;
    padding: 10px 5px;
    color: #adb5bd;
}

.drag-handle:hover {
    color: #6c757d;
}

.sortable-ghost {
    opacity: 0.5;
    background-color: #e9ecef;
}

.sortable-chosen {
    background-color: #f8f9fa;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.sortable-drag {
    background-color: #ffffff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

#sortablePlatformsList .list-group-item {
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
    padding: 12px 15px;
}

#sortablePlatformsList .list-group-item:hover {
    border-left-color: var(--bs-primary);
    background-color: rgba(var(--bs-primary-rgb), 0.05);
} 

/* List Items */
.list-item {
  transition: all 0.2s ease;
  background: white;
}

.list-item:hover {
  background: #f8f9fa;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Common Page Styles */

/* Page Title Section */
.page-title-section {
  margin-bottom: 30px;
}

.page-title-section h1 {
  font-size: 28px;
  margin-bottom: 10px;
}

.page-title-section hr {
  margin-top: 15px;
  opacity: 0.2;
}

/* Action Bar */
.action-bar {
  background: none;
  padding: 0;
  margin-bottom: 20px;
  border: none;
  box-shadow: none;
}

/* Next Button Styling */
.action-bar .btn-next {
    background: linear-gradient(135deg, #7705cf 0%, #5b1de1 100%);
    color: white;
    font-weight: 600;
    padding: 8px 80px;
    border-radius: 6px;
    border: none;
    box-shadow: 0 4px 10px rgba(103, 61, 230, 0.3);
    transition: all 0.3s ease;
}

.action-bar .btn-next:hover {
  background: linear-gradient(135deg, #7705cf 0%, #270079 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(103, 61, 230, 0.4);
  color: white;
}

.action-bar .btn-next:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(103, 61, 230, 0.3);
}


.action-bar .btn-primary {
  padding: 8px 16px;
  transition: all 0.3s ease;
}

.action-bar .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Search Container Styles */
.search-container {
  position: relative;
}

.search-container input {
  padding-right: 35px;
}

.action-bar .search-container {
  max-width: 250px;
  float: right;
}

.search-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #6c757d;
  pointer-events: none;
}

.action-bar .input-group {
  max-width: 250px;
  float: right;
}

/* Table Container */
.table-container {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  padding: 20px;
}

.table th {
  background-color: #f8f9fa;
  font-weight: 600;
  border-bottom-width: 1px;
}

.table td {
  vertical-align: middle;
}

/* Empty State */
.empty-state-message {
  color: #6c757d;
}

.empty-state-message i {
  opacity: 0.7;
}

.empty-state-message button {
  margin-top: 15px;
}

/* Table Links */
.table td a {
  color: #007bff;
  text-decoration: none;
  word-break: break-all;
}

.table td a:hover {
  text-decoration: underline;
}

/* Action Buttons */
.btn-group-sm .btn {
  padding: 0.25rem 0.5rem;
}

.btn-outline-secondary {
  color: #6c757d;
  border-color: #ced4da;
}

.btn-outline-secondary:hover {
  background-color: #f8f9fa;
  color: #495057;
}

.btn-outline-primary:hover {
  transform: translateY(-1px);
}

.btn-outline-danger:hover {
  transform: translateY(-1px);
}

/* Form Popup */
.modal-header {
  background-color: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
}

.modal-footer {
  background-color: #f8f9fa;
  border-top: 1px solid #e9ecef;
}

.form-text {
  font-size: 0.875rem;
  color: #6c757d;
}

/* Responsive Adjustments */
@media (max-width: 767px) {

  
  .action-bar .input-group,
  .action-bar .search-container {
    float: none;
    max-width: 100%;
  }
  
  .table-container {
    padding: 10px;
  }
  
  .btn-group-sm .btn {
    padding: 0.375rem 0.75rem;
  }
}

/* Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.me-1 { margin-right: 4px; }
.me-2 { margin-right: 8px; }
.me-3 { margin-right: 12px; }
.fw-medium { font-weight: 500; }
.fw-bold { font-weight: 700; }

.question-actions .btn {
    border: none;
}

.btn:disabled {
    color: #8d8d8d;
}
/*job status color*/
.jobStatus_pending {
    background-color: #FFF9C4;
}

.jobStatus_applied {
    background-color: #D1C4E9;
}

.jobStatus_interview {
    background-color: #80DEEA;
}

.jobStatus_offer {
    background-color: #81C784;
}

/* Letter Display Styles - Common for email modules */
.letter-display {
    border-radius: 8px;
    padding: 2rem;
    min-height: 300px;
    line-height: 1.6;
    font-size: 1rem;
}

.letter-display.empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-style: italic;
}

/* Subject/Body split */
.letter-subject {
    display: flex;
    align-items: baseline;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #dee2e6;
    margin-bottom: 20px;
}

.letter-subject .subject-text {
    font-weight: 700;
    color: #212529;
    font-size: 1.3rem;
}

.letter-body {
    white-space: pre-wrap; /* preserve formatting for body only */
}

/* Letter editor */
.letter-editor {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    min-height: 300px;
}

/* Copy success animation */
@keyframes fadeInOut {
    0% { opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { opacity: 0; }
}

/* Mobile optimizations for letter display */
@media (max-width: 768px) {
    .letter-display {
        padding: 1rem;
        font-size: 0.9rem;
    }
}

