.jobsnap-wrapper {
    direction: rtl;
    text-align: right;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    max-width: 1100px;
    margin: 2rem auto;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}
.jobsnap-header {
    margin-bottom: 1.75rem;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 1rem;
}
.jobsnap-title {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 700;
    color: #0f172a;
}
.jobsnap-subtitle {
    margin: 0.35rem 0 0;
    font-size: 0.95rem;
    color: #64748b;
}
.jobsnap-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
    gap: 1.5rem;
}
@media (max-width: 900px) {
    .jobsnap-grid {
        grid-template-columns: 1fr;
    }
}
.jobsnap-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 8px 20px rgba(148, 163, 184, 0.12);
    border: 1px solid #e2e8f0;
}
.jobsnap-section-title {
    margin: 0 0 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #0f172a;
}
.jobsnap-form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.jobsnap-filter-form {
    margin-bottom: 1.5rem;
}
.jobsnap-field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.jobsnap-field-inline {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}
@media (max-width: 768px) {
    .jobsnap-field-inline {
        grid-template-columns: 1fr;
    }
}
.jobsnap-field label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #475569;
}
.jobsnap-field input[type="text"],
.jobsnap-field input[type="date"],
.jobsnap-field input[type="email"],
.jobsnap-field input[type="password"],
.jobsnap-field select,
.jobsnap-field textarea {
    border-radius: 10px;
    border: 1px solid #cbd5f5;
    padding: 0.55rem 0.7rem;
    font-size: 0.9rem;
    outline: none;
    background-color: #f9fafb;
    transition: all 0.18s ease;
}
.jobsnap-field textarea {
    resize: vertical;
    min-height: 90px;
}
.jobsnap-field input:focus,
.jobsnap-field select:focus,
.jobsnap-field textarea:focus {
    background-color: #ffffff;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 1px rgba(14, 165, 233, 0.4);
}
.jobsnap-actions {
    margin-top: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.jobsnap-button {
    border-radius: 999px;
    padding: 0.45rem 1.1rem;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.jobsnap-button-primary {
    background: linear-gradient(135deg, #0ea5e9, #22c55e);
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(14, 165, 233, 0.35);
}
.jobsnap-button-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(14, 165, 233, 0.5);
}
.jobsnap-button-ghost {
    background: #f8fafc;
    color: #0f172a;
    border: 1px solid #cbd5f5;
    padding-inline: 0.9rem;
}
.jobsnap-button-ghost:hover {
    background: #e2e8f0;
}
.jobsnap-job-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}
.jobsnap-job-list-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}
@media (max-width: 900px) {
    .jobsnap-job-list-grid {
        grid-template-columns: 1fr;
    }
}
.jobsnap-job-item {
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    padding: 0.9rem 1rem;
    box-shadow: 0 8px 20px rgba(148, 163, 184, 0.12);
}
.jobsnap-job-card {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
.jobsnap-job-main {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}
.jobsnap-job-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
}
.jobsnap-job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    font-size: 0.8rem;
    color: #6b7280;
}
.jobsnap-job-meta span {
    background: #f1f5f9;
    border-radius: 999px;
    padding: 0.1rem 0.6rem;
}
.jobsnap-job-excerpt {
    font-size: 0.85rem;
    color: #4b5563;
    line-height: 1.6;
}
.jobsnap-job-actions {
    margin-top: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}
.jobsnap-inline-form {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.3rem;
}
.jobsnap-inline-form select {
    border-radius: 999px;
    padding: 0.25rem 0.6rem;
    font-size: 0.8rem;
}
.jobsnap-app-list {
    list-style: none;
    padding: 0.4rem 0 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}
.jobsnap-app-item {
    padding: 0.35rem 0.45rem;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px dashed #cbd5f5;
}
.jobsnap-app-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    margin-bottom: 0.2rem;
}
.jobsnap-app-student {
    font-weight: 600;
    color: #0f172a;
}
.jobsnap-app-status {
    font-size: 0.8rem;
    color: #64748b;
}
.jobsnap-message {
    margin-bottom: 0.75rem;
    border-radius: 12px;
    padding: 0.7rem 0.9rem;
    font-size: 0.85rem;
}
.jobsnap-success {
    background: #ecfdf3;
    border: 1px solid #4ade80;
    color: #166534;
}
.jobsnap-error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #b91c1c;
}
.jobsnap-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    background: #e0f2fe;
    color: #0369a1;
    font-size: 0.8rem;
    font-weight: 500;
}
.jobsnap-empty {
    font-size: 0.9rem;
    color: #6b7280;
}
.jobsnap-auth .jobsnap-card-auth {
    max-width: 640px;
    margin: 0 auto;
}


/* ===== ملف الطالب الشخصي – JobSnap ===== */
.jobsnap-student-profile .jobsnap-card-profile {
    margin-top: 1rem;
}

.jobsnap-card-progress {
    margin-bottom: 1.25rem;
}

.jobsnap-progress-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.4rem;
}

.jobsnap-progress-label {
    font-size: 0.9rem;
    color: #475569;
    font-weight: 500;
}

.jobsnap-progress-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #0f172a;
}

.jobsnap-progress-bar {
    position: relative;
    width: 100%;
    height: 0.55rem;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
    margin-bottom: 0.35rem;
}

.jobsnap-progress-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(135deg, #22c55e, #0ea5e9);
    transition: width 0.25s ease;
}

.jobsnap-progress-hint {
    margin: 0;
    font-size: 0.8rem;
    color: #64748b;
}

.jobsnap-divider {
    border: 0;
    border-top: 1px dashed #e2e8f0;
    margin: 1.25rem 0;
}

.jobsnap-chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.jobsnap-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    font-size: 0.8rem;
    color: #334155;
    cursor: pointer;
    transition: background 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.jobsnap-chip input[type="checkbox"] {
    width: auto;
    accent-color: #0ea5e9;
}

.jobsnap-chip:hover {
    background: #e0f2fe;
    border-color: #bae6fd;
    box-shadow: 0 4px 10px rgba(148, 163, 184, 0.35);
}



/* عرض تقييم الطالب داخل لوحة الجهة */
.jobsnap-rating-display {
    margin: 6px 0;
    padding: 8px 10px;
    border-radius: 10px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    font-size: 13px;
}

.jobsnap-rating-label {
    margin-inline-end: 4px;
    color: #4b5563;
}

.jobsnap-rating-stars {
    color: #f59e0b;
    font-weight: 600;
}

.jobsnap-rating-note {
    margin: 4px 0 0;
    font-size: 12px;
    color: #6b7280;
}

/* نموذج تقييم الطالب */
.jobsnap-rate-form {
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.jobsnap-rate-form select {
    min-width: 80px;
}

.jobsnap-rate-form textarea {
    width: 100%;
}

.jobsnap-rate-form .jobsnap-button {
    align-self: flex-start;
}


/* تبويبات ملف الطالب */
.jobsnap-profile-tabs{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin:10px 0 20px;
}
.jobsnap-profile-tabs .jobsnap-tab-button{
    border-radius:999px;
    border:1px solid #e5e7eb;
    background:#fff;
    padding:6px 14px;
    font-size:13px;
    cursor:pointer;
    transition:all .15s ease-in-out;
}
.jobsnap-profile-tabs .jobsnap-tab-button:hover{
    background:#f3f4f6;
}
.jobsnap-profile-tabs .jobsnap-tab-button.active{
    background:#2563eb;
    border-color:#2563eb;
    color:#fff;
}


/* دليل الطلاب */
.jobsnap-students-directory .jobsnap-students-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(230px,1fr));
    gap:16px;
    margin-top:16px;
}
.jobsnap-student-card{
    display:flex;
    flex-direction:column;
    gap:8px;
}
.jobsnap-student-name{
    font-size:16px;
    margin:0 0 4px;
}
.jobsnap-student-meta,
.jobsnap-student-city{
    margin:0;
    font-size:13px;
    color:#6b7280;
}
.jobsnap-student-actions{
    margin-top:8px;
}
.jobsnap-public-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:8px 20px;
    font-size:14px;
}
.jobsnap-field-readonly p{
    margin:4px 0 0;
}
.jobsnap-public-links{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
}
.jobsnap-link-chip{
    display:inline-block;
    padding:6px 14px;
    border-radius:999px;
    border:1px solid #e5e7eb;
    font-size:13px;
    text-decoration:none;
}
.jobsnap-link-chip:hover{
    background:#f3f4f6;
}
.jobsnap-card-filters .jobsnap-filters-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:12px;
}
.jobsnap-filters-actions{
    margin-top:12px;
}
.jobsnap-pagination{
    margin:20px 0 0;
    display:flex;
    flex-wrap:wrap;
    gap:6px;
}
.jobsnap-pagination a{
    min-width:32px;
    text-align:center;
    padding:4px 8px;
    border-radius:999px;
    border:1px solid #e5e7eb;
    font-size:13px;
    text-decoration:none;
}
.jobsnap-pagination a.active{
    background:#2563eb;
    border-color:#2563eb;
    color:#fff;
}
