/* ==========================================================================
   Kelola Yuk - Signature Lined Notebook Paper Design System
   ========================================================================== */

/* Lined notebook paper texture applied globally on body and layout containers */
body, 
.notebook-bg,
.app-layout {
  background-color: #fcfdfd;
  background-image: 
    /* Horizontal notebook lines */
    repeating-linear-gradient(
      to bottom,
      transparent,
      transparent 29px,
      rgba(15, 118, 110, 0.08) 29px,
      rgba(15, 118, 110, 0.08) 30px
    ),
    /* Left vertical red margin accent line */
    linear-gradient(
      to right,
      transparent,
      transparent 56px,
      rgba(239, 68, 68, 0.18) 56px,
      rgba(239, 68, 68, 0.18) 57px,
      transparent 57px
    );
  background-size: 100% 30px, 100% 100%;
  background-attachment: local;
}

/* For public pages (Landing, About, Auth) where margin line can be subtly centered or muted */
.public-layout {
  background-color: #fafbfc;
  background-image: 
    repeating-linear-gradient(
      to bottom,
      transparent,
      transparent 31px,
      rgba(203, 213, 225, 0.25) 31px,
      rgba(203, 213, 225, 0.25) 32px
    );
  background-size: 100% 32px;
}

/* CRITICAL RULE: All cards, forms, modals, tables, and sidebar containers MUST have solid backgrounds 
   so readability is crisp and contrast is maximum. */
.card,
.modal-content,
.sidebar,
.navbar,
.chatbot-panel,
.form-card,
.stat-card,
.news-card,
.feature-card {
  background-color: #ffffff !important;
  border: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
}

/* Notebook Badge / Accent Sticker Effect */
.notebook-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 9999px;
  border: 1px dashed rgba(13, 148, 136, 0.4);
  background-color: rgba(204, 251, 241, 0.5);
  color: var(--primary-800);
}

/* Notebook Header underline effect */
.page-title {
  position: relative;
  display: inline-block;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--neutral-900);
  margin-bottom: 0.5rem;
}

.page-title::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 45px;
  height: 4px;
  background: var(--primary-500);
  border-radius: 2px;
}
