/* ==========================================================
   APEX BREEZ CLIENT PORTAL - Navy Blue & Gold Theme
   ========================================================== */

:root {
    --navy: #0B1E3D;
    --navy-light: #152d50;
    --gold: #C5A059;
    --gold-light: #e6c98a;
    --bg: #f4f6f9;
    --white: #ffffff;
    --text: #333333;
    --text-muted: #777777;
}

* { box-sizing: border-box; }
body { font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; background: var(--bg); color: var(--text); margin: 0; padding: 0; }
.hidden { display: none !important; }
.container { max-width: 950px; margin: 0 auto; padding: 20px; }

/* Header */
.main-header { background: var(--navy); padding: 15px 0; box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.header-inner { display: flex; justify-content: space-between; align-items: center; }
.logo a { text-decoration: none; }
.marquee-text { color: var(--gold); font-size: 18px; font-weight: bold; letter-spacing: 1px; text-transform: uppercase; }

/* Cards */
.card { background: var(--white); padding: 30px; border-radius: 8px; box-shadow: 0 4px 20px rgba(11, 30, 61, 0.06); margin-bottom: 25px; border-top: 4px solid var(--gold); }

/* Forms */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 14px; color: var(--navy); }
.form-group input { width: 100%; padding: 14px; border: 1px solid #ddd; border-radius: 4px; font-size: 16px; transition: 0.3s; }
.form-group input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.2); }
.full-width { width: 100%; padding: 14px; font-size: 16px; font-weight: bold; letter-spacing: 0.5px; }
.error-msg { color: #d32f2f; margin-top: 10px; font-size: 14px; font-weight: 500; }

/* Buttons */
.btn-gold { background: linear-gradient(135deg, var(--gold), var(--gold-light)); color: var(--navy); border: none; padding: 12px 24px; border-radius: 4px; cursor: pointer; font-weight: 700; transition: 0.3s; text-transform: uppercase; font-size: 13px; }
.btn-gold:hover { box-shadow: 0 4px 15px rgba(197, 160, 89, 0.4); transform: translateY(-1px); }
.btn-gold:disabled { background: #ccc; color: #666; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-outline { background: transparent; color: var(--navy); border: 2px solid var(--navy); padding: 10px 22px; border-radius: 4px; cursor: pointer; font-weight: 600; transition: 0.3s; font-size: 13px; }
.btn-outline:hover { background: var(--navy); color: var(--white); }

/* Status Dashboard */
.status-bar { background: var(--navy); color: var(--white); padding: 25px 30px; border-radius: 8px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; margin-bottom: 25px; box-shadow: 0 4px 15px rgba(11, 30, 61, 0.2); }
.status-bar .ref-id { color: var(--gold); font-size: 20px; font-weight: bold; }
.status-bar .label { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; opacity: 0.8; }
.btn-logout { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.3); color: var(--white); padding: 8px 16px; border-radius: 4px; cursor: pointer; transition: 0.3s; }
.btn-logout:hover { background: rgba(255,255,255,0.2); }

/* Badges */
.badge { padding: 6px 16px; border-radius: 20px; font-size: 12px; font-weight: bold; color: var(--white); display: inline-block; margin-top: 8px; }
.badge-pending { background: var(--gold); color: var(--navy); }
.badge-reviewed { background: #d32f2f; }
.badge-approved { background: var(--navy); border: 1px solid var(--gold); }

/* Query Box */
.query-box { background: #fff8f4; border-left: 5px solid #d32f2f; border-top: none; }

/* Section & Data Display */
.section-title { font-size: 16px; font-weight: bold; color: var(--navy); border-bottom: 2px solid var(--gold); padding-bottom: 10px; margin: 30px 0 20px 0; display: inline-block; }
.det-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.det-item { display: flex; flex-direction: column; }
.det-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; font-weight: 600; }
.det-value { font-size: 14px; color: var(--text); font-weight: 500; word-break: break-word; }

/* Person Cards */
.person-card { background: var(--bg); border: 1px solid #e0e4ea; border-left: 4px solid var(--gold); border-radius: 6px; padding: 20px; margin-bottom: 20px; }
.person-card-header { font-weight: bold; color: var(--navy); margin-bottom: 15px; font-size: 15px; text-transform: uppercase; letter-spacing: 0.5px; }

/* Edit Grid */
.edit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.edit-field label { display: block; font-size: 11px; color: var(--text-muted); margin-bottom: 4px; text-transform: uppercase; font-weight: 600; }
.edit-field input, .edit-field select { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 4px; box-sizing: border-box; font-size: 14px; }
.edit-field input:focus { outline: none; border-color: var(--gold); }

/* Toast */
.toast { position: fixed; bottom: 30px; right: 30px; background: var(--navy); color: var(--white); padding: 16px 28px; border-radius: 6px; font-size: 14px; opacity: 0; transition: 0.3s; pointer-events: none; z-index: 9999; box-shadow: 0 8px 20px rgba(0,0,0,0.2); }
.toast.show { opacity: 1; }
.toast.success { border-left: 5px solid var(--gold); }
.toast.error { border-left: 5px solid #d32f2f; }

@media (max-width: 600px) {
    .det-grid, .edit-grid { grid-template-columns: 1fr; }
    .status-bar { flex-direction: column; text-align: center; }
}