:root {
      --primary-color: #3fa9f5;
      --secondary-color: #0a1f44;
      --light-color: #f8f9fa;
      --text-color: #333;
      --border-color: #dee2e6;
      --success-color: #4CAF50;
      --warning-color: #FFC107;
      --danger-color: #F44336;
      --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
      --border-radius: 8px;
    }
 
    body {
      font-family: Arial, sans-serif;
      color: var(--text-color);
      background-color: #f0f4f8;
    }
 
    /* ── Two-column top section ── */
    .top-section {
      display: flex;
      gap: 20px;
      align-items: flex-start;
      margin-bottom: 30px;
    }
 
    /* LEFT column — textarea card */
    .left-column {
      flex: 1 1 0;
      min-width: 0;
      width: 100%;
    }
 
    /* RIGHT column — stats stacked */
    .right-column {
      flex: 0 0 300px;
      min-width: 0;
      display: flex;
      flex-direction: column;
      gap: 16px;
    }
 
    /* ── Card ── */
    .card {
      background-color: white;
      border-radius: var(--border-radius);
      box-shadow: var(--box-shadow);
      overflow: hidden;
      margin-bottom: 30px;
    }
 
    .card-header {
      background-color: var(--primary-color);
      color: white;
      padding: 15px 20px;
      font-weight: bold;
      font-size: 1.1rem;
    }
 
    .card-body {
      padding: 20px;
    }
 
    /* ── Textarea ── */
    textarea {
      width: 100%;
      min-height: 320px;
      padding: 15px;
      border: 1px solid var(--border-color);
      border-radius: var(--border-radius);
      font-size: 1rem;
      line-height: 1.6;
      resize: vertical;
      transition: border-color 0.3s;
      font-family: Arial, sans-serif;
    }
 
    textarea:focus {
      outline: none;
      border-color: var(--primary-color);
      box-shadow: 0 0 0 3px rgba(63, 169, 245, 0.2);
    }
 
    /* ── Buttons ── */
    .button-row {
      display: flex;
      gap: 10px;
      margin-top: 16px;
    }
 
    .btn {
      padding: 10px 18px;
      border: none;
      border-radius: 4px;
      cursor: pointer;
      font-weight: 500;
      font-size: 0.95rem;
      transition: background-color 0.3s;
    }
 
    .btn-primary {
      background-color: var(--primary-color);
      color: white;
    }
 
    .btn-primary:hover {
      background-color: var(--secondary-color);
    }
 
    .btn-outline {
      background-color: transparent;
      border: 1px solid var(--primary-color);
      color: var(--primary-color);
    }
 
    .btn-outline:hover {
      background-color: rgba(63, 169, 245, 0.1);
    }
 
    /* ── Stats boxes (right column) ── */
    .stats-box {
      background-color: white;
      border-radius: var(--border-radius);
      box-shadow: var(--box-shadow);
      overflow: hidden;
    }
 
    .stats-box-header {
      background-color: var(--primary-color);
      color: white;
      padding: 12px 16px;
      font-weight: bold;
      font-size: 1rem;
    }
 
    .stats-box-body {
      padding: 10px 16px;
    }
 
    .stat-item {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 9px 0;
      border-bottom: 1px solid #e9ecef;
    }
 
    .stat-item:last-child {
      border-bottom: none;
    }
 
    .stat-label {
      font-weight: 500;
      font-size: 0.9rem;
      color: #444;
    }
 
    .stat-value {
      font-weight: 700;
      font-size: 0.9rem;
      color: var(--primary-color);
      background-color: rgba(63, 169, 245, 0.1);
      padding: 3px 10px;
      border-radius: 20px;
    }
 
    /* ── Social media limits ── */
    .social-limits {
      margin-top: 0;
    }
 
    .limit-item {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 12px 0;
      border-bottom: 1px solid #e9ecef;
    }
 
    .limit-item:last-child {
      border-bottom: none;
    }
 
    .platform-info {
      display: flex;
      align-items: center;
      gap: 10px;
    }
 
    .platform-name {
      font-size: 0.95rem;
      font-weight: 500;
    }
 
    .limit-status {
      display: flex;
      align-items: center;
      gap: 10px;
    }
 
    .limit-status span {
      font-size: 0.85rem;
      color: #555;
      min-width: 80px;
      text-align: right;
    }
 
    .progress-bar-container {
      width: 100px;
      height: 8px;
      background-color: #e9ecef;
      border-radius: 4px;
      overflow: hidden;
    }
 
    .progress-bar {
      height: 100%;
      border-radius: 4px;
      transition: width 0.3s ease;
    }
 
    /* ── Word cloud ── */
    .word-cloud {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-top: 5px;
    }
 
    .word-item {
      padding: 5px 12px;
      background-color: rgba(63, 169, 245, 0.1);
      border-radius: 20px;
      font-size: 0.9rem;
      color: var(--text-color);
    }
 
    .word-count {
      font-weight: bold;
      margin-left: 5px;
      color: var(--primary-color);
    }
 
    /* ── Responsive ── */
    @media (max-width: 900px) {
      .top-section {
        flex-direction: column;
      }
 
      .left-column {
        flex: unset;
        width: 100%;
      }
 
      .left-column .card {
        width: 100%;
        margin-bottom: 0;
      }
 
      .left-column textarea {
        width: 100%;
        min-height: 200px;
      }
 
      .right-column {
        flex: unset;
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
      }
 
      .stats-box {
        flex: 1;
        min-width: 240px;
      }
    }
 
    @media (max-width: 600px) {
      .limit-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
      }
 
      .limit-status {
        width: 100%;
        justify-content: space-between;
      }
 
      .progress-bar-container {
        width: 55%;
      }
    }