/* =========================================================
   NectarLink Platform — Main Styles
   ========================================================= */

:root {
    --nl-primary:    #f59e0b;
    --nl-primary-dk: #d97706;
    --nl-secondary:  #1e3a5f;
    --nl-success:    #10b981;
    --nl-danger:     #ef4444;
    --nl-warning:    #f59e0b;
    --nl-muted:      #6b7280;
    --nl-light:      #f9fafb;
    --nl-border:     #e5e7eb;
    --nl-radius:     10px;
    --nl-shadow:     0 2px 12px rgba(0,0,0,0.08);
    --nl-font:       'Inter', -apple-system, sans-serif;
}

/* BASE */
.nl-container { max-width: 1100px; margin: 40px auto; padding: 0 20px; font-family: var(--nl-font); color: #1f2937; }
.nl-auth-container { max-width: 500px; }

/* CARDS */
.nl-card { background: #fff; border: 1px solid var(--nl-border); border-radius: var(--nl-radius); padding: 32px; box-shadow: var(--nl-shadow); }

/* LOGO */
.nl-logo { text-align: center; margin-bottom: 16px; }
.nl-logo h1 { font-size: 28px; font-weight: 800; color: var(--nl-secondary); margin: 0; }
.nl-logo h1 span { color: var(--nl-primary); }
.nl-card h2 { text-align: center; margin: 0 0 24px; font-size: 20px; color: var(--nl-secondary); }
.nl-subtitle { text-align: center; color: var(--nl-muted); margin: -16px 0 20px; font-size: 14px; }

/* FORMS */
.nl-form { display: flex; flex-direction: column; gap: 16px; }
.nl-field { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.nl-field-grow { flex: 2; }
.nl-field-row { display: flex; gap: 16px; flex-wrap: wrap; }
.nl-field label { font-size: 13px; font-weight: 600; color: #374151; }
.nl-field label small { font-weight: 400; color: var(--nl-muted); }
.nl-field input,
.nl-field select,
.nl-field textarea,
.nl-input {
    padding: 10px 14px;
    border: 1.5px solid var(--nl-border);
    border-radius: 8px;
    font-size: 14px;
    color: #1f2937;
    background: #fff;
    transition: border-color .2s;
    font-family: var(--nl-font);
    width: 100%;
    box-sizing: border-box;
}
.nl-field input:focus,
.nl-field select:focus,
.nl-field textarea:focus,
.nl-input:focus { outline: none; border-color: var(--nl-primary); }
.nl-field textarea { resize: vertical; }
.nl-form-actions { display: flex; gap: 12px; align-items: center; margin-top: 8px; }

/* BUTTONS */
.nl-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 22px; border-radius: 8px; font-size: 14px; font-weight: 600;
    cursor: pointer; border: none; transition: all .2s; text-decoration: none;
    font-family: var(--nl-font);
}
.nl-btn-primary  { background: var(--nl-primary); color: #fff; }
.nl-btn-primary:hover { background: var(--nl-primary-dk); color: #fff; }
.nl-btn-outline  { background: transparent; border: 1.5px solid var(--nl-border); color: #374151; }
.nl-btn-outline:hover { border-color: var(--nl-secondary); color: var(--nl-secondary); }
.nl-btn-danger   { background: var(--nl-danger); color: #fff; }
.nl-btn-danger:hover { background: #dc2626; }
.nl-btn-full     { width: 100%; }
.nl-btn-sm       { padding: 6px 14px; font-size: 13px; }
.nl-btn:disabled { opacity: .6; cursor: not-allowed; }

/* MESSAGES */
.nl-message { padding: 12px 16px; border-radius: 8px; font-size: 14px; margin-bottom: 16px; }
.nl-success  { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.nl-error    { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* BADGES */
.nl-badge         { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.nl-badge-success { background: #ecfdf5; color: #065f46; }
.nl-badge-warning { background: #fffbeb; color: #92400e; }
.nl-badge-muted   { background: #f3f4f6; color: #6b7280; }

/* INFO BOX */
.nl-info-box { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 8px; padding: 12px 16px; font-size: 13px; color: #1e40af; }

/* AUTH LINKS */
.nl-auth-links { text-align: center; margin-top: 24px; font-size: 14px; color: var(--nl-muted); }
.nl-auth-links a { color: var(--nl-primary); font-weight: 600; text-decoration: none; }
.nl-auth-links a:hover { text-decoration: underline; }

/* DASHBOARD HEADER */
.nl-dashboard-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 28px; gap: 16px; flex-wrap: wrap; }
.nl-dashboard-header h1 { font-size: 26px; font-weight: 800; color: var(--nl-secondary); margin: 0 0 4px; }
.nl-header-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* STATS */
.nl-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-bottom: 32px; }
.nl-stat-card { background: #fff; border: 1px solid var(--nl-border); border-radius: var(--nl-radius); padding: 20px; text-align: center; box-shadow: var(--nl-shadow); }
.nl-stat-number { display: block; font-size: 32px; font-weight: 800; color: var(--nl-secondary); }
.nl-stat-label  { display: block; font-size: 13px; color: var(--nl-muted); margin-top: 4px; }

/* TABS */
.nl-tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--nl-border); margin-bottom: 28px; }
.nl-tab { padding: 10px 22px; background: none; border: none; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--nl-muted); border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all .2s; font-family: var(--nl-font); }
.nl-tab.active, .nl-tab:hover { color: var(--nl-primary); border-bottom-color: var(--nl-primary); }
.nl-tab-content { display: none; }
.nl-tab-content.active { display: block; }

/* SECTION HEADER */
.nl-section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.nl-section-header h2 { font-size: 18px; color: var(--nl-secondary); margin: 0; }

/* TABLE */
.nl-table-wrap { overflow-x: auto; }
.nl-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.nl-table th { text-align: left; padding: 10px 14px; background: var(--nl-light); border-bottom: 2px solid var(--nl-border); font-size: 12px; text-transform: uppercase; color: var(--nl-muted); font-weight: 700; }
.nl-table td { padding: 12px 14px; border-bottom: 1px solid var(--nl-border); vertical-align: middle; }
.nl-table tbody tr:hover { background: var(--nl-light); }
.nl-table code { background: #f3f4f6; padding: 3px 7px; border-radius: 4px; font-size: 12px; }

/* CATALOG GRID */
.nl-catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.nl-exp-card { background: #fff; border: 1px solid var(--nl-border); border-radius: var(--nl-radius); box-shadow: var(--nl-shadow); display: flex; flex-direction: column; overflow: hidden; transition: box-shadow .2s; }
.nl-exp-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.12); }
.nl-exp-card-body { padding: 20px; flex: 1; }
.nl-exp-operator { font-size: 11px; font-weight: 700; color: var(--nl-primary); text-transform: uppercase; letter-spacing: .5px; }
.nl-exp-title { font-size: 16px; font-weight: 700; color: var(--nl-secondary); margin: 6px 0 8px; }
.nl-exp-desc { font-size: 13px; color: var(--nl-muted); line-height: 1.5; margin: 0 0 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nl-exp-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--nl-muted); }
.nl-exp-card-footer { padding: 16px 20px; border-top: 1px solid var(--nl-border); background: var(--nl-light); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.nl-exp-pricing { display: flex; flex-direction: column; gap: 2px; }
.nl-exp-price { font-size: 20px; font-weight: 800; color: var(--nl-secondary); }
.nl-exp-price small { font-size: 13px; font-weight: 400; color: var(--nl-muted); }
.nl-exp-commission { font-size: 12px; color: var(--nl-success); font-weight: 600; }

/* SEARCH */
.nl-search-wrap { display: flex; gap: 8px; }
.nl-search-wrap .nl-input { min-width: 220px; }

/* BOOKING SUMMARY */
.nl-booking-summary { background: #f0fdf4; border: 1px solid #a7f3d0; border-radius: 8px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.nl-summary-row { display: flex; justify-content: space-between; font-size: 14px; }
.nl-summary-commission { color: var(--nl-success); font-weight: 600; }

/* MODAL */
.nl-modal { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 20px; }
.nl-modal-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.5); }
.nl-modal-content { position: relative; background: #fff; border-radius: 12px; padding: 32px; max-width: 600px; width: 100%; max-height: 90vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,0.2); }
.nl-modal-close { position: absolute; top: 16px; right: 16px; background: none; border: none; font-size: 18px; cursor: pointer; color: var(--nl-muted); }
.nl-modal-content h3 { font-size: 20px; color: var(--nl-secondary); margin: 0 0 20px; }

/* MISC */
.nl-empty-state { text-align: center; padding: 48px 20px; color: var(--nl-muted); }
.nl-empty-state p { font-size: 16px; margin-bottom: 20px; }
.nl-loading { text-align: center; padding: 32px; color: var(--nl-muted); }
.nl-empty { text-align: center; padding: 32px; color: var(--nl-muted); }

/* RESPONSIVE */
@media (max-width: 600px) {
    .nl-field-row { flex-direction: column; }
    .nl-dashboard-header { flex-direction: column; }
    .nl-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .nl-catalog-grid { grid-template-columns: 1fr; }
    .nl-modal-content { padding: 20px; }
    .nl-section-header { flex-direction: column; align-items: flex-start; }
}
