/* Fienics Recruiting — shared styles. Brand orange #F66802. */

:root {
    --orange: #F66802;
    --orange-dark: #d65800;
    --orange-light: #fff3e8;
    --grey-50: #fafafa;
    --grey-100: #f4f4f4;
    --grey-200: #e5e5e5;
    --grey-300: #d4d4d4;
    --grey-500: #6b7280;
    --grey-700: #374151;
    --grey-900: #111827;
    --green: #16a34a;
    --red: #dc2626;
    --blue: #2563eb;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--grey-900);
    background: var(--grey-50);
    line-height: 1.5;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Top nav */
.topnav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 24px;
    background: white;
    border-bottom: 1px solid var(--grey-200);
    box-shadow: var(--shadow-sm);
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    color: var(--grey-900);
    text-decoration: none;
}
.brand:hover { color: var(--orange); text-decoration: none; }
.brand-logo {
    height: 28px;
    width: auto;
    display: block;
}
.brand-orange { color: var(--orange); }
.topnav-links { display: flex; gap: 18px; align-items: center; }
.topnav-links a { color: var(--grey-700); font-weight: 500; }
.topnav-links a:hover { color: var(--orange); text-decoration: none; }
.user-pill {
    background: var(--grey-100);
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 13px;
    color: var(--grey-700);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
}

/* Page header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.page-title {
    font-size: 26px;
    font-weight: 600;
    margin: 0;
}

/* Cards */
.card {
    background: white;
    border: 1px solid var(--grey-200);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}

/* Buttons */
.btn, .btn-primary, .btn-secondary, .btn-danger {
    display: inline-block;
    padding: 9px 18px;
    border-radius: 6px;
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s;
}
.btn-primary { background: var(--orange); color: white; border-color: var(--orange); }
.btn-primary:hover { background: var(--orange-dark); border-color: var(--orange-dark); text-decoration: none; }
.btn-secondary { background: white; color: var(--grey-700); border-color: var(--grey-300); }
.btn-secondary:hover { background: var(--grey-100); text-decoration: none; }
.btn-danger { background: var(--red); color: white; border-color: var(--red); }
.btn-block { display: block; width: 100%; }

/* Forms */
.form-row { margin-bottom: 14px; }
.form-row label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--grey-700);
    margin-bottom: 5px;
}
.form-row input[type=text],
.form-row input[type=email],
.form-row input[type=tel],
.form-row input[type=number],
.form-row input[type=password],
.form-row input[type=datetime-local],
.form-row select,
.form-row textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--grey-300);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
}
.form-row textarea { min-height: 90px; resize: vertical; }
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(246, 104, 2, 0.15);
}
.form-row .help { font-size: 12px; color: var(--grey-500); margin-top: 3px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 700px) { .form-grid-2 { grid-template-columns: 1fr; } }

/* Tables */
.tbl {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border: 1px solid var(--grey-200);
    border-radius: 8px;
    overflow: hidden;
}
.tbl th {
    background: var(--orange);
    color: white;
    padding: 10px 14px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
}
.tbl td {
    padding: 10px 14px;
    border-top: 1px solid var(--grey-200);
    font-size: 14px;
}
.tbl tr:hover td { background: var(--grey-50); }

/* Status pills */
.pill {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}
.pill-draft   { background: var(--grey-200); color: var(--grey-700); }
.pill-active  { background: #dcfce7; color: #166534; }
.pill-closed  { background: #fee2e2; color: #991b1b; }
.pill-pending { background: var(--grey-200); color: var(--grey-700); }
.pill-faxed   { background: #dbeafe; color: #1e3a8a; }
.pill-screened_pass { background: #dcfce7; color: #166534; }
.pill-screened_fail { background: #fee2e2; color: #991b1b; }
.pill-booked  { background: var(--orange-light); color: var(--orange-dark); }
.pill-attended { background: #dcfce7; color: #166534; }
.pill-no_show { background: #fef3c7; color: #92400e; }
.pill-cancelled { background: #fee2e2; color: #991b1b; }

/* Alerts */
.alert-error, .alert-success, .alert-info {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 14px;
}
.alert-error   { background: #fee2e2; color: #991b1b; }
.alert-success { background: #dcfce7; color: #166534; }
.alert-info    { background: #dbeafe; color: #1e3a8a; }

/* Login page */
.login-body { background: var(--grey-100); display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.login-card { background: white; padding: 40px; border-radius: 12px; box-shadow: var(--shadow-md); width: 100%; max-width: 400px; }
.login-title { font-size: 28px; font-weight: 600; color: var(--orange); margin: 0 0 4px 0; }
.login-sub { color: var(--grey-500); margin: 0 0 24px 0; font-size: 14px; }
.login-card label { display: block; font-size: 13px; font-weight: 600; color: var(--grey-700); margin-bottom: 5px; margin-top: 12px; }
.login-card input { width: 100%; padding: 10px 12px; border: 1px solid var(--grey-300); border-radius: 6px; font-size: 14px; box-sizing: border-box; }
.login-card input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(246, 104, 2, 0.15); }
.login-card button { margin-top: 20px; padding: 11px; }

/* Footer */
.footer { text-align: center; padding: 20px; color: var(--grey-500); font-size: 13px; }

/* Quick-hit buttons (home page) */
.quickhits { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.quickhit {
    background: white;
    border: 1px solid var(--grey-200);
    border-radius: 8px;
    padding: 18px;
    text-decoration: none;
    color: var(--grey-900);
    transition: all 0.15s;
    display: block;
}
.quickhit:hover {
    border-color: var(--orange);
    box-shadow: 0 4px 8px rgba(246, 104, 2, 0.15);
    text-decoration: none;
}
.quickhit-title { font-weight: 600; margin-bottom: 4px; color: var(--orange); }
.quickhit-desc { font-size: 13px; color: var(--grey-500); }

/* Public signup page */
.signup-body { background: var(--grey-100); min-height: 100vh; padding: 40px 20px; }
.signup-card { max-width: 540px; margin: 0 auto; background: white; padding: 40px; border-radius: 12px; box-shadow: var(--shadow-md); }
.signup-card h1 { color: var(--orange); margin: 0 0 8px 0; }
.locator-input { font-size: 24px !important; letter-spacing: 4px; text-align: center; text-transform: uppercase; font-family: ui-monospace, "Menlo", monospace; }
