/* Apply for Jobs Plugin - User CSS */

.jap-body {
  max-width: 1200px;
  margin: 20px auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.jap-nav {
  border-bottom: 1px solid #ddd;
  padding: 0;
}

.jap-nav-tabs {
  list-style: none;
  display: flex;
  border-bottom: 1px solid #ddd;
  margin-bottom: 20px;
}

.jap-nav-item {
  margin-right: 5px;
  margin-left: 0;  
}
html[dir="rtl"] .jap-nav-item {
    margin-left: 5px;
    margin-right: 0;
}
.jap-cv-file.jap-line svg {
    fill: #464feb;
}
.jap-nav-link {
  text-align: center;
  display: block;
  padding: 10px 20px;
  text-decoration: none;
  font-weight: 600;
  background: #f4f6f7;
  color: #171717;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.jap-nav-item.active .jap-nav-link,
.jap-nav-link:hover {
  text-decoration: none;  
  color: #464feb;
  background-color: rgba(70, 79, 235, 0.12);
  border-bottom: 2px solid #464feb;
}

.jap-tab-content {
  display: none;
}

.jap-tab-content.active {
  display: block;
}

.jap-content {
  padding: 0 20px 20px 20px;
}
.jap-notification {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 15px 0;
}
.jap-form {
  max-width: 500px;
}

.jap-form input,
.jap-form textarea {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  margin-bottom: 5px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
}
.jap-row .btn.jap-button {
    margin-top: 20px;
}
.jap-form .jap-row {
    margin: 0 0 15px 0;
}
.jap-form input[readonly] {
  background: #f5f5f5;
  color: #171717;
}

.jap-btn {
  background: #464feb;
  color: #ffffff;
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.3s ease;
}

.jap-btn:hover {
  background: #2d36d2;
}

.jap-upload-area {
  border: 2px dashed #ddd;
  padding: 20px;
  text-align: center;
  border-radius: 6px;
  margin-bottom: 15px;
}

.jap-application-item {
  border: 1px solid #ddd;
  padding: 15px;
  margin-bottom: 15px;
  border-radius: 6px;
}

.jap-application-item h4 {
  margin: 0 0 10px 0;
  color: #333;
}

/* Job Applications Pages */
.jo-user-applications { max-width: 900px; margin: 20px auto; padding: 20px; }
.jo-application-form { background: #fff; padding: 30px; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.jo-form-row { margin-bottom: 20px; }
.jo-form-row input, .jo-form-row textarea { width: 100%; padding: 10px;margin-top: 5px;border: 1px solid #ddd; border-radius: 6px; }
.jo-file-upload { border: 2px dashed #ddd; padding: 20px; text-align: center; border-radius: 6px; }
.jo-btn { background: #464feb; color: #ffffff; padding: 12px 24px; border: none; border-radius: 6px; cursor: pointer; }
.jo-btn:hover { background: #2d36d2; }
.jo-btn-danger { background: #464feb;font-weight: 600;border: 1px solid rgba(0, 0, 0, 0.05);box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);}
.jo-btn-withdraw { background: #ffc107; color: #212529; }

/* Employer Applications */
.jo-employer-applications { max-width: 1000px; margin: 20px auto; padding: 20px; }
.jo-filters { display: flex; justify-content: center; gap: 10px; margin-bottom: 30px; }

/* Application Modal */
.jo-modal { position: fixed; z-index: 9999; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.5); }
.jo-modal-content { background-color: #fff; margin: 5% auto; padding: 0; border-radius: 8px; width: 90%; max-width: 600px; max-height: 90vh; overflow-y: auto; }
.jo-modal-header { padding: 20px; border-bottom: 1px solid #ddd; display: flex; justify-content: space-between; align-items: center; }
.jo-modal-header h3 { margin: 0; color: #333; }
.jo-modal-close { color: #aaa; font-size: 28px; font-weight: bold; cursor: pointer; }
.jo-modal-close:hover { color: #000; }
.jo-modal-body { padding: 20px; }
.jo-modal-body h4 { margin: 0 0 20px 0; color: #464feb; }
.jo-form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; padding-top: 20px; border-top: 1px solid #ddd; }

/* Prevent body scroll when modal is open */
body.jo-modal-open { overflow: hidden; }


/* Application info section (count + apply button) */
.jo-application-info {
    text-align: center;
}
#item-side .jo-apply-button {
    width: 100%;
    margin: 0 0 15px 0;
}
#item-hook .jo-application-info {
    border-top: 1px solid #e3e3e3;
    padding: 15px 0 0;
    margin: 0 0 20px 0;
}
.jo-application-count { 
  display: block; 
  font-size: 16px; 
  color: #171717; 
  margin-bottom: 10px; 
}

.jo-application-count strong { 
  font-size: 16px; 
}

.jo-apply-button { 
  cursor: pointer;
  background: #464feb; 
  color: #ffffff; 
  padding: 10px 20px; 
  border-radius: 6px; 
  text-decoration: none; 
  display: inline-block; 
  font-weight: 600; 
  transition: background 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.jo-apply-button:hover {
    color: #ffffff;
    background-color: #2d36d2;
    text-decoration: none;
}

/* Disabled apply button styles */
.jo-apply-button .disabled,
.jo-disabled-button .disabled,
.jo-disabled-button a {
  color: #ffffff;    
  cursor: pointer !important;
  pointer-events: none;
  text-decoration: none !important;
}

.jo-apply-button .disabled strong {
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
}

.jo-apply-button .disabled span {
  display: block;
  font-size: 11px;
  font-weight: normal;
  opacity: 0.8;
}

/* Job application form styles */
.jo-current-cv {
  background: #f8f9fa;
  padding: 12px;
  border-radius: 6px;
  margin-top: 5px;
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.jo-current-cv i {
  color: #464feb;
  font-size: 20px;
  margin-top: 2px;
}

.jo-cv-info {
  flex: 1;
}

.jo-cv-info span {
  color: #333;
  font-weight: 500;
  display: block;
  margin-bottom: 5px;
}

.jo-cv-name {
  color: #464feb !important;
  text-decoration: none !important;
  font-weight: 600;
  display: block;
  margin-bottom: 3px;
  padding: 2px 0;
  border-bottom: 1px dotted #464feb;
  transition: all 0.3s ease;
}

.jo-cv-name:hover {
  color: #2d36d2 !important;
  border-bottom-style: solid;
  text-decoration: none !important;
}

.jo-cv-info small {
  color: #171717;
  font-size: 11px;
  font-style: italic;
}

.jo-profile-notice {
  background: #f2f4f8;
  padding: 12px;
  border-radius: 6px;
  line-height: 2;
  margin-bottom: 20px;
  color: #464feb;
}

.jo-profile-notice i {
  margin-right: 8px;
  margin-left: 0;
  color: #464feb;
}
html[dir="rtl"] .jo-profile-notice i {
  margin-right: 0;
  margin-left: 8px;
}

.jo-clear-session {
  color: #464feb !important;
  text-decoration: none;
  font-size: 12px;
  margin-left: 10px;
  padding: 2px 6px;
  border: 1px solid #464feb;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.jo-clear-session:hover {
  background-color: rgba(70, 79, 235, 0.12);
  text-decoration: none;
}

.jo-profile-link {
  color: #464feb !important;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px dotted #464feb;
  transition: all 0.3s ease;
}

.jo-profile-link:hover {
  color: #2d36d2 !important;
  border-bottom-style: solid;
  text-decoration: none;
}

/* Contact info styles */
.jo-contact-info {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 15px;
  padding: 10px;
  background: #f8f9fa;
  border-radius: 6px;
}

.jo-contact-item {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #171717;
}

.jo-contact-item i {
  margin-right: 6px;
  color: #464feb;
  width: 16px;
}

.jo-accompanying-text {
  margin-bottom: 15px;
  padding: 10px;
  background: #fff8e1;
  border-radius: 6px;
}

.jo-accompanying-text strong {
  color: #333;
  display: block;
  margin-bottom: 5px;
}

.jo-accompanying-text p {
  margin: 0;
  color: #171717;
  font-size: 14px;
  line-height: 1.4;
}

/* CV link styles */
.jo-cv-link {
  display: inline-block !important;
  padding: 10px 15px;
  background: #f8f9fa;
  border: 2px solid #464feb;
  border-radius: 6px;
  text-decoration: none !important;
  color: #464feb !important;
  transition: all 0.3s ease;
  margin-right: 10px;
}

.jo-cv-link:hover {
  background: #464feb;
  color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(70, 79, 235, 0.3);
}

.jo-cv-link i {
  font-size: 18px;
  margin-right: 8px;
}

.jo-cv-link span {
  font-weight: 600;
  display: block;
  margin-bottom: 2px;
}

.jo-cv-link small {
  font-size: 11px;
  opacity: 0.8;
  display: block;
}

/* File link styles */
.jo-file-link {
  display: inline-block !important;
  padding: 8px 12px;
  background: #e8f4fd;
  border: 1px solid #464feb;
  border-radius: 6px;
  text-decoration: none !important;
  color: #464feb !important;
  transition: all 0.3s ease;
  margin: 5px 5px 5px 0;
  font-size: 13px;
}

.jo-file-link:hover {
  background: #464feb;
  color: white !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 124, 186, 0.3);
}

.jo-file-link i {
  margin-right: 6px;
}

.jo-file-link span {
  font-weight: 500;
  display: block;
  margin-bottom: 1px;
}

.jo-file-link small {
  font-size: 10px;
  opacity: 0.8;
  display: block;
}

/* Success message styles */
.jo-success-message {
  position: fixed !important;
  top: 20px !important;
  right: 20px !important;
  background: #11c006 !important;
  color: white !important;
  padding: 15px 20px !important;
  border-radius: 6px !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2) !important;
  z-index: 10000 !important;
  max-width: 400px !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
  cursor: pointer !important;
  animation: slideInRight 0.3s ease-out !important;
}

.jo-success-message a {
  color: #ffffff !important;
  text-decoration: underline !important;
  font-weight: 600 !important;
}

.jo-success-message a:hover {
  color: #f0f0f0 !important;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
.jo-submitted-applications { max-width: 1000px; margin: 20px auto; padding: 20px; }

.jo-header { text-align: center; margin-bottom: 30px; }
.jo-header h2 { color: #333; margin-bottom: 10px; }
.jo-header p { color: #171717; }

.jo-stats-bar {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 30px;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
}

.jo-stat-item { text-align: center; }
.jo-stat-number { display: block; font-size: 24px; font-weight: bold; color: #464feb; }
.jo-stat-label { font-size: 14px; color: #171717; }

.jo-filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
}

.jo-filter {
  padding: 8px 16px;
  border: 1px solid #ddd;
  border-radius: 6px;
  text-decoration: none;
  color: #171717;
}

.jo-filter.active,
.jo-filter:hover {
  text-decoration: none;  
  background: #464feb;
  color: #ffffff;
  border-color: #464feb;
}

.jo-applications-list { display: flex; flex-direction: column; gap: 20px; }

.jo-application-item {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.jo-application-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
}

.jo-job-info h3 { margin: 0 0 5px 0; }
.jo-job-info h3 a { color: #333; text-decoration: none; }
.jo-job-info p { margin: 2px 0; color: #171717; font-size: 14px; }

.jo-application-status { text-align: right; }

.jo-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: bold;
}

.jo-status-0 { background: #fff3cd; color: #856404; }
.jo-status-1 { background: #d4edda; color: #155724; }
.jo-status-2 { background: #f8d7da; color: #721c24; }

.jo-date { margin: 5px 0 0 0; color: #171717; font-size: 12px; }

.jo-application-details { margin-bottom: 15px; }

.jo-message-preview {
  margin-bottom: 10px;
  padding: 10px;
  background: #f8f9fa;
  border-radius: 6px;
}

.jo-attachments { margin-bottom: 10px; }

.jo-attachment {
  display: inline-block;
  margin-right: 15px;
  color: #171717;
  font-size: 14px;
}

.jo-employer-response {
  background: #e8f4f8;
  padding: 15px;
  border-radius: 6px;
}

.jo-application-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.jo-btn {
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.jo-btn.jo-btn-secondary {
  color: #464feb;
  border: 1px solid #464feb;
  background: #ffffff;
}
.jo-btn.jo-btn-secondary:hover {
  background-color: rgba(70, 79, 235, 0.12);
  text-decoration: none;
}
.jo-btn-outline {
  font-weight: 600;
  background: transparent;
  color: #464feb;
  border: 1px solid #464feb;
}
.jo-btn-outline:hover {
  text-decoration: none;  
  background-color: rgba(70, 79, 235, 0.12);

}

.jo-btn-primary {
  background: #464feb;
  color: #ffffff;
  font-weight: 600;
  border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}


.jo-btn-primary:hover {
    color: #ffffff;
    background: #2d36d2;
    text-decoration: none;
}
.jo-empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #171717;
}
.jo-empty-state p {
    margin: 0 0 15px 0;
}

.jo-user-account-count {
    position: absolute;
    right: 20px;
    left: auto;
    font-weight: 500;
    font-size: 10px;
    border-radius: 100px;
    color: #fff;
    background: #464feb;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .1);
    padding: 0 2px;
    text-align: center;
    min-width: 21px;
    height: 21px;
    line-height: 21px;
    margin: 9px 0;
}
.jap-row.jap-row-file input[type="file"], .jo-form-row input[type="file"] {
    border-radius: 6px;
    background: #f8f9fa;
}
.jo-table.jo-table-apps .jo-table-row .jo-col-3 {
    min-height: 75px;
}
/* RTL */
html[dir="rtl"] .jo-user-account-count {
    right: auto;
    left: 20px;
}
#user-menu .jo-user-account-count {
    left: auto;
    right: 5px;
}
html[dir="rtl"] #user-menu .jo-user-account-count {
    right: auto;
    left: 5px;
}
#user-menu .jo-user-account-count {
    left: auto;
    right: 5px;
}
html[dir="rtl"] #user-menu .jo-user-account-count {
    right: auto;
    left: 5px;
}
#side-menu .section .jo-user-account-count {
    right: 16px;
    left: auto;
    font-size: 13px;    
    padding: 0 3px;
    min-width: 24px;
    height: 24px;
    line-height: 24px;
}

html[dir="rtl"] #side-menu .section .jo-user-account-count {
    left: 16px;
    right: auto;
}
input[type="tel"] {
  text-align: left;
}
html[dir="rtl"] input[type="tel"] {
  text-align: right;
}
@media (max-width: 768px) {
  .jo-stats-bar { flex-direction: column; gap: 20px; }
  .jo-application-header { flex-direction: column; }
  .jo-application-status { text-align: left; margin-top: 10px; }
  .jo-application-actions { justify-content: center; }
}
@media (max-width: 768px) {
  .jap-nav-tabs { flex-direction: column; }
  .jap-content { padding: 10px; }
  
  /* Modal responsive */
  .jo-modal-content { width: 95%; margin: 10% auto; max-height: 80vh; }
  .jo-modal-header { padding: 15px; }
  .jo-modal-body { padding: 15px; }
  .jo-form-actions { flex-direction: column; }
  .jo-form-actions .jo-btn { width: 100%; margin-bottom: 10px; }
}
