/* ========================================
   AI Content Bridge - Clean Styles
   ======================================== */
/* Improved FormTokenField styling for categories */
.FormTokenField__token,
.components-form-token-field__token {
    background-color: #e0f2fe !important;
    color: #0369a1 !important;
    border-radius: 9999px !important;
    height: 26px !important;
    align-items: center !important;
    font-size: 13px !important;
    padding: 0 4px 0 10px !important;
    margin: 2px 4px 2px 0 !important;
}

.FormTokenField__token-text,
.components-form-token-field__token-text {
    padding-right: 6px !important;
}

.FormTokenField__remove-button,
.components-form-token-field__remove-button {
    background: transparent !important;
    border-radius: 50% !important;
    width: 18px !important;
    height: 18px !important;
    margin-left: 2px !important;
    padding: 0 !important;
}

.dashicons.spin {
    animation: dashicons-spin 1.5s linear infinite;
}

@keyframes dashicons-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Bigger and more professional buttons & statuses */
.ai-badge,
.components-button {
    font-size: 14px !important;
    padding: 10px 18px !important;
    min-height: 42px !important;
    border-radius: 8px !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

.ai-badge {
    font-weight: 600 !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Better spacing between list items */
.list-item {
    margin-bottom: 8px !important;
}

/* Force reliable icon rendering */
span[style*="borderRadius"] {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}


/* Message boxes */
.components-notice { font-size: 18px; }
.components-notice .dashicon { vertical-align: middle; }

:root {
  --primary: #1B6EF3;
  --primary-dark: #1458CC;
  --gray-50: #F4F8FC;
  --gray-100: #EBF2F9;
  --gray-200: #D6E4F0;
  --gray-700: #122038;
  --gray-900: #06101E;
}

#ai-content-bridge-root {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  color: var(--gray-900);
}

/* Cards */
.ai-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 15px -3px rgb(15 23 42 / 0.08);
  border: 1px solid var(--gray-200);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ai-card:hover {
  box-shadow: 0 20px 25px -5px rgb(15 23 42 / 0.1);
  transform: translateY(-2px);
}

/* Buttons */
.ai-btn {
  font-weight: 600;
  border-radius: 9999px;
  transition: all 0.2s ease;
}

.ai-btn-primary {
  background: var(--primary);
  color: white;
  padding: 10px 24px;
}

.ai-btn-primary:hover {
  background: var(--primary-dark);
  transform: scale(1.03);
}

.ai-btn-secondary {
  background: var(--gray-100);
  color: var(--gray-700);
  border: 1px solid var(--gray-200);
}

.ai-btn-danger {
  background: #ef4444;
  color: white;
}

/* Typography for generated posts */
.ai-content-post h1 { margin-top: 2.75rem; margin-bottom: 1.25rem; font-size: 2.25rem; line-height: 1.2; }
.ai-content-post h2 { margin-top: 2.25rem; margin-bottom: 1rem; font-size: 1.75rem; line-height: 1.3; }
.ai-content-post h3 { margin-top: 1.75rem; margin-bottom: 0.75rem; font-size: 1.4rem; }
.ai-content-post p   { margin-bottom: 1.75rem; line-height: 1.8; }

/* Diary Calendar */
.ai-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
}

.ai-calendar-day {
  min-height: 128px;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  background: white;
  transition: all 0.2s ease;
}

.ai-calendar-day:hover {
  background-color: #EFF6FF;
  border-color: var(--primary);
}

.ai-calendar-day.generated {
  border: 2px solid #1B6EF3;
}

/* List items */
.ai-diary-item {
  padding: 18px;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  margin-bottom: 12px;
  background: white;
}

/* Tables */
.ai-table {
  width: 100%;
}

.ai-table thead th {
  background: var(--gray-50);
  font-weight: 600;
  color: var(--gray-700);
}

.ai-table tr:hover {
  background-color: #F4F8FC;
}

/* Modal */
.ai-modal-content {
  padding: 40px 40px 30px;
}

/* Tabs & Navigation */
.ai-tab-active {
  background-color: var(--primary);
  color: white;
}

/* Status badges */
.ai-badge {
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
}