/* ==========================================================================
   MAUCHUKY - TOOLS CSS
   Styles for Fancy Text Generator, Feng Shui Calculator, PDF Signer & Email Sig
   ========================================================================== */

/* --- 1. TẠO KIỂU CHỮ ĐẸP & KÍ TỰ ĐẶC BIỆT --- */
.chudep-tool-box {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  padding: 35px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  margin-bottom: 40px;
}

.form-group-text label {
  display: block;
  font-size: 16px;
  color: #136b76;
  margin-bottom: 10px;
}

.form-control-lg {
  width: 100%;
  padding: 14px 20px;
  font-size: 18px;
  border: 2px solid #c2e6ea;
  border-radius: 8px;
  color: #23393c;
  font-weight: 600;
  transition: border-color 0.2s;
}

.form-control-lg:focus {
  border-color: #136b76;
}

.kituc-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 25px 0;
}

.kituc-col label {
  display: block;
  font-size: 14px;
  color: #475569;
  margin-bottom: 8px;
}

.select-symbol {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 16px;
  background-color: #f8fafc;
}

.result-action-box {
  background: #f0f7f8;
  border: 1px solid #bce2e7;
  border-radius: 10px;
  padding: 25px;
  margin: 30px 0;
}

.result-field-wrap {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.strkq {
  flex: 1;
  padding: 15px 20px;
  font-size: 22px;
  font-weight: 700;
  color: #136b76;
  background: #ffffff;
  border: 2px solid #136b76;
  border-radius: 8px;
  resize: none;
  font-family: inherit;
}

.btn-copy-gradient {
  background: linear-gradient(135deg, #ffd700 0%, #e6a800 100%);
  color: #23393c;
  border: none;
  padding: 0 30px;
  font-size: 16px;
  font-weight: 800;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(230, 168, 0, 0.3);
}

.btn-copy-gradient:hover {
  background: #ffcc00;
  transform: translateY(-2px);
}

.font-styles-selection h3 {
  font-size: 18px;
  color: #136b76;
  margin-bottom: 20px;
}

.font-radio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 15px;
}

.radio-style-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.radio-style-card:hover, .radio-style-card.active, .radio-style-card:has(input:checked) {
  background: #e6f4f6;
  border-color: #136b76;
}

.radio-style-card input {
  cursor: pointer;
}

.style-preview-text {
  font-size: 17px;
  font-weight: 600;
  color: #1e293b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* --- 2. TRA CỨU PHONG THỦY THEO NĂM SINH --- */
.section-fengshui-quick-card {
  background: linear-gradient(135deg, #136b76 0%, #23393c 100%);
  border-radius: 14px;
  padding: 35px 40px;
  color: #ffffff;
  margin: 40px 0;
  box-shadow: 0 10px 30px rgba(19, 107, 118, 0.25);
}

.badge-gold {
  display: inline-block;
  background: #ffd700;
  color: #23393c;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 12px;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.fengshui-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 25px;
}

.fengshui-banner h2 {
  font-size: 24px;
  color: #ffffff;
  margin-bottom: 6px;
}

.fengshui-quick-form {
  display: flex;
  gap: 10px;
}

.fengshui-quick-form input {
  padding: 12px 20px;
  border-radius: 25px;
  border: none;
  font-size: 16px;
  width: 220px;
  font-weight: 600;
}

.fengshui-result-box, .fengshui-result-panel {
  background: #ffffff;
  color: #333333;
  border-radius: 10px;
  padding: 25px;
  margin-top: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.fs-highlight-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 2px solid #f0f0f0;
}

.fs-meta-item {
  background: #f8fafc;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
}

.fs-meta-item span {
  display: block;
  font-size: 13px;
  color: #64748b;
  margin-bottom: 5px;
}

.fs-meta-item strong {
  font-size: 20px;
  color: #136b76;
}

.fs-detail-p {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 12px;
}

/* 5 Elements Editorial Blocks */
.element-block {
  background: #ffffff;
  border-left: 5px solid #136b76;
  border-radius: 8px;
  padding: 20px 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.element-block.kim { border-left-color: #d4af37; }
.element-block.moc { border-left-color: #2e7d32; }
.element-block.thuy { border-left-color: #0288d1; }
.element-block.hoa { border-left-color: #d32f2f; }
.element-block.tho { border-left-color: #8d6e63; }

.element-block h3 {
  font-size: 18px;
  color: #1e293b;
  margin-bottom: 10px;
}

/* --- 3. KÝ TÀI LIỆU PDF & HỢP ĐỒNG --- */
.signer-app-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 35px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.06);
  margin-bottom: 40px;
}

.drop-zone {
  border: 3px dashed #51b7c5;
  border-radius: 12px;
  padding: 60px 30px;
  text-align: center;
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.2s;
}

.drop-zone:hover {
  background: #e6f4f6;
  border-color: #136b76;
}

.drop-zone h3 {
  font-size: 22px;
  color: #136b76;
  margin: 15px 0 8px 0;
}

.btn-choose-file span {
  display: inline-block;
  background: #136b76;
  color: #ffffff;
  padding: 12px 30px;
  border-radius: 25px;
  font-weight: 700;
  margin-top: 20px;
  cursor: pointer;
}

.signing-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f1f5f9;
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.btn-tool-action {
  padding: 8px 18px;
  border-radius: 6px;
  border: none;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

.btn-add-sig {
  background: #136b76;
  color: #fff;
}

.btn-download-signed {
  background: #ffd700;
  color: #23393c;
}

.btn-change-doc {
  background: #e2e8f0;
  color: #475569;
}

.document-stage-wrap {
  width: 100%;
  min-height: 500px;
  overflow: auto;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #64748b;
  display: flex;
  justify-content: center;
  padding: 20px;
}

.document-canvas-container {
  position: relative;
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.draggable-signature-stamp {
  position: absolute;
  top: 100px;
  left: 100px;
  width: 200px;
  height: 90px;
  border: 2px dashed #0068ff;
  background: rgba(0, 104, 255, 0.05);
  cursor: move;
  z-index: 50;
  user-select: none;
}

.stamp-controls {
  position: absolute;
  top: -24px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  background: #0068ff;
  color: #fff;
  padding: 2px 6px;
  font-size: 11px;
}

.stamp-resize-handle {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 18px;
  height: 18px;
  background: #0068ff;
  color: #fff;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: nwse-resize;
}

.draggable-signature-stamp img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Modal Signature Select */
.modal-signature-select {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-dialog-box {
  background: #ffffff;
  border-radius: 12px;
  max-width: 650px;
  width: 90%;
  padding: 25px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.quick-canvas-pad {
  border: 2px solid #51b7c5;
  border-radius: 8px;
  margin: 15px 0;
  background: #fff;
}

.quick-canvas-pad canvas {
  width: 100%;
  height: 180px;
  display: block;
}

/* --- 4. CHỮ KÝ EMAIL DOANH NHÂN --- */
.email-builder-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 40px;
}

.builder-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.builder-card h2 {
  font-size: 20px;
  color: #136b76;
  margin-bottom: 20px;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 10px;
}

.form-group-field {
  margin-bottom: 15px;
}

.form-group-field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #475569;
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 14px;
}

.email-mockup-frame {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  margin-bottom: 25px;
}

.email-mockup-header {
  background: #f1f5f9;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid #e2e8f0;
}

.mock-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.mock-dot.red { background: #ef4444; }
.mock-dot.yellow { background: #f59e0b; }
.mock-dot.green { background: #10b981; }

.mock-title {
  font-size: 12px;
  color: #64748b;
  margin-left: 10px;
  font-weight: 600;
}

.email-body-content {
  padding: 25px;
}

.mock-email-text {
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 20px;
}

.signature-html-render {
  border-top: 1px solid #e2e8f0;
  padding-top: 20px;
}

.btn-block {
  width: 100%;
  justify-content: center;
  padding: 16px;
  font-size: 16px;
}

.guide-paste-note {
  margin-top: 20px;
  padding: 15px;
  background: #f8fafc;
  border-left: 4px solid #136b76;
  border-radius: 0 6px 6px 0;
  font-size: 13px;
  color: #475569;
}
