/* ==============================
   JOB POSTING FORM UI (Enhanced)
============================== */

.uks-job-form-wrapper {
    display: flex;
    justify-content: center;
    margin: 60px 0;
    padding: 0 15px;
}

.uks-job-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 18px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.06);
    max-width: 920px;
    width: 100%;
    transition: 0.3s ease;
}

/* Heading */
.uks-job-card h2 {
    margin-bottom: 6px;
    font-size: 28px;
    font-weight: 700;
    color: #111827;
}

.uks-form-subtitle {
    color: #6b7280;
    margin-bottom: 30px;
    font-size: 15px;
}

/* Section Titles */
.uks-section-title {
    font-size: 15px;
    font-weight: 600;
    margin: 25px 0 12px;
    color: #111827;
}

/* Grid Layout */
.uks-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    margin-bottom: 25px;
}

.uks-form-group {
    display: flex;
    flex-direction: column;
}

.full-width {
    grid-column: 1 / -1;
}

/* Labels */
.uks-form-group label {
    font-size: 13px;
    margin-bottom: 6px;
    color: #374151;
    font-weight: 500;
}

/* Required label hint */
.uks-form-group label .required {
    color: #dc2626;
    font-weight: 600;
    margin-left: 4px;
    font-size: 12px;
}

/* Inputs */
.uks-form-group input,
.uks-form-group textarea,
.uks-form-group select {
    padding: 13px 14px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    font-size: 14px;
    background: #f9fafb;
    transition: all 0.25s ease;
}

/* Focus Effect */
.uks-form-group input:focus,
.uks-form-group textarea:focus,
.uks-form-group select:focus {
    border-color: #111827;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.08);
    outline: none;
}

/* Textarea */
.uks-form-group textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.5;
}

/* Placeholder polish */
.uks-form-group input::placeholder,
.uks-form-group textarea::placeholder {
    color: #9ca3af;
}

/* Optional cards */
.uks-job-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.uks-job-option-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
}

/* Hover */
.uks-job-option-card:hover {
    border-color: #111827;
    background: #f9fafb;
    transform: translateY(-2px);
}

/* Checkbox */
.uks-job-option-card input {
    accent-color: #111827;
    transform: scale(1.05);
}

/* Consent */
.uks-consent {
    display: flex;
    gap: 10px;
    margin: 10px 0 22px;
    font-size: 13px;
    color: #4b5563;
    align-items: flex-start;
}

.uks-consent input {
    margin-top: 3px;
    accent-color: #111827;
}

/* Submit Button */
.uks-submit-btn {
    background: linear-gradient(135deg, #111827, #000000);
    color: #ffffff;
    padding: 15px;
    border-radius: 12px;
    border: none;
    width: 100%;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    letter-spacing: 0.3px;
}

/* Button Hover */
.uks-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Success Message */
.uks-success {
    background: #ecfdf5;
    color: #065f46;
    padding: 14px;
    border-radius: 10px;
    margin-bottom: 22px;
    font-size: 14px;
    border: 1px solid #d1fae5;
}

/* Error Message */
.uks-form-errors {
    background: #fef2f2;
    color: #991b1b;
    padding: 14px;
    border-radius: 10px;
    margin-bottom: 22px;
    font-size: 14px;
    border: 1px solid #fee2e2;
}

/* Job Details spacing */
.uks-form-group.full-width label {
    margin-bottom: 8px;
    /* increase from 6px */
}

.uks-form-group.full-width input,
.uks-form-group.full-width textarea {
    margin-bottom: 18px;
    /* add spacing after input/textarea */
}

/* Responsive */
@media (max-width: 768px) {
    .uks-job-card {
        padding: 28px 22px;
        border-radius: 14px;
    }

    .uks-job-card h2 {
        font-size: 22px;
    }

    .uks-form-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}


/* ===============================
   CLEAN DASHBOARD LAYOUT
================================= */

.uks-dashboard {
    display: flex;
    min-height: 100vh;
    background: #f8fafc;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ===============================
   SIDEBAR (Light & Compact)
================================= */

.uks-sidebar {
    width: 230px;
    background: #ffffff;
    border-right: 1px solid #e5e7eb;
    padding: 20px 15px;
}

.uks-sidebar-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #111827;
}

/* NAV */

.uks-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.uks-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    transition: all 0.2s ease;
}

.uks-nav a:hover {
    background: #f3f4f6;
}

.uks-nav a.active {
    background: #e0ecff;
    color: #2563eb;
    font-weight: 600;
}

.uks-menu-icon {
    width: 16px;
    height: 16px;
    display: flex;
}

.uks-menu-icon svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Logout softer */
.uks-logout-link {
    margin-top: 12px;
    color: #dc2626 !important;
}

.uks-logout-link:hover {
    background: #fee2e2;
}

/* ===============================
   MAIN AREA
================================= */

.uks-main {
    flex: 1;
    padding: 35px 40px;
}

.uks-dashboard-body h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 25px;
    color: #111827;
}

/* ===============================
   WIDGETS
================================= */

.uks-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.uks-widget {
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.uks-widget:hover {
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

.uks-widget-title {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 6px;
}

.uks-widget strong {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
}

/* ===============================
   RESPONSIVE
================================= */

@media (max-width: 900px) {
    .uks-dashboard {
        flex-direction: column;
    }

    .uks-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
    }

    .uks-main {
        padding: 25px;
    }
}




/* ===============================
   TRADE PORTAL AUTH
================================= */

.uks-portal-auth {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    padding: 40px 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Card */
#uks-login-section,
#uks-signup-section {
    width: 100%;
    background: #ffffff;
    padding: 35px;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}

/* Login width */
#uks-login-section {
    max-width: 420px;
}

/* Signup wider */
#uks-signup-section {
    max-width: 600px;
}

/* Heading */
.uks-portal-auth h3 {
    margin-bottom: 25px;
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    text-align: center;
}

/* Form Layout */
.uks-portal-auth form p {
    margin-bottom: 16px;
}

/* Labels */
.uks-portal-auth label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
    color: #374151;
}

/* Inputs */
.uks-portal-auth input[type="text"],
.uks-portal-auth input[type="email"],
.uks-portal-auth input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 14px;
    transition: all 0.2s ease;
    background: #ffffff;
}

.uks-portal-auth input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Button */
.uks-portal-auth button {
    width: 100%;
    padding: 11px;
    border-radius: 8px;
    border: none;
    background: #2563eb;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.uks-portal-auth button:hover {
    background: #1e40af;
}

/* Toggle Links */
.uks-portal-auth a {
    display: inline-block;
    margin-top: 10px;
    font-size: 13px;
    text-align: center;
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.uks-portal-auth a:hover {
    text-decoration: underline;
}

/* Checkbox Group */
.uks-portal-auth input[type="checkbox"] {
    margin-right: 6px;
}

.uks-portal-auth label input[type="checkbox"]+span {
    font-weight: 400;
}

/* Trade Specialist Block */
.uks-portal-auth p br {
    display: none;
}

/* Make trade specialist checkboxes cleaner */
.uks-portal-auth p label input[type="checkbox"] {
    accent-color: #2563eb;
}

.uks-portal-auth p label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    font-weight: 400;
}

/* Make signup form grid */
.uks-trade-signup-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 20px;
}

/* Make full-width fields */
.uks-trade-signup-form p:nth-last-child(2),
.uks-trade-signup-form p:last-child,
.uks-trade-signup-form p:nth-child(6) {
    grid-column: span 2;
}

/* Make trade specialist section full width */
.uks-trade-signup-form p:nth-child(6) {
    grid-column: span 2;
}

/* Responsive */
@media (max-width: 768px) {
    .uks-trade-signup-form {
        grid-template-columns: 1fr;
    }
}

/* Responsive */
@media (max-width: 480px) {

    #uks-login-section,
    #uks-signup-section {
        padding: 25px;
    }
}