/* ============================================================
   HIRE Eastern Visayas – PESO Profile Manager
   Frontend Stylesheet v2.0
   Design system tokens match the HIRE EV site palette.
   ============================================================ */

:root {
    --hire-blue:       #0055cc;
    --hire-blue-hover: #0044aa;
    --hire-blue-light: #e8f0fe;
    --hire-accent:     #f7c72f;
    --hire-accent-dark:#d4a800;
    --hire-dark:       #111827;
    --hire-darker:     #0d1117;
    --hire-white:      #ffffff;
    --hire-gray-50:    #f9fafb;
    --hire-gray-100:   #f3f4f6;
    --hire-gray-200:   #e5e7eb;
    --hire-gray-300:   #d1d5db;
    --hire-gray-400:   #9ca3af;
    --hire-gray-500:   #6b7280;
    --hire-gray-600:   #4b5563;
    --hire-gray-700:   #374151;
    --hire-gray-900:   #111827;
    --hire-success:    #10b981;
    --hire-danger:     #ef4444;
    --hire-font:       -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --hire-radius:     10px;
    --hire-radius-lg:  16px;
    --hire-shadow:     0 1px 3px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.05);
    --hire-shadow-lg:  0 8px 32px rgba(0,0,0,0.12);
}

/* ============================================================
   1. SHARED UTILITIES
   ============================================================ */

.peso-hide-header header,
.peso-hide-header .elementor-element-8f12c18 {
    display: none !important;
}
#content > header,#uicore-tb-footer > div > div > div > div.elementor-element.elementor-element-8f12c18.e-con-full.e-flex.e-con.e-child{
    display: none;
}
.peso-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 22px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: var(--hire-radius);
    cursor: pointer;
    transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
    text-decoration: none;
    font-family: var(--hire-font);
    letter-spacing: 0.3px;
}
.peso-btn:active { transform: scale(0.98); }

.peso-btn-primary {
    background: var(--hire-blue);
    color: var(--hire-white);
    box-shadow: 0 2px 8px rgba(0,85,204,0.25);
}
.peso-btn-primary:hover {
    background: var(--hire-blue-hover);
    box-shadow: 0 4px 14px rgba(0,85,204,0.35);
    color: var(--hire-white);
}

.peso-btn-outline {
    background: var(--hire-white);
    color: var(--hire-blue);
    border: 2px solid var(--hire-blue);
}
.peso-btn-outline:hover {
    background: var(--hire-blue);
    color: var(--hire-white);
}

.peso-btn-accent {
    background: var(--hire-accent);
    color: var(--hire-dark);
    box-shadow: 0 2px 8px rgba(247,199,47,0.35);
}
.peso-btn-accent:hover {
    background: var(--hire-accent-dark);
    box-shadow: 0 4px 14px rgba(247,199,47,0.45);
}

.peso-alert {
    padding: 14px 18px;
    border-radius: var(--hire-radius);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
}
.peso-alert-success {
    background: #d1fae5;
    color: #065f46;
    border-left: 4px solid var(--hire-success);
}
.peso-alert-error {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid var(--hire-danger);
}

/* ============================================================
   2. LOGIN FORM
   ============================================================ */

.peso-login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: 20px;
    background: var(--hire-gray-50);
}

.peso-login-box {
    background: var(--hire-white);
    border-radius: var(--hire-radius-lg);
    padding: 44px 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--hire-shadow-lg);
    font-family: var(--hire-font);
}

.peso-login-logo {
    text-align: center;
    margin-bottom: 10px;
}
.peso-login-logo-badge {
    display: inline-block;
    background: var(--hire-dark);
    color: var(--hire-accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2.5px;
    padding: 6px 16px;
    border-radius: 20px;
    text-transform: uppercase;
}

.peso-login-box h2 {
    text-align: center;
    color: var(--hire-dark);
    font-size: 22px;
    margin: 12px 0 4px;
    font-weight: 700;
    font-family: var(--hire-font);
}
.peso-login-box .peso-login-subtext {
    text-align: center;
    color: var(--hire-gray-500);
    font-size: 14px;
    margin-bottom: 28px;
}

.peso-form-group {
    margin-bottom: 18px;
}
.peso-form-group label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--hire-gray-600);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.peso-form-group input[type="text"],
.peso-form-group input[type="email"],
.peso-form-group input[type="password"],
.peso-form-group input[type="number"],
.peso-form-group textarea,
.peso-form-group select {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--hire-gray-200);
    border-radius: 8px;
    font-size: 14px;
    font-family: var(--hire-font);
    color: var(--hire-gray-900);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    background: var(--hire-white);
}
.peso-form-group input:focus,
.peso-form-group textarea:focus,
.peso-form-group select:focus {
    border-color: var(--hire-blue);
    box-shadow: 0 0 0 3px rgba(0,85,204,0.1);
}
.peso-form-group textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.5;
}

.peso-login-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--hire-gray-600);
    margin-bottom: 22px;
    cursor: pointer;
}

.peso-forgot-link {
    display: block;
    text-align: center;
    margin-top: 18px;
    font-size: 13px;
    color: var(--hire-blue);
    text-decoration: none;
}
.peso-forgot-link:hover { text-decoration: underline; }

/* ============================================================
   3. PROFILE EDITOR FORM
   ============================================================ */

.peso-form-wrapper {
    max-width: 820px;
    margin: 0 auto;
    font-family: var(--hire-font);
    padding-bottom: 40px;
}

.peso-form-section-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--hire-blue);
    border-bottom: 2px solid var(--hire-blue-light);
    padding-bottom: 8px;
    margin: 28px 0 18px;
}

.peso-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.peso-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}
@media (max-width: 640px) {
    .peso-row, .peso-row-3 { grid-template-columns: 1fr; }
}

.peso-checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: var(--hire-gray-50);
    border: 1.5px solid var(--hire-gray-200);
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s;
}
.peso-checkbox-group:hover { border-color: var(--hire-blue); }
.peso-checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--hire-blue);
    cursor: pointer;
    flex-shrink: 0;
}
.peso-checkbox-group .check-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--hire-gray-700);
}

.peso-profile-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--hire-gray-200);
}

/* ============================================================
   4. PUBLIC PROFILE PAGE (Facebook-style)
   ============================================================ */

.peso-profile-container {
    max-width: 900px;
    margin: 100px auto 40px;
    background: var(--hire-gray-100);
    font-family: var(--hire-font);
    border-radius: var(--hire-radius);
    overflow: hidden;
    box-shadow: var(--hire-shadow-lg);
}

.peso-cover {
    height: 320px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.peso-header-content {
    background: var(--hire-white);
    padding: 70px 30px 24px;
    border-bottom: 1px solid var(--hire-gray-200);
    position: relative;
    text-align: center;
}

.peso-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 4px solid var(--hire-white);
    object-fit: cover;
    box-shadow: var(--hire-shadow);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: -70px;
    background: var(--hire-white);
}

.peso-title-area h1 {
    margin: 0 0 4px;
    font-size: 26px;
    color: var(--hire-dark);
    font-weight: 700;
}
.peso-title-area p {
    color: var(--hire-gray-500);
    font-size: 14px;
    margin: 0;
    font-weight: 500;
}

.peso-body {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 20px;
    padding: 20px;
}
@media (max-width: 768px) {
    .peso-body { grid-template-columns: 1fr; }
}

.peso-card {
    background: var(--hire-white);
    border-radius: var(--hire-radius);
    padding: 20px;
    box-shadow: var(--hire-shadow);
    margin-bottom: 20px;
}
.peso-card h3 {
    margin: 0 0 14px;
    font-size: 15px;
    font-weight: 700;
    color: var(--hire-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--hire-gray-100);
}

.peso-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.peso-info-list li {
    padding: 9px 0;
    border-bottom: 1px solid var(--hire-gray-100);
    color: var(--hire-gray-700);
    display: flex;
    align-items: flex-start;
    font-size: 13px;
    gap: 8px;
}
.peso-info-list li:last-child { border-bottom: none; }
.peso-info-list li strong {
    min-width: 90px;
    color: var(--hire-gray-500);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding-top: 1px;
    flex-shrink: 0;
}

.peso-announcement {
    background: var(--hire-blue-light);
    color: var(--hire-blue);
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-weight: 500;
    font-size: 14px;
    border-left: 3px solid var(--hire-blue);
    line-height: 1.45;
}

.peso-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 8px;
}
.peso-gallery-grid img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--hire-gray-200);
    transition: opacity 0.2s, transform 0.15s;
}
.peso-gallery-grid img:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

.peso-map-frame {
    width: 100%;
    height: 220px;
    border: none;
    border-radius: 8px;
    margin-top: 4px;
}
.peso-map-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 10px;
    font-size: 13px;
    color: var(--hire-blue);
    text-decoration: none;
    font-weight: 600;
}
.peso-map-link:hover { text-decoration: underline; }

/* ============================================================
   5. PESO DIRECTORY
   ============================================================ */

.peso-directory-wrapper {
    max-width: 1600px;
    margin: 40px auto;
    font-family: var(--hire-font);
}

.peso-dir-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--hire-white);
    border-radius: var(--hire-radius);
    box-shadow: var(--hire-shadow);
}

.peso-dir-filters strong {
    font-size: 13px;
    color: var(--hire-gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.peso-dir-filters select,
.peso-dir-filters input[type="text"] {
    padding: 9px 12px;
    border-radius: 8px;
    border: 1.5px solid var(--hire-gray-200);
    font-size: 14px;
    font-family: var(--hire-font);
    min-width: 160px;
    outline: none;
    transition: border-color 0.2s;
    background: var(--hire-white);
}
.peso-dir-filters select:focus,
.peso-dir-filters input[type="text"]:focus {
    border-color: var(--hire-blue);
}

.peso-dir-map {
    width: 100%;
    height: 420px;
    border-radius: var(--hire-radius);
    overflow: hidden;
    box-shadow: var(--hire-shadow);
    margin-bottom: 24px;
}

.peso-dir-list {
    background: var(--hire-white);
    border-radius: var(--hire-radius);
    box-shadow: var(--hire-shadow);
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 16px;
}

.peso-dir-item {
    border: 1.5px solid var(--hire-gray-200);
    border-radius: var(--hire-radius);
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    transition: box-shadow 0.2s, transform 0.15s, border-color 0.2s;
    cursor: pointer;
}
.peso-dir-item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transform: translateY(-2px);
    border-color: var(--hire-blue);
}

.peso-dir-item-title {
    font-weight: 700;
    font-size: 15px;
    color: var(--hire-dark);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.peso-dir-meta {
    font-size: 13px;
    color: var(--hire-gray-500);
    line-height: 1.4;
}

.peso-dir-link {
    font-size: 13px;
    color: var(--hire-blue);
    text-decoration: none;
    margin-top: 4px;
    font-weight: 600;
}
.peso-dir-link:hover { text-decoration: underline; }

.peso-dir-badge {
    display: inline-block;
    background: var(--hire-blue-light);
    color: var(--hire-blue);
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 600px) {
    .peso-dir-filters { flex-direction: column; align-items: flex-start; }
    .peso-dir-map { height: 300px; }
}

/* ============================================================
   6. DASHBOARD – TABS & LAYOUT
   ============================================================ */

.peso-dash-wrapper {
    max-width: 1100px;
    margin: 30px auto 60px;
    font-family: var(--hire-font);
}

/* Top bar with office name + logout */
.peso-dash-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 0 4px;
    flex-wrap: wrap;
    gap: 10px;
}
.peso-dash-topbar .dash-greeting {
    font-size: 20px;
    font-weight: 700;
    color: var(--hire-dark);
}
.peso-dash-topbar .dash-greeting span {
    color: var(--hire-blue);
}

/* Tab strip */
.peso-dash-tabs {
    display: flex;
    border-bottom: 2px solid var(--hire-gray-200);
    gap: 2px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 0;
}
.peso-dash-tabs::-webkit-scrollbar { display: none; }

.peso-dash-tab {
    padding: 11px 20px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: var(--hire-gray-500);
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: color 0.2s, border-color 0.2s;
    display: flex;
    align-items: center;
    gap: 7px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    user-select: none;
}
.peso-dash-tab svg {
    width: 15px;
    height: 15px;
    opacity: 0.6;
    transition: opacity 0.2s;
}
.peso-dash-tab:hover {
    color: var(--hire-blue);
}
.peso-dash-tab.active {
    color: var(--hire-blue);
    border-bottom-color: var(--hire-blue);
}
.peso-dash-tab.active svg { opacity: 1; }

/* Tab content panel */
.peso-dash-content {
    padding: 24px 0 0;
}
.peso-dash-panel {
    display: none;
    animation: panelFadeIn 0.2s ease;
}
.peso-dash-panel.active { display: block; }

@keyframes panelFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   7. DASHBOARD – MONITORING TAB
   ============================================================ */

.peso-monitor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.peso-stat-card {
    background: var(--hire-dark);
    border-radius: var(--hire-radius);
    padding: 18px 20px;
    position: relative;
    overflow: hidden;
}
.peso-stat-card::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
}

.peso-stat-card .stat-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 8px;
}
.peso-stat-card .stat-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--hire-accent);
    line-height: 1;
    margin-bottom: 4px;
}
.peso-stat-card .stat-sub {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
}

.peso-chart-placeholder {
    height: 200px;
    border-radius: var(--hire-radius);
    border: 2px dashed var(--hire-gray-200);
    background: var(--hire-gray-50);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--hire-gray-400);
    font-size: 14px;
    gap: 8px;
}
.peso-chart-placeholder svg {
    width: 32px;
    height: 32px;
    opacity: 0.3;
}

/* ============================================================
   8. DASHBOARD – JOB FORMS (Find Job + Add Vacancy)
   ============================================================ */

.peso-job-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-top: 10px;
}

/* ============================================================
   9. DASHBOARD – MESSAGES / INBOX
   ============================================================ */

.peso-msg-list {
    border: 1.5px solid var(--hire-gray-200);
    border-radius: var(--hire-radius);
    overflow: hidden;
    margin-top: 10px;
}
.peso-msg-item {
    padding: 14px 18px;
    border-bottom: 1px solid var(--hire-gray-100);
    transition: background 0.15s;
}
.peso-msg-item:last-child { border-bottom: none; }
.peso-msg-item:hover { background: var(--hire-gray-50); }

.peso-msg-sender {
    font-weight: 700;
    font-size: 14px;
    color: var(--hire-dark);
    margin-bottom: 2px;
}
.peso-msg-meta {
    font-size: 12px;
    color: var(--hire-gray-400);
    margin-bottom: 5px;
}
.peso-msg-preview {
    font-size: 13px;
    color: var(--hire-gray-600);
    line-height: 1.4;
}

.peso-inbox-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--hire-gray-400);
    font-size: 14px;
}

/* ============================================================
   10. RESPONSIVE TWEAKS
   ============================================================ */

@media (max-width: 768px) {
    .peso-login-box { padding: 30px 24px; }
    .peso-dash-tab { padding: 10px 14px; font-size: 12px; }
    .peso-monitor-grid { grid-template-columns: 1fr 1fr; }
    .peso-stat-card .stat-value { font-size: 26px; }
}

@media (max-width: 480px) {
    .peso-monitor-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   11. INBOX – UNREAD STATES & ACTION BUTTONS  (v2.1)
   ============================================================ */

.peso-msg-item.peso-msg-unread {
    background: #f0f6ff;
    border-left: 3px solid var(--hire-blue);
}

.peso-unread-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--hire-blue);
    border-radius: 50%;
    margin-right: 6px;
    flex-shrink: 0;
    vertical-align: middle;
    position: relative;
    top: -1px;
}

/* Unread count badge on Messages tab */
.peso-unread-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--hire-blue);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    line-height: 1;
    margin-left: 4px;
}

/* Small icon-only action buttons inside message rows */
.peso-msg-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1.5px solid var(--hire-gray-200);
    border-radius: 6px;
    background: var(--hire-white);
    cursor: pointer;
    color: var(--hire-gray-400);
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    flex-shrink: 0;
}
.peso-mark-read-btn:hover {
    background: #d1fae5;
    color: #065f46;
    border-color: #10b981;
}
.peso-delete-msg-btn:hover {
    background: #fee2e2;
    color: #991b1b;
    border-color: var(--hire-danger);
}

/* ============================================================
   12. SPINNER KEYFRAME  (used in contact form submit button)
   ============================================================ */

@keyframes pesoSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ============================================================
   13. FIND JOB SPINNER  (v2.2)
   ============================================================ */
.peso-fj-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--hire-gray-100);
    border-top-color: var(--hire-blue);
    border-radius: 50%;
    animation: pesoSpin 0.8s linear infinite;
    margin: 0 auto;
}