/* ===================== */
/* Modern Design System */
/* ===================== */
:root {
  --primary: #8A2BE2;       /* Purple */
  --secondary: #FF6B6B;     /* Coral */
  --accent: #20B2AA;        /* Light Sea Green */
  --background: #F9F9FF;    /* Almost White */
  --surface: #FFFFFF;       /* Pure White */
  --text: #2D2D34;          /* Dark Gray */
  --border: #E3E3EE;        /* Light Gray */
  --success: #32CD32;       /* Lime Green */
  --error: #FF4444;         /* Red */
}

/*under dash styles*/

.card-box {
  background-color: #f0f0f0 !important;
  padding: 20px !important;
  border: none !important;           /* ✅ Remove any border */
  border-radius: 12px !important;
  margin-top: 30px !important;
  box-shadow: none !important; /* Optional clean elevation */
}




/* ===================== */
/* Base Styles */
/* ===================== */
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: #f0f0f0;
  color: var(--text);
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

/* ===================== */
/* Header */
/* ===================== */
header {
  background-color: var(--primary);
  color: white;
  padding: 1rem 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
}

header nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 1.5rem;
}

header nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

header nav ul li a:hover {
  color: var(--secondary);
}

/* ===================== */
/* Dashboard Container */
/* ===================== */
.dashboard-container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

/* ===================== */
/* Combined Welcome and Credit Balance Section */
/* ===================== */
.combined-section {
  display: flex;
  gap: 2rem;
  background: var(--surface);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.welcome-column, .credit-column {
  flex: 1;
}

.welcome-column h2, .credit-column h2 {
  margin-top: 0;
  font-size: 1.5rem;
  color: var(--primary);
}

.credit-balance {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
}

/* ===================== */
/* Generate SEO Article Section */
/* ===================== */
.generate-article-section {
  background: var(--surface);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  margin-bottom: 2rem;
}

.generate-article-section h2 {
  margin-top: 0;
  font-size: 1.75rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

/* Form Elements */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 8px rgba(138, 43, 226, 0.2);
  outline: none;
}

/* ===================== */
/* Media Hub Section (Image Section) */
/* ===================== */

.media-hub-table {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.table-header {
  display: contents;
  font-weight: 600;
  color: var(--primary);
}

.table-header span {
  padding: 1rem;
  background: rgba(138, 43, 226, 0.05);
  border-radius: 8px 8px 0 0;
}

.table-row {
  display: contents;
}

.table-row span {
  display: flex;
  align-items: center;
  padding: 1rem;
  background: var(--background);
  border-radius: 0 0 8px 8px;
}

.table-row select,
.table-row input {
  width: 100%;
  padding: 0.65rem;
  font-size: 0.95rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
}


.additional-instructions h4 {
  margin-top: 0;
  color: var(--primary);
  margin-bottom: 1rem;
}

.additional-instructions textarea {
  width: 100%;
  min-height: 100px;
  
  border: 2px solid var(--border);
  border-radius: 8px;
  resize: vertical;
}

.instruction-note {
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(255, 107, 107, 0.05);
  border-radius: 6px;
  color: var(--text);
  font-size: 0.9rem;
}

.instruction-note i {
  color: var(--secondary);
  margin-right: 0.5rem;
}


.youtube-section h4 {
  margin-top: 0;
  color: var(--primary);
  margin-bottom: 1rem;
}

/* Form Elements Consistency */
input, select, textarea {
  transition: all 0.2s ease;
  border: 2px solid var(--border);
}

input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 8px rgba(138, 43, 226, 0.2);
  outline: none;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .media-hub-table {
      grid-template-columns: 1fr;
  }
  
  .table-header span {
      display: none;
  }
  
  .table-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 0.5rem;
      padding: 1rem;
      background: var(--background);
      border-radius: 8px;
      margin-bottom: 1rem;
  }
  
  .table-row span {
      display: block;
      padding: 0.5rem;
      background: transparent;
  }
  
  .table-row span::before {
      content: attr(data-label);
      display: block;
      font-weight: 600;
      color: var(--primary);
      margin-bottom: 0.5rem;
      font-size: 0.9rem;
  }
}

/* ===================== */
/* Media Hub Section */
/* ===================== */
.tf-block {
  background: var(--surface);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.tf-block h2 {
  margin-top: 0;
  font-size: 1.75rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tf-block-help {
  color: var(--primary);
  text-decoration: none;
}

.tf-header-info {
  font-size: 0.875rem;
  color: var(--text);
  margin-left: auto;
}

.tf-images {
  margin-top: 1.5rem;
}

.tf-inline-fields {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.tf-field {
  flex: 1;
}

.tf-field-name {
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tf-field-cnt {
  margin-left: auto;
  font-size: 0.875rem;
  color: var(--text);
}

.select-menu {
  position: relative;
  width: 100%;
}

.select-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  background: var(--background);
}

.select-cur-item {
  color: var(--text);
}

.arrow-icon {
  color: var(--primary);
}

.select-menu ul {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 8px;
  margin-top: 0.5rem;
  padding: 0.5rem 0;
  z-index: 1000;
  display: none;
}

.select-menu ul li {
  padding: 0.5rem 1rem;
  cursor: pointer;
  color: var(--text);
}

.select-menu ul li:hover {
  background: var(--background);
}

.select-menu ul li.selected {
  background: var(--primary);
  color: white;
}

.cs-hidden {
  display: none;
}

.tf-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
}

.tf-checkbox input {
  margin: 0;
}

.tf-field-wo-margin {
  margin-bottom: 0;
}

.tf-next-input {
  margin-top: 1.5rem;
}

.tf-max-width {
  max-width: 300px;
}

.tf-field-info {
  position: relative;
}

.tooltip {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--text);
  color: white;
  padding: 0.5rem;
  border-radius: 4px;
  font-size: 0.875rem;
  display: none;
  z-index: 1000;
}

.tf-field-info:hover .tooltip {
  display: block;
}



/* ===================== */
/* Generated Article Display */
/* ===================== */
.article-display {
  background: var(--surface);
  padding: 1.5rem;
  border-radius: 8px;
  border: 2px solid var(--border);
  margin-top: 1.5rem;
}

.article-options {
  margin-top: 1rem;
  display: flex;
  gap: 1rem;
}

.option-button {
  background: var(--primary);
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.option-button:hover {
  background: var(--secondary);
}

/* ===================== */
/* Content Settings Section */
/* ===================== */
.content-settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.setting-card {
  background: var(--surface);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.setting-card i {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.setting-card h3 {
  margin: 0.5rem 0;
  font-size: 1.25rem;
  color: var(--text);
}

.setting-card p {
  margin: 0;
  color: var(--text);
}

.recommended {
  display: inline-block;
  background: var(--success);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

/* ===================== */
/* Responsive Design */
/* ===================== */
@media (max-width: 768px) {
  .combined-section {
      flex-direction: column;
      gap: 1.5rem;
  }

  .generate-article-section {
      padding: 1.5rem;
  }

  .content-settings-grid {
      grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  header nav ul {
      gap: 1rem;
  }

  .content-settings-grid {
      grid-template-columns: 1fr;
  }

  .generate-button {
      padding: 0.75rem 1rem;
      font-size: 0.875rem;
  }
}


/*this for image and video css code*/

.media-hub-section,
.youtube-section,
.additional-instructions {
  background: #ffffff; /* section backgroung color */
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.00);
  margin-bottom: 2rem;
}

.media-hub-section select,
.media-hub-section input,
.media-hub-section textarea,
.youtube-section select,
.youtube-section input {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 0.95rem;
  background-color: #fff;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

.dashboard-section h3,
.additional-instructions h4,
.youtube-section h4 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #2d2d34;
  margin-bottom: 1rem;
}

.media-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  color: #333;
}

.media-checkbox-row input[type="checkbox"] {
  margin-top: 0.2rem;
}


.generate-title-btn {
  background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
  color: #fff;
  font-family: 'Segoe UI', sans-serif;
  margin-top: 30px;
  font-size: 16px;
  font-weight: 600;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.generate-title-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.generate-title-btn:active {
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}



/* === Core Article Settings Panel === */
.dashboard-section {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 35px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
}

/* Headings inside panels */
.dashboard-section h3 {
  font-size: 1.4rem;
  color: #333;
  margin-bottom: 20px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.dashboard-section h4 {
  font-size: 1.1rem;
  color: #444;
  margin: 25px 0 15px;
}

/* Form structure */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  font-weight: 500;
  margin-bottom: 6px;
  display: block;
  color: #222;
}

.form-group select,
.form-group input[type='text'],
.form-group input[type='number'] {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
  background-color: #fafafa;
  font-size: 14px;
  font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
  font-size: 16px; /* Optional: Larger font improves visibility */
}

.form-group select:focus,
.form-group input:focus {
  border-color: #66afe9;
  background: #fff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(102, 175, 233, 0.2);
}

.content-elements-grid-3x3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 10px;
}

.content-elements-grid-3x3 .form-group {
  margin-bottom: 0;
}

/*--------------------------------------------*/
/* Style only the animated button */
/* Wrapper for centering */

.generate-btn-wrapper {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100%;
  margin-top: 30px;
}


/* Core animated button */
.animated-glow-btn {
  position: relative;
  display: inline-block;
  padding: 16px 32px;
  font-size: 16px;
  font-family: sans-serif;
  color: #ffffff;
  background-color: #8a2be2;
  border: none;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  box-shadow: 0 15px 40px #ecd7f0;
  cursor: pointer;
  overflow: hidden;
  z-index: 1;
}

.animated-glow-btn i {
  margin-right: 8px;
}

.animated-glow-btn span {
  position: absolute;
  display: block;
  z-index: 0 !important;
  opacity: 1 !important;
}

/* Top border */
.animated-glow-btn span:nth-child(2) {
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, #c219f6, #ffffff);
  animation: animate1 2s linear infinite;
}

/* Right border */
.animated-glow-btn span:nth-child(3) {
  top: 0;
  right: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, #c219f6, #ffffff);
  animation: animate2 2s linear infinite;
  animation-delay: 0.2s;
}

/* Bottom border */
.animated-glow-btn span:nth-child(4) {
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to left, #c219f6, #ffffff);
  animation: animate3 2s linear infinite;
  animation-delay: 0.4s;
}

/* Left border */
.animated-glow-btn span:nth-child(5) {
  top: 0;
  left: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(to top, #c219f6, #ffffff);
  animation: animate4 2s linear infinite;
  animation-delay: 0.6s;
}

.generate-button.animated-glow-btn {
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
}


/* Animations */
@keyframes animate1 {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes animate2 {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

@keyframes animate3 {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

@keyframes animate4 {
  0% { transform: translateY(100%); }
  100% { transform: translateY(-100%); }
}



/*=========================== */
/* ✅ Add this to your CSS     */
/** =========================== */


.seo-keyword-section {
  background: #f0e6ff;
  border: 1px solid #d0bfff;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.seo-keyword-section h3 {
  margin-top: 0;
  color: #6a0dad;
  font-size: 1.3rem;
}

.seo-keyword-note {
  font-size: 0.95rem;
  margin-bottom: 1rem;
  color: #333;
}

.char-limit-note {
  font-size: 0.85rem;
  color: #666;
  display: block;
  margin-top: 5px;
}

.keyword-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.tag {
  background: #d6bcfa;
  color: #333;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
}

.remove-tag {
  margin-left: 8px;
  cursor: pointer;
  font-weight: bold;
}

#keyword-input {
  width: 100%;
  padding: 10px;
  border: 2px solid #d0bfff;
  border-radius: 8px;
  font-size: 0.95rem;
}

.generate-keywords-btn {
  background: linear-gradient(to right, #7b1fa2, #9c27b0);
  color: #fff;
  font-weight: 600;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 10px;
}

.generate-keywords-btn:hover {
  background: linear-gradient(to right, #6a1b9a, #8e24aa);
}


/*here is the css setting for left side header*/
.settings-container {
  display: flex;
  min-height: 100vh;
}

.settings-sidebar {
  width: 250px;
  background-color: #f5f5f5;
  padding: 20px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  border-right: 1px solid #ddd;
}

.settings-sidebar h2 {
  margin-top: 0;
  color: #630783;
}

.settings-sidebar ul {
  list-style: none;
  padding: 0;
}

.settings-sidebar li {
  margin-bottom: 10px;
}

.settings-sidebar a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
}

.settings-sidebar a:hover {
  color: #630783;
}

.settings-content {
  flex-grow: 1;
  padding: 30px;
}

/* Sidebar styling */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 220px;
    height: 100%;
    background-color: #630783;
    padding: 20px 0;
    color: white;
    z-index: 1000;
    overflow-y: auto;
}

.sidebar h2 {
    text-align: center;
    font-size: 1.4em;
    margin-bottom: 30px;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar ul li {
    margin: 20px 0;
}

.sidebar ul li a {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    display: block;
    transition: background 0.3s;
}

.sidebar ul li a:hover {
    background-color: #510064;
}

/* Shift the main content right to make room for sidebar */
.main-content {
    margin-left: 220px;
    padding: 20px;
}

/* Ensure header spans full width inside main-content */
header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Responsive sidebar collapse (optional) */
@media (max-width: 768px) {
    .sidebar {
        position: absolute;
        width: 180px;
    }

    .main-content {
        margin-left: 180px;
    }
}

.sidebar-settings-popover {
  display: none;
  position: fixed;
  min-width: 260px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(60,30,120,0.17);
  padding: 10px 0;
  z-index: 99999;
  border: 1.5px solid #e8e9f1;
}

.sidebar-settings-popover a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 24px;
  color: #2b2367;
  font-size: 1.08rem;
  text-decoration: none;
  border-radius: 7px;
  font-weight: 500;
  transition: background 0.18s, color 0.12s;
}
.sidebar-settings-popover a:hover {
  background: #f4f7ff;
  color: #6a11cb;
}
.sidebar-divider {
  height: 1px;
  background: #eceaf3;
  margin: 7px 0;
  border-radius: 1.5px;
}
.sidebar-upgrade {
  background: #eaf6ff;
  border: 1.5px solid #92cafb;
  color: #2681c7 !important;
  font-weight: 700;
  border-radius: 11px;
  margin: 7px 13px;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  display: flex;
}
.sidebar-upgrade-desc {
  font-size: 0.97em;
  color: #6a7ca7;
  font-weight: 400;
  margin-left: 29px;
  margin-top: -2px;
}

/*after the edting of the css code*/

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 235px;
  height: 100vh;
  background: linear-gradient(135deg, #000000 0%, #6004a1 100%);
  color: #fff;
  box-shadow: 0 8px 40px 0 rgba(64, 32, 135, 0.13);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  border-radius: 0 20px 20px 0;
  overflow: hidden;
  padding: 0 0 16px 0;
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 32px 32px 18px 32px;
}

.sidebar-logo {
  width: 48px;
  height: 48px;
  border-radius: 11px;
  background: none;
  object-fit: contain;
  box-shadow: 0 4px 18px rgba(91, 27, 255, 0.08);
  border: 2.5px solid #fff;
}

.sidebar-title {
  font-size: 1.18rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -1px;
  text-shadow: 0 2px 8px rgba(56,22,102,0.08);
}

/* Navigation */
.sidebar-menu {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 10px;
  margin-bottom: 14px;
  padding-left: 14px;
  padding-right: 14px;
}
.sidebar-menu a {
  padding: 12px 20px 12px 15px;
  color: #fff;
  font-size: 1.09rem;
  opacity: 0.95;
  font-weight: 500;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: background 0.17s, color 0.14s, box-shadow 0.18s;
  text-decoration: none;
  margin-bottom: 1px;
  position: relative;
}
.sidebar-menu a.active,
.sidebar-menu a:hover {
  background: rgba(255,255,255,0.15);
  color: #fffbe6;
  box-shadow: 0 2px 14px rgba(111,66,193,0.10);
}
.sidebar-menu i,
.sidebar-menu svg {
  font-size: 1.23em;
  opacity: 0.88;
}

/* Bottom user info/settings */
.sidebar-bottom {
  border-top: 1.5px solid rgba(255,255,255,0.12);
  padding: 18px 24px 0 24px;
  margin-top: 7px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 2px 10px #0001;
}

.user-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.user-details span {
  font-weight: 600;
  color: #fff;
  font-size: 1.07em;
  letter-spacing: 0.02em;
}
.user-details small {
  color: #ffffff;
  font-size: 0.99em;
  font-weight: 400;
}

/* Settings link (cog) */
.sidebar-settings-parent {
  position: relative;
  margin-top: 4px;
}

.sidebar-link.sidebar-settings-trigger {
  display: flex;
  align-items: center;
  color: #dbceff;
  gap: 9px;
  padding: 11px 0;
  font-size: 1.04em;
  text-decoration: none;
  transition: color 0.13s;
  border-radius: 8px;
}
.sidebar-link.sidebar-settings-trigger:hover {
  color: #fff;
  background: rgba(122,74,220,0.10);
}

/* --- Settings Popover --- */
.sidebar-settings-popover {
  display: none;
  position: fixed; /* JS sets left/bottom */
  min-width: 240px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 36px rgba(76,34,188,0.19);
  padding: 10px 0 7px 0;
  z-index: 99999;
  border: 1.7px solid #e6e1f5;
  animation: fadeInPop 0.18s;
}
@keyframes fadeInPop {
  from { opacity: 0; transform: translateY(18px);}
  to   { opacity: 1; transform: translateY(0);}
}
.sidebar-settings-popover a {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 25px;
  color: #44247e;
  font-size: 1.07rem;
  text-decoration: none;
  border-radius: 7.5px;
  font-weight: 500;
  transition: background 0.14s, color 0.13s;
  background: none;
  margin: 0 3px;
}
.sidebar-settings-popover a:hover {
  background: #f3ecff;
  color: #7a36e1;
}
.sidebar-divider {
  height: 1px;
  background: #eceaf3;
  margin: 7px 0;
  border-radius: 1.5px;
}
.sidebar-upgrade {
  background: #f6fbff;
  border: 1.5px solid #92cafb;
  color: #8A2BE2 !important;
  font-weight: 700;
  border-radius: 10px;
  margin: 7px 13px;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  display: flex;
}
.sidebar-upgrade-desc {
  font-size: 0.97em;
  color: #6a7ca7;
  font-weight: 400;
  margin-left: 29px;
  margin-top: -2px;
}

/* Responsive for mobile/tablet */
@media (max-width: 900px) {
  .sidebar {
    width: 60px;
    border-radius: 0;
    padding: 0;
  }
  .sidebar-header,
  .sidebar-bottom,
  .sidebar-menu a span,
  .user-details {
    display: none !important;
  }
  .sidebar-logo { margin: 0 auto; }
  .sidebar-menu a {
    justify-content: center;
    padding: 1rem 0;
  }
}


@media (max-width: 900px) {
  .sidebar {
    width: 60px;
    border-radius: 0 16px 16px 0;
    padding-left: 0;
    padding-right: 0;
    min-width: 60px;
  }
  .sidebar-header,
  .sidebar-bottom,
  .sidebar-title,
  .user-details,
  .sidebar-menu a span,
  .sidebar-settings-popover a span {
    display: none !important;
  }
  .sidebar-logo {
    width: 36px;
    height: 36px;
    margin: 18px auto 12px auto;
    display: block;
  }
  .sidebar-menu {
    padding-left: 0;
    padding-right: 0;
    margin-top: 24px;
    gap: 0;
  }
  .sidebar-menu a {
    justify-content: center;
    padding: 16px 0;
    font-size: 1.35em;
    border-radius: 12px;
    margin: 2px 0;
  }
}

@media (max-width: 600px) {
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 56px;
    min-width: 56px;
    max-width: 56px;
    border-radius: 0 12px 12px 0;
    box-shadow: 2px 0 18px 0 rgba(88,50,200,0.07);
    z-index: 1110;
    padding: 0;
  }
}


.sidebar,
.sidebar-header {
  border-radius: 0 !important;
  border-top-right-radius: 0 !important;
}



.brand-voice-box {
  display: flex;
  align-items: center;
  gap: 14px;
  background:  #892be263 ;           /* Soft purple background like your reference */
  border-radius: 12px;
  padding: 14px 18px;
  margin-top: 8px;
  margin-bottom: 20px;
  box-shadow: none;
  border: none;
}

.brand-voice-box select {
  min-width: 140px;              /* Smaller than before */
  max-width: 210px;
  width: 210px;
  font-size: 1rem;               /* A bit smaller text */
  background: #fff;
  border-radius: 7px;
  border: 1.5px solid #fcfcfc;
  padding: 8px 10px;
  height: 38px;
  margin-right: 0;
  box-shadow: none;
}

#brand-voice-help-text {
  color: #000000;
  font-size: 0.96rem;
  font-weight: 400;
  line-height: 1.45;
  margin-left: 0;
  background: none;
  border: none;
  padding-left: 10px;
  min-width: 0;
  max-width: 100%;
  display: block;
  white-space: normal;
}


/* Remove old vertical border/column look */
#brand-voice-help-text, .brand-voice-box #brand-voice-help-text {
  border: none !important;
  padding-left: 10px !important;
  margin-left: 0 !important;
}

@media (max-width: 700px) {
  .brand-voice-box {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px 9px;
  }
  .brand-voice-box select {
    width: 100%;
    min-width: 100px;
    max-width: 100%;
  }
  #brand-voice-help-text {
    margin-left: 0;
    padding-left: 0;
    font-size: 0.99rem;
  }
}


#num-images {
  width: 98% !important;
  max-width: 230px !important;
  min-width: 90px !important;
  display: block;
  margin: 0 auto;
  box-sizing: border-box;
}



.keyword-tags {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.5rem !important;
  margin-bottom: 0.5rem !important;
  align-items: flex-start !important;
  padding-left: 0 !important;
}

.tag, .keyword-tags .tag, .keyword-tags > span:not(.remove-tag):not(input):not(button) {
  display: inline-flex !important;
  align-items: center !important;
  background: linear-gradient(90deg, #050505 0%, #6a11cb 100%);
  color: #fff !important;
  padding: 6px 13px 6px 14px !important;
  border-radius: 24px !important;
  font-size: 1.07rem !important;
  font-weight: 500 !important;
  margin: 0 4px 4px 0 !important;
  line-height: 1.22 !important;
  min-height: 1.8em !important;
  box-shadow: 0 1.5px 7px #7c3ee61a !important;
  letter-spacing: 0.01em !important;
  transition: background 0.18s !important;
  position: relative !important;
  white-space: nowrap !important;
}

/* Make tags less tall */
.tag, .keyword-tags .tag {
  padding-top: 4px !important;
  padding-bottom: 4px !important;
}

.tag-remove-btn, .tag .remove-tag, .tag button, .keyword-tags .remove-tag, .keyword-tags button {
  margin-left: 10px !important;
  padding: 0 !important;
  width: 19px !important;
  height: 19px !important;
  min-width: 19px !important;
  min-height: 19px !important;
  max-width: 19px !important;
  max-height: 19px !important;
  font-size: 0.97em !important;
  background: #fff !important;
  color: #6a11cb !important;
  border: none !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 1px 5px #6a11cb18 !important;
  cursor: pointer !important;
  outline: none !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  position: relative !important;
  top: 0 !important;
  transition: background 0.18s, color 0.18s !important;
}

.tag-remove-btn:hover, .tag .remove-tag:hover, .keyword-tags button:hover {
  background: #ecd7f0 !important;
  color: #000 !important;
}

@media (max-width: 700px) {
  .keyword-tags {
    gap: 0.24rem !important;
  }
  .tag, .keyword-tags .tag {
    font-size: 0.98rem !important;
    padding: 4px 9px 4px 9px !important;
    min-height: 1.2em !important;
  }
  .tag-remove-btn, .tag .remove-tag, .keyword-tags .remove-tag, .keyword-tags button {
    width: 16px !important;
    height: 16px !important;
    font-size: 0.97em !important;
    margin-left: 7px !important;
  }
}
