/**
 * Package Styles - Common CSS for pricing cards and job packages
 * Sử dụng chung cho toàn bộ hệ thống
 */

/* ============================================
   PRICING CARD BASE STYLES
   ============================================ */

.pricing-card {
  border-radius: 20px;
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  border: 1px solid #e9ecef;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: visible;
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12) !important;
}

.pricing-card-header {
  padding: 1.2rem 1rem;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.pricing-card-body {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.pricing-title {
  font-size: 14px;
  font-weight: 600;
  color: #000;
  width: fit-content;
  background: #fff;
  border-radius: 30px;
  padding: 5px 10px;
  margin-bottom: 0.5rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.pricing-price {
  color: #272727;
  font-weight: 700;
  font-size: 24px;
  margin-bottom: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.pricing-description {
  font-size: 0.85rem;
  color: #000;
  margin-top: 1rem;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
  text-align: left;
  flex: 1;
  padding: 1rem;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  line-height: 1.4;
}

.pricing-features li i {
  color: #28a745;
  margin-right: 0.5rem;
  margin-top: 0.1rem;
  flex-shrink: 0;
}

.pricing-btn {
  background: #f1f7ff;
  border: none;
  color: #2466c9;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 25px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  width: 100%;
  text-align: center;
  font-size: 14px;
  margin-top: auto;
}

/* ============================================
   PACKAGE COLOR SCHEMES
   ============================================ */

/* STANDARD PACKAGE */
.pricing-card.standard .pricing-card-header,
.package-header.standard {
  background: rgba(241, 247, 255, 1);
  color: rgba(36, 102, 201, 1);
}

/* SILVER PACKAGE */
.pricing-card.silver .pricing-card-header,
.package-header.silver {
  background: linear-gradient(360deg, #D2D2D2 -7.52%, #E8E8E8 107.52%);
  color: #333;
}

/* GOLD PACKAGE */
.pricing-card.gold .pricing-card-header,
.package-header.gold {
  background: linear-gradient(218.21deg, rgba(249, 137, 111, 0.5) -34.16%, rgba(245, 243, 75, 0.5) 189.47%);
  color: #333;
}

/* GOLD PLUS PACKAGE */
.pricing-card.gold-plus .pricing-card-header,
.package-header.gold-plus {
  background: linear-gradient(180deg, #FFC56D 0%, #FCE3B6 100%);
  color: white;
}

/* PREMIUM/PLATINUM PACKAGE */
.pricing-card.premium .pricing-card-header,
.package-header.premium {
  background: linear-gradient(180deg, #6BDFFF 0%, #DAFBFF 100%);
  color: white;
}

.pricing-card.premium .pricing-btn:hover {
  box-shadow: 0 6px 20px rgba(70, 130, 180, 0.4);
}

/* PLATINUM 15 PACKAGE */
.pricing-card.platinum-15 .pricing-card-header,
.package-header.platinum-15 {
  background: linear-gradient(180deg, #C8FBFF 0%, #F1F9FA 100%);
  color: white;
}

.pricing-card.platinum .pricing-btn:hover {
  box-shadow: 0 6px 20px rgba(135, 206, 235, 0.4);
}

/* DIAMOND 15 PACKAGE */
.pricing-card.diamond-15 .pricing-card-header,
.package-header.diamond-15 {
  background: linear-gradient(180deg, #BBFFEC 0%, #DAFFF2 100%);
  color: white;
}

/* DIAMOND PACKAGE */
.pricing-card.diamond .pricing-card-header,
.package-header.diamond {
  background: linear-gradient(180deg, #6BFFD5 0%, #DAFFF2 100%);
  color: white;
}

.pricing-card.diamond .pricing-btn:hover {
  box-shadow: 0 6px 20px rgba(177, 156, 217, 0.4);
}

/* RUBY 15 PACKAGE */
.pricing-card.ruby-15 .pricing-card-header,
.package-header.ruby-15 {
  background: linear-gradient(180deg, #FFB0B0 0%, #FFDADA 100%);
  color: white;
}

/* RUBY PACKAGE */
.pricing-card.ruby .pricing-card-header,
.package-header.ruby {
  background: linear-gradient(180deg, #FF5D5D 0%, #FFC8AC 100%);
  color: white;
}

.pricing-card.ruby .pricing-btn:hover {
  box-shadow: 0 6px 20px rgba(255, 105, 180, 0.4);
}

/* ============================================
   PACKAGE LABELS (for job listing tables)
   ============================================ */

.package-label {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  color: #fff;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Package label colors matching header gradients */
.package-label.standard {
  background: rgba(241, 247, 255, 1);
  color: rgba(36, 102, 201, 1);
  /* border: 1px solid rgba(36, 102, 201, 0.3); */
}

.package-label.silver {
  background: linear-gradient(360deg, #D2D2D2 -7.52%, #E8E8E8 107.52%);
  color: #333;
}

.package-label.gold {
  background: linear-gradient(218.21deg, rgba(249, 137, 111, 0.5) -34.16%, rgba(245, 243, 75, 0.5) 189.47%);
  color: #333;
}

.package-label.gold-plus {
  background: linear-gradient(180deg, #FFC56D 0%, #FCE3B6 100%);
  color: white;
}

.package-label.premium,
.package-label.platinum {
  background: linear-gradient(180deg, #6BDFFF 0%, #DAFBFF 100%);
  color: white;
}

.package-label.platinum-15 {
  background: linear-gradient(180deg, #C8FBFF 0%, #F1F9FA 100%);
  color: #333;
}

.package-label.diamond-15 {
  background: linear-gradient(180deg, #BBFFEC 0%, #DAFFF2 100%);
  color: #333;
}

.package-label.diamond {
  background: linear-gradient(180deg, #6BFFD5 0%, #DAFFF2 100%);
  color: white;
}

.package-label.ruby-15 {
  background: linear-gradient(180deg, #FFB0B0 0%, #FFDADA 100%);
  color: #333;
}

.package-label.ruby {
  background: linear-gradient(180deg, #FF5D5D 0%, #FFC8AC 100%);
  color: white;
}

/* ============================================
   STATUS LABELS (for job listing)
   ============================================ */

.status-label {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Active status - Green */
.status-label.active {
  background-color: #d4edda;
  color: #155724;
  /* border: 1px solid #c3e6cb; */
}

/* Inactive/Paused status - Red/Orange */
.status-label.inactive {
  background-color: #f8d7da;
  color: #721c24;
  /* border: 1px solid #f5c6cb; */
}

/* New/Not published status - Gray */
.status-label.new {
  background-color: #e2e3e5;
  color: #383d41;
  /* border: 1px solid #d6d8db; */
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

@media (max-width: 768px) {
  .pricing-card-header {
    padding: 1rem 0.8rem;
  }

  .pricing-card-body {
    padding: 0.8rem;
  }

  .pricing-title {
    font-size: 0.9rem;
  }

  .pricing-price {
    font-size: 1.2rem;
  }

  .pricing-features li {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .pricing-card-body {
    padding: 0.8rem;
  }

  .pricing-title {
    font-size: 0.85rem;
  }

  .pricing-price {
    font-size: 1.1rem;
  }

  .pricing-features li {
    font-size: 0.75rem;
  }

  .package-label,
  .status-label {
    font-size: 11px;
    padding: 4px 10px;
  }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

/* Candidate Statistics Badges */
.candidate-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-right: 5px;
}

.candidate-badge a {
  color: inherit;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
}

.candidate-badge a:hover {
  text-decoration: none;
  opacity: 0.9;
}

/* Total candidates - Light gray/blue styling */
.total-candidates {
  background-color: #e3f2fd;
  color: #1976d2;
}

.total-candidates:hover {
  background-color: #bbdefb;
  box-shadow: 0 2px 8px rgba(25, 118, 210, 0.2);
}

/* Unread candidates - Orange/yellow styling */
.unread-candidates {
  background-color: #fff3e0;
  color: #f57c00;
}

.unread-candidates:hover {
  background-color: #ffe0b2;
  box-shadow: 0 2px 8px rgba(245, 124, 0, 0.2);
}

/* View count badge - Blue styling */
.view-count {
  background-color: #e8f5e9;
  color: #388e3c;
}

.view-count:hover {
  background-color: #c8e6c9;
  box-shadow: 0 2px 8px rgba(56, 142, 60, 0.2);
}

/* Icon colors */
.candidate-badge .fa {
  font-size: 14px;
}

.unread-candidates .fa {
  color: #f57c00;
}

/* ============================================
   BUTTON STYLES (Shine Buttons)
   ============================================ */

.button-grid {
  display: grid;
  gap: 3rem;
}

.button-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.shine-button {
  position: relative;
  padding: 0.5rem 1rem;
  font-size: 0.3rem;
  background: linear-gradient(45deg, #b4e0f5, #a2d9f5, #b4e0f5);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  height: auto;
}

.shine-button-ruby {
  color: #b33d3d !important;
  background: linear-gradient(45deg, #f8b4b4, #f6a8a8, #f8b4b4) !important;
}

.shine-button-gold {
  color: #b47b26 !important;
  background: linear-gradient(45deg, #fff5cc, #ffedb8, #fff5cc) !important;
}

.shine-button:hover {
  background: linear-gradient(45deg, #a3d2ef, #91c9ec, #a3d2ef);
  transform: scale(1.05);
}

.shine-content {
  position: relative;
  z-index: 1;
}

.shine-button::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transform: rotate(45deg) translateY(-100%);
  transition: transform 0.5s ease;
}

.shine-button:hover::before {
  transform: rotate(45deg) translateY(100%);
}

/* Responsive Design for Buttons */
@media (max-width: 768px) {
  .button-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .button-wrapper {
    min-height: 120px;
  }
}

/* ============================================
   TEXT COLOR UTILITIES
   ============================================ */

.text-diamond {
  color: #32A200 !important;
}

.text-platium {
  color: #F700BE !important;
}

.text-gold {
  color: #D0B317 !important;
}

.text-silver {
  color: #1F8FFF !important;
}

.text-standard {
  color: #707070 !important;
}

.text-bold {
  color: #808080;
}

.text-ruby {
  color: #FF0000 !important;
}

/* ============================================
   TOOLTIP STYLES
   ============================================ */

.tooltip-inner {
  background-color: #3498db;
  color: #ffffff;
  font-size: 14px;
  padding: 10px;
  border-radius: 5px;
  width: 100% !important;
}

.custom-tooltip + .tooltip > .tooltip-inner {
  max-width: none;
  width: fit-content;
  white-space: normal;
  padding: 10px;
}

/* ============================================
   GRID VIEW STYLES
   ============================================ */

.pricing-container {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.pricing-item {
  flex: 1 1 calc(20% - 12px);
  min-width: 200px;
  display: flex;
  flex-direction: column;
}

/* Responsive grid adjustments */
@media (max-width: 1200px) {
  .pricing-item {
    flex: 1 1 calc(33.333% - 10px);
  }
}

@media (max-width: 768px) {
  .pricing-container {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 15px;
    padding: 10px 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
  }

  .pricing-item {
    flex: 0 0 280px;
    min-width: 280px;
    max-width: 280px;
  }

  /* Scroll indicator */
  .pricing-container::-webkit-scrollbar {
    height: 6px;
  }

  .pricing-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
  }

  .pricing-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
  }

  .pricing-container::-webkit-scrollbar-thumb:hover {
    background: #555;
  }
}

@media (max-width: 480px) {
  .pricing-container {
    gap: 10px;
    padding: 5px 0;
  }

  .pricing-item {
    flex: 0 0 260px;
    min-width: 260px;
    max-width: 260px;
  }
}
/** Job Package Styles ***/

.text-blue-800,
.text-blue-800:hover,
.text-blue-800:focus {
  color: #1F8FFF !important;
}

.text-green {
  color: #32A200 !important;
}

.text-grey {
  color: #808080 !important;
}

.text-orange-400 {
    color: #D0B317 !important;
}

.text-pink {
    color: #F700BE !important;
}

.text-danger {
    color: #FF0000 !important;
}

.text-pink-400 {
    color: #F700BE !important;
}

.text-danger-400 {
    color: #FF0000 !important;
}

/*** Job Package Styles - End ***/