/* Keep notices visible on the Students pages */
.jem-sync-page .notice{
  animation: none !important;
  transition: none !important;
  opacity: 1 !important;
}


/* JEM Frontend Styles */
.jule-reg-section { background:#fff; padding:25px 30px 5px; border-radius:10px; box-shadow:0 3px 10px #00408010; margin-bottom:28px; }
.jule-reg-section h3 { margin-top:0; color:#004080; }
.jule-reg-row { display:flex; flex-wrap:wrap; gap:20px; }
.jule-reg-col { flex:1 1 250px; }
.jule-reg-form label { display:block; margin-bottom:4px; font-weight:600; }
.jule-reg-form input, .jule-reg-form select, .jule-reg-form textarea {
  width:100%; padding:8px; margin-bottom:16px; border:1px solid #c3cfd9; border-radius:5px;
}
.jule-reg-form .button-primary {
  background:linear-gradient(90deg,#2271b1 30%,#1ac37e 100%); color:#fff; border:none;
  box-shadow:0 1px 6px #1ac37e35; transition:all .17s;
}
.jule-reg-form .button-primary:hover { background:#1ac37e; }

/* Registrations review cards */
.jem-card { background:#fff; border-radius:10px; box-shadow:0 2px 9px #00408012; padding:22px 25px; margin-bottom:22px; }
.jem-badge { padding:2px 10px; border-radius:12px; background:#f7f7dd; font-size:12px; }

/* ==== JEM shared UI (adds to your existing styles) ==== */

/* Generic cards used across pages */
.jule-card,
.jule-app-card,
.jule-timetable-card,
.jule-docket-card,
.jule-results-card,
.jule-notices-card {
  max-width: 980px;
  margin: 28px auto;
  background: #fff;
  border: 1px solid #e4e9ef;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 6px 24px rgba(0, 60, 140, 0.08);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

/* Headings / institute block */
.jule-heading { text-align:center; color:#004080; margin:0 0 16px; font-size:22px; font-weight:700; }
.jule-institute { text-align:center; margin-bottom:12px; }
.jule-institute .jule-logo { height:70px; margin-bottom:8px; }
.jule-institute .jule-name { font-size:18px; font-weight:700; color:#004080; }
.jule-institute .jule-contact { font-size:13px; color:#555; line-height:1.4; }

/* Form helpers */
.jule-form label { font-weight:600; display:block; margin:6px 0; }
.jule-form input[type=text],
.jule-form input[type=date],
.jule-form select,
.jule-form textarea {
  width:100%; padding:9px; border:1px solid #cbd6ea; border-radius:8px; background:#fff;
}
.jule-form .jule-hint { color:#6b7a90; font-size:12px; margin-top:6px; }
.jule-btn { display:inline-block; background:#005194; color:#fff; padding:9px 18px; border-radius:8px; text-decoration:none; border:none; cursor:pointer; font-weight:700; }
.jule-btn:hover { background:#1f6db3; }

/* Status badges */
.jule-badge { display:inline-block; padding:3px 8px; border-radius:999px; font-size:12px; color:#fff; }
.badge-pending  { background:#ffa726; }
.badge-approved { background:#43a047; }
.badge-paid     { background:#00993c; }
.badge-reverted { background:#e53935; }
.badge-rejected { background:#c62828; }
.badge-all      { background:#e6f4ff; color:#084a8f; }
.badge-sel      { background:#fff7e6; color:#8a4b00; }
.badge-active   { background:#e7f8ef; color:#0b6b3a; }
.badge-inactive { background:#fbeaea; color:#8a252b; }

/* Tables */
table.jule-table { width:100%; border-collapse:collapse; background:#fff; border:1px solid #eaeef6; border-radius:10px; overflow:hidden; }
table.jule-table th, table.jule-table td { padding:10px; border-bottom:1px solid #eef2f9; text-align:left; vertical-align:top; }
table.jule-table th { background:#f7f9fd; }

/* Notices (student view) */
.jule-notice { border:1px solid #e8eef6; border-radius:12px; padding:14px 16px; margin:10px 0; background:#f9fbff; }
.jule-notice h4 { margin:0 0 6px; color:#0b3d91; }
.jule-notice .jule-schedule { font-size:12px; color:#6b7a90; margin-top:6px; }

/* Utilities */
.jule-muted { color:#666; font-size:12px; }
.jule-warning { color:#7a5100; background:#fff7e6; border:1px solid #ffe3b3; padding:10px 12px; border-radius:8px; }
.jule-error   { color:#7a0d0d; background:#fff2f2; border:1px solid #ffc9c9; padding:10px 12px; border-radius:8px; }
.jule-success { color:#0b6b3a; background:#e7f8ef; border:1px solid #bde7cf; padding:10px 12px; border-radius:8px; }

/* History links */
a.jule-hist-link { text-decoration:none; border-bottom:1px dashed #2b6cb0; color:#2b6cb0; }
a.jule-hist-link:hover { color:#004080; }


/* ============================
   Marks Entry (frontend)
   ============================ */

.jule-marks-frontend {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px;
}

.jule-tabs {
  display: flex;
  gap: 8px;
  margin: 8px 0 18px;
  flex-wrap: wrap;
}

.jule-tabs .button {
  border-radius: 8px;
  border: 1px solid #cbd6ea;
  background: #f7faff;
  color: #0a2a5e;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}

.jule-tabs .button.button-primary {
  background: linear-gradient(90deg,#2271b1 0%,#1ac37e 100%);
  color: #fff;
  border: none;
  box-shadow: 0 2px 8px rgba(26,195,126,.35);
}

.jule-filter-box,
.jule-marks-box,
.jule-card {
  background: #fff;
  padding: 18px 20px;
  border: 1px solid #e5e9f2;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0,64,128,.06);
  margin-bottom: 18px;
}

.jule-filter-box h2,
.jule-marks-box h2,
.jule-marks-box h3,
.jule-card h3 {
  margin: 0 0 10px;
  color: #004080;
}

.jule-marks-box .description {
  color: #6b7a90;
  font-size: 13px;
}

.jule-marks-frontend input[type="text"],
.jule-marks-frontend select {
  width: 100%;
  max-width: 320px;
  padding: 8px 10px;
  border: 1px solid #c3cfd9;
  border-radius: 8px;
  background: #fff;
  line-height: 1.3;
}

.jule-marks-frontend input[type="text"]::placeholder {
  color: #9aa7b9;
}

.jule-marks-frontend .button.button-primary {
  background: linear-gradient(90deg,#2271b1 0%,#1ac37e 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  box-shadow: 0 2px 8px rgba(26,195,126,.35);
}

.jule-marks-frontend .button.button-primary:hover {
  filter: brightness(1.05);
}

/* Table polish (uses WP widefat base) */
.jule-marks-frontend table.widefat {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e8eef6;
}

.jule-marks-frontend table.widefat thead th {
  background: #f7f9fc;
  color: #0a2a5e;
  border-bottom: 1px solid #e8eef6;
  padding: 10px 12px;
}

.jule-marks-frontend table.widefat td {
  padding: 10px 12px;
  vertical-align: middle;
}

/* Notices harmonized with frontend */
.jule-message {
  padding: 10px 15px;
  margin: 14px 0;
  border-radius: 8px;
  border: 1px solid transparent;
}

.jule-message-success {
  color: #0b6b3a;
  background-color: #e7f8ef;
  border-color: #cceedd;
}

.jule-message-error {
  color: #8a252b;
  background-color: #fbeaea;
  border-color: #f3c8cc;
}

/* Responsive */
@media (max-width: 720px) {
  .jule-marks-frontend input[type="text"],
  .jule-marks-frontend select { max-width: 100%; }

  .jule-tabs { gap: 6px; }
}


/* JULE Exam Application Styles */
.jule-app-card { 
    max-width: 980px; 
    margin: 30px auto; 
    background: #fff; 
    border: 1px solid #e4e9ef; 
    border-radius: 12px; 
    padding: 28px; 
    box-shadow: 0 6px 24px 0 rgba(0,60,140,0.08); 
    font-family: 'Segoe UI', Arial, sans-serif; 
}

.jule-app-card h2 { 
    text-align:center; 
    color:#004080; 
    margin-bottom: 16px; 
}

.jule-app-status { 
    border-radius: 6px; 
    padding: 10px 14px; 
    margin: 12px 0 16px; 
    font-weight: 600; 
    text-align: center; 
    font-size: 14px; 
    color: #fff; 
    display: inline-block; 
}

.jule-app-status.reverted { 
    background: #e53935; 
}

.jule-app-status.rejected { 
    background: #c62828; 
}

.jule-app-status.pending { 
    background: #ffa726; 
}

.jule-app-status.approved { 
    background: #43a047; 
}

.jule-app-status.paid { 
    background: #00993c; 
}

.jule-app-comment { 
    margin-bottom:18px; 
    background: #fff6f6; 
    border-left: 4px solid #e53935; 
    padding: 12px; 
    border-radius: 4px; 
    color: #333; 
    font-size: 15px; 
}

.jule-app-fields label {
    font-weight:600;
    display:block;
    margin-bottom:5px;
}

.jule-app-fields select {
    margin-bottom:12px; 
    padding: 7px; 
    border-radius: 4px; 
    border: 1px solid #bfc9d4; 
    min-width: 260px;
}

.jule-app-fields input[type="checkbox"] {
    margin-right:8px;
}

.jule-app-fields input[type="submit"] { 
    background: #0073aa; 
    color: #fff; 
    border: none; 
    border-radius: 4px; 
    padding: 10px 28px; 
    font-size: 15px; 
    font-weight: 600; 
    margin-top: 14px; 
    cursor: pointer; 
    transition: background 0.2s; 
}

.jule-app-fields input[type="submit"]:hover { 
    background: #005fa3; 
}

.jule-subject-grid { 
    display:grid; 
    grid-template-columns: repeat(auto-fill,minmax(280px,1fr)); 
    gap:8px 18px; 
    margin-top:8px;
}

.jule-fee-summary { 
    margin-top: 10px; 
    color: #008a15; 
    font-weight: bold; 
    font-size: 16px; 
}

.jule-fee-warning { 
    color: #b10; 
    background: #ffeaea; 
    padding: 6px 10px; 
    border-radius: 6px; 
    margin: 8px 0; 
    font-size: 13px;
}

.jule-app-card .muted { 
    color:#666; 
    font-size: 12px; 
}

.jule-history { 
    margin-top: 28px; 
}

.jule-history h3 { 
    margin-top: 6px; 
    color:#1a3b6b; 
}

.jule-history table { 
    width:100%; 
    border-collapse: collapse; 
    margin-top:8px;
    font-size:14px;
}

.jule-history th, 
.jule-history td { 
    border:1px solid #e4e9ef; 
    padding:8px 10px; 
    text-align:left; 
}

.badge { 
    display:inline-block; 
    padding:2px 8px; 
    border-radius:12px; 
    font-size:12px; 
    color:#fff; 
}

.badge.pending { 
    background:#ffa726; 
}

.badge.reverted { 
    background:#e53935; 
}

.badge.rejected { 
    background:#c62828; 
}

.badge.approved { 
    background:#43a047; 
}

.badge.paid { 
    background:#00993c; 
}

a.jule-hist-link { 
    text-decoration:none; 
    border-bottom:1px dashed #2b6cb0; 
    color:#2b6cb0; 
}

/* WordPress notice compatibility */
.jule-app-card .notice {
    padding: 12px;
    margin: 15px 0;
    border-left: 4px solid;
    background: #fff;
    box-shadow: 0 1px 1px rgba(0,0,0,0.04);
}

.jule-app-card .notice-error {
    border-left-color: #dc3232;
}

.jule-app-card .notice-success {
    border-left-color: #46b450;
}



/* JULE Registrations Review Styles */
/*
.jule-review-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 9px rgba(0, 64, 128, 0.07);
    padding: 22px 25px;
    margin-bottom: 22px;
    border: 1px solid #e4e9ef;
}

.jule-review-actions {
    margin-top: 14px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}

.jem-notice {
    padding: 12px 16px;
    border-radius: 6px;
    margin: 10px 0;
    border-left: 4px solid;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.jem-notice.success {
    background: #e8f7ee;
    border-color: #27ae60;
    color: #155724;
}

.jem-notice.error {
    background: #fdecea;
    border-color: #e74c3c;
    color: #721c24;
}

.jem-notice.warning {
    background: #fff4e5;
    border-color: #f39c12;
    color: #856404;
}

.jem-scope .wrap h1 {
    color: #004080;
    margin-bottom: 20px;
    font-weight: 600;
}

/* Filter Form Styles 
.jem-scope form[method="get"] {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    border: 1px solid #e9ecef;
}

.jem-scope form[method="get"] select,
.jem-scope form[method="get"] input[type="text"] {
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    margin-right: 10px;
    font-size: 14px;
}

.jem-scope form[method="get"] select {
    min-width: 120px;
}

.jem-scope form[method="get"] input[type="text"] {
    width: 220px;
}

/* Application Card Styles 
.jule-review-card h2 {
    font-size: 1.15em;
    color: #2c3e50;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.jule-review-card > div {
    margin-bottom: 8px;
    line-height: 1.4;
}

.jule-review-card b {
    color: #34495e;
}

.jule-review-card details {
    margin: 15px 0;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 10px;
}

.jule-review-card summary {
    cursor: pointer;
    font-weight: 600;
    color: #004080;
    padding: 8px;
    margin: -10px;
    border-radius: 4px;
    transition: background-color 0.2s;
    border: 1px solid #000000;
}

.jule-review-card summary:hover {
    background-color: #f8f9fa;
}

.jule-review-card pre {
    font-size: 13px;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    margin: 10px 0 0 0;
    white-space: pre-wrap;
    word-wrap: break-word;
    border: 1px solid #e9ecef;
    max-height: 400px;
    overflow-y: auto;
}

/* Status Badge 
.jule-review-card span[style*="border-radius:12px"] {
    padding: 4px 12px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.jule-review-card span[style*="background:#f7f7dd"] {
    background: #fff3cd !important;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* Custom Button Styles 
.jem-button {
    display: inline-block;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1.4;
    text-align: center;
    min-width: 120px;
}

.jem-button-primary {
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(0, 115, 170, 0.3);
}

.jem-button-primary:hover {
    background: linear-gradient(135deg, #005a87 0%, #004670 100%);
    color: white;
    box-shadow: 0 4px 8px rgba(0, 115, 170, 0.4);
    transform: translateY(-1px);
}

.jem-button-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(108, 117, 125, 0.3);
}

.jem-button-secondary:hover {
    background: linear-gradient(135deg, #5a6268 0%, #484e53 100%);
    color: white;
    box-shadow: 0 4px 8px rgba(108, 117, 125, 0.4);
    transform: translateY(-1px);
}

.jem-button-success {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

.jem-button-success:hover {
    background: linear-gradient(135deg, #1e7e34 0%, #145523 100%);
    color: white;
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.4);
    transform: translateY(-1px);
}

.jem-button-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

.jem-button-danger:hover {
    background: linear-gradient(135deg, #c82333 0%, #a71e2a 100%);
    color: white;
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.4);
    transform: translateY(-1px);
}

.jem-button-warning {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    color: #212529;
    box-shadow: 0 2px 4px rgba(255, 193, 7, 0.3);
}

.jem-button-warning:hover {
    background: linear-gradient(135deg, #e0a800 0%, #c69500 100%);
    color: #212529;
    box-shadow: 0 4px 8px rgba(255, 193, 7, 0.4);
    transform: translateY(-1px);
}

/* Action Form Styles 
.jule-review-actions form {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 !important;
}

.jule-review-actions input[type="text"] {
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    min-width: 180px;
    transition: border-color 0.3s;
}

.jule-review-actions input[type="text"]:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

/* Enhanced WordPress Button Compatibility 
.jule-review-actions .button {
    padding: 10px 20px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border: none !important;
    border-radius: 6px !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 120px !important;
    line-height: 1.4 !important;
}

.jule-review-actions .button.button-primary {
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%) !important;
    color: white !important;
    box-shadow: 0 2px 4px rgba(0, 115, 170, 0.3) !important;
}

.jule-review-actions .button.button-primary:hover {
    background: linear-gradient(135deg, #005a87 0%, #004670 100%) !important;
    color: white !important;
    box-shadow: 0 4px 8px rgba(0, 115, 170, 0.4) !important;
    transform: translateY(-1px) !important;
}

.jule-review-actions .button.button-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%) !important;
    color: white !important;
    box-shadow: 0 2px 4px rgba(108, 117, 125, 0.3) !important;
}

.jule-review-actions .button.button-secondary:hover {
    background: linear-gradient(135deg, #5a6268 0%, #484e53 100%) !important;
    color: white !important;
    box-shadow: 0 4px 8px rgba(108, 117, 125, 0.4) !important;
    transform: translateY(-1px) !important;
}

/* No Applications Found 
.jem-scope div[style*="background:#f8f8f8"] {
    background: #f8f9fa !important;
    padding: 40px 20px !important;
    border-radius: 10px !important;
    text-align: center !important;
    border: 1px solid #e9ecef !important;
    color: #6c757d !important;
    font-size: 16px !important;
}

/* Pagination Styles 
.jem-scope div[style*="text-align:center"] a.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    margin: 0 2px;
    padding: 8px 12px !important;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.jem-scope div[style*="text-align:center"] a.button:not(.button-primary) {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
}

.jem-scope div[style*="text-align:center"] a.button:not(.button-primary):hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

/* Download Links 
.jule-review-card a[target="_blank"] {
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
    padding: 2px 6px;
    border-radius: 3px;
    transition: all 0.2s;
}

.jule-review-card a[target="_blank"]:hover {
    color: #005a87;
    background: #e3f2fd;
    text-decoration: underline;
}

/* Responsive Design 
@media (max-width: 768px) {
    .jule-review-card {
        padding: 16px;
        margin-bottom: 16px;
    }
    
    .jule-review-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .jule-review-actions form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .jule-review-actions input[type="text"] {
        min-width: auto;
        margin-bottom: 8px;
    }
    
    .jem-scope form[method="get"] {
        padding: 15px;
    }
    
    .jem-scope form[method="get"] select,
    .jem-scope form[method="get"] input[type="text"] {
        width: 100%;
        margin: 0 0 10px 0;
    }
    
    .jem-scope form[method="get"] button {
        width: 100%;
    }
}*/
