/* ============================================
   Wireframe Stylesheet — Balsamiq / Sketch Style
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Architects+Daughter&display=swap');

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 15px;
}

body {
  font-family: 'Architects Daughter', cursive, sans-serif;
  background: #f5f5f0;
  color: #333;
  line-height: 1.5;
  min-height: 100vh;
}

/* ---------- Wireframe container ---------- */
.wf-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
}

.wf-page-wide {
  max-width: 1300px;
  margin: 0 auto;
  padding: 20px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: 'Architects Daughter', cursive, sans-serif;
  font-weight: normal;
}

h1 { font-size: 1.8rem; margin-bottom: 12px; }
h2 { font-size: 1.4rem; margin-bottom: 10px; }
h3 { font-size: 1.15rem; margin-bottom: 8px; }

/* ---------- Spec Labels ---------- */
.spec-label {
  display: inline-block;
  background: #ffe066;
  color: #333;
  font-size: 0.7rem;
  padding: 2px 7px;
  border: 1.5px solid #bbb;
  border-radius: 3px;
  margin-left: 6px;
  vertical-align: middle;
  font-family: monospace;
}

/* ---------- Sketch-style Card / Box ---------- */
.wf-box {
  background: #fff;
  border: 2px solid #888;
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 2px 2px 0 #ccc;
}

.wf-box-dashed {
  background: #fff;
  border: 2px dashed #aaa;
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 16px;
}

/* ---------- Navigation / Header ---------- */
.wf-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border: 2px solid #888;
  border-radius: 6px;
  padding: 12px 20px;
  margin-bottom: 20px;
  box-shadow: 2px 2px 0 #ccc;
}

.wf-header .logo {
  font-size: 1.4rem;
  font-weight: bold;
  letter-spacing: 1px;
}

.wf-header nav {
  display: flex;
  gap: 14px;
}

.wf-header nav a {
  text-decoration: none;
  color: #555;
  padding: 4px 10px;
  border: 1.5px solid transparent;
  border-radius: 4px;
  transition: all 0.15s;
}

.wf-header nav a:hover,
.wf-header nav a.active {
  border-color: #888;
  background: #f0f0ea;
}

/* ---------- Tabs ---------- */
.wf-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
  border-bottom: 2px solid #888;
}

.wf-tab {
  padding: 10px 20px;
  border: 2px solid #888;
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  background: #eee;
  cursor: pointer;
  text-decoration: none;
  color: #555;
  margin-right: -1px;
}

.wf-tab:hover {
  background: #e0e0da;
}

.wf-tab.active {
  background: #fff;
  color: #333;
  font-weight: bold;
  position: relative;
  bottom: -2px;
  margin-bottom: -2px;
  border-bottom: 2px solid #fff;
}

/* ---------- Form Elements ---------- */
.wf-input,
.wf-select,
.wf-textarea {
  font-family: 'Architects Daughter', cursive, sans-serif;
  font-size: 0.95rem;
  padding: 8px 12px;
  border: 2px solid #999;
  border-radius: 5px;
  background: #fff;
  width: 100%;
  color: #333;
}

.wf-textarea {
  resize: vertical;
  min-height: 60px;
}

.wf-input:focus,
.wf-select:focus,
.wf-textarea:focus {
  outline: none;
  border-color: #555;
}

.wf-label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.9rem;
  color: #555;
}

.wf-form-group {
  margin-bottom: 14px;
}

.wf-form-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.wf-form-row > .wf-form-group {
  flex: 1;
  min-width: 200px;
}

/* ---------- Buttons ---------- */
.wf-btn {
  font-family: 'Architects Daughter', cursive, sans-serif;
  font-size: 0.95rem;
  padding: 8px 18px;
  border: 2px solid #888;
  border-radius: 5px;
  cursor: pointer;
  background: #fff;
  color: #333;
  box-shadow: 1px 1px 0 #ccc;
  transition: all 0.1s;
  text-decoration: none;
  display: inline-block;
}

.wf-btn:hover {
  background: #eee;
  box-shadow: 2px 2px 0 #bbb;
}

.wf-btn-primary {
  background: #4a90d9;
  color: #fff;
  border-color: #357abd;
}

.wf-btn-primary:hover {
  background: #357abd;
}

.wf-btn-success {
  background: #5cb85c;
  color: #fff;
  border-color: #4cae4c;
}

.wf-btn-success:hover {
  background: #4cae4c;
}

.wf-btn-danger {
  background: #d9534f;
  color: #fff;
  border-color: #c9302c;
}

.wf-btn-danger:hover {
  background: #c9302c;
}

.wf-btn-warning {
  background: #f0ad4e;
  color: #fff;
  border-color: #eea236;
}

.wf-btn-warning:hover {
  background: #eea236;
}

.wf-btn-sm {
  font-size: 0.8rem;
  padding: 4px 11px;
}

.wf-btn-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ---------- Table ---------- */
.wf-table-wrap {
  overflow-x: auto;
}

.wf-table {
  width: 100%;
  border-collapse: collapse;
  border: 2px solid #888;
  font-size: 0.9rem;
}

.wf-table th,
.wf-table td {
  border: 1.5px solid #aaa;
  padding: 8px 12px;
  text-align: left;
}

.wf-table th {
  background: #eee;
  font-weight: bold;
}

.wf-table tr:nth-child(even) {
  background: #fafaf5;
}

.wf-table tr:hover {
  background: #f0f0ea;
}

/* ---------- Status badges ---------- */
.wf-badge {
  display: inline-block;
  padding: 2px 9px;
  border: 1.5px solid #888;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: bold;
}

.wf-badge-green {
  background: #d4edda;
  color: #155724;
  border-color: #9fcdaa;
}

.wf-badge-red {
  background: #f8d7da;
  color: #721c24;
  border-color: #e8a5ab;
}

.wf-badge-yellow {
  background: #fff3cd;
  color: #856404;
  border-color: #e0c96e;
}

.wf-badge-gray {
  background: #e2e3e5;
  color: #383d41;
  border-color: #bbb;
}

/* ---------- Stats Cards ---------- */
.wf-stats {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.wf-stat-card {
  flex: 1;
  min-width: 140px;
  background: #fff;
  border: 2px solid #888;
  border-radius: 6px;
  padding: 16px;
  text-align: center;
  box-shadow: 2px 2px 0 #ccc;
}

.wf-stat-card .stat-number {
  font-size: 2rem;
  font-weight: bold;
  color: #333;
}

.wf-stat-card .stat-label {
  font-size: 0.85rem;
  color: #777;
  margin-top: 4px;
}

/* ---------- Modal Overlay ---------- */
.wf-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.wf-modal {
  background: #fff;
  border: 2px solid #888;
  border-radius: 8px;
  padding: 24px;
  width: 90%;
  max-width: 550px;
  box-shadow: 4px 4px 0 #bbb;
  max-height: 90vh;
  overflow-y: auto;
}

.wf-modal-lg {
  max-width: 800px;
}

.wf-modal h2 {
  margin-bottom: 16px;
}

.wf-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px;
}

/* ---------- Upload / Dropzone ---------- */
.wf-dropzone {
  border: 2.5px dashed #aaa;
  border-radius: 8px;
  padding: 40px 20px;
  text-align: center;
  color: #888;
  font-size: 1rem;
  cursor: pointer;
  background: #fafaf5;
  margin-bottom: 16px;
}

.wf-dropzone:hover {
  border-color: #666;
  background: #f0f0ea;
}

/* ---------- Color Swatch ---------- */
.wf-color-swatch {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 2px solid #888;
  border-radius: 5px;
  cursor: pointer;
  vertical-align: middle;
}

/* ---------- Preview / Placeholder Boxes ---------- */
.wf-placeholder {
  background: #e8e8e0;
  border: 2px dashed #bbb;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 0.9rem;
  min-height: 80px;
}

/* ---------- Page title row ---------- */
.wf-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Sidebar layout ---------- */
.wf-layout-sidebar {
  display: flex;
  gap: 20px;
}

.wf-sidebar {
  width: 220px;
  flex-shrink: 0;
}

.wf-sidebar-nav {
  list-style: none;
}

.wf-sidebar-nav li a {
  display: block;
  padding: 8px 14px;
  text-decoration: none;
  color: #555;
  border: 1.5px solid transparent;
  border-radius: 4px;
  margin-bottom: 4px;
}

.wf-sidebar-nav li a:hover,
.wf-sidebar-nav li a.active {
  border-color: #888;
  background: #fff;
}

.wf-main {
  flex: 1;
  min-width: 0;
}

/* ---------- Alert / Warning Box ---------- */
.wf-alert {
  padding: 12px 16px;
  border: 2px solid #888;
  border-radius: 5px;
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.wf-alert-warning {
  background: #fff3cd;
  border-color: #d4a017;
  color: #856404;
}

.wf-alert-danger {
  background: #f8d7da;
  border-color: #c9302c;
  color: #721c24;
}

.wf-alert-info {
  background: #d1ecf1;
  border-color: #5bc0de;
  color: #0c5460;
}

.wf-alert-success {
  background: #d4edda;
  border-color: #5cb85c;
  color: #155724;
}

/* ---------- Misc ---------- */
.wf-divider {
  border: none;
  border-top: 2px dashed #ccc;
  margin: 20px 0;
}

.text-muted { color: #999; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.hidden { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .wf-layout-sidebar {
    flex-direction: column;
  }
  .wf-sidebar {
    width: 100%;
  }
  .wf-form-row {
    flex-direction: column;
  }
  .wf-stats {
    flex-direction: column;
  }
}

/* ---------- Print badge preview ---------- */
.wf-badge-preview {
  border: 2px solid #888;
  border-radius: 4px;
  background: #fff;
  padding: 20px;
  width: 320px;
  min-height: 200px;
  margin: 0 auto;
  text-align: center;
  box-shadow: 2px 2px 0 #ccc;
}

.wf-badge-preview .badge-name {
  font-size: 1.6rem;
  font-weight: bold;
  margin-bottom: 6px;
}

.wf-badge-preview .badge-company {
  font-size: 1rem;
  color: #666;
  margin-bottom: 4px;
}

.wf-badge-preview .badge-field {
  font-size: 0.85rem;
  color: #888;
}

/* ---------- Checkbox / Toggle ---------- */
.wf-checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.wf-checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #4a90d9;
}

/* ---------- Annotations / Wireframe Notes ---------- */
.wf-annotation {
  background: #fffde7;
  border: 1.5px solid #e0c96e;
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 0.8rem;
  color: #7a6c00;
  margin-bottom: 12px;
  font-style: italic;
}

/* ---------- Page navigation breadcrumb ---------- */
.wf-breadcrumb {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 12px;
}

.wf-breadcrumb a {
  color: #4a90d9;
  text-decoration: none;
}

.wf-breadcrumb a:hover {
  text-decoration: underline;
}

/* ---------- Public panel specific ---------- */
.wf-public-bg {
  background: #e8e8e0;
  min-height: 100vh;
}

.wf-banner-placeholder {
  width: 100%;
  height: 200px;
  background: #d0d0c8;
  border: 2px dashed #aaa;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.wf-search-bar {
  position: relative;
  margin-bottom: 16px;
}

.wf-search-bar input {
  font-family: 'Architects Daughter', cursive, sans-serif;
  font-size: 1.1rem;
  padding: 12px 16px;
  border: 2.5px solid #888;
  border-radius: 8px;
  width: 100%;
  background: #fff;
}

.wf-search-bar input:focus {
  outline: none;
  border-color: #4a90d9;
}
