/* Laborers Local 210 portal UI. Every rule is scoped to .l210-ui so it
   cannot leak into Divi templates elsewhere on the site. */

.l210-ui { font-family: Arial, Helvetica, sans-serif; color: #333; line-height: 1.5; }

.l210-ui h1,
.l210-ui h2,
.l210-ui h3,
.l210-ui .section-title { color: #1c3a6e; margin-bottom: 15px; font-weight: bold; }

.l210-ui a,
.l210-ui .pagination-link { color: #F15A24; text-decoration: none; transition: all .3s ease; }
.l210-ui a:hover,
.l210-ui .pagination-link:hover { color: #d04e20; text-decoration: underline; }

.l210-ui button,
.l210-ui .button,
.l210-ui .btn-primary {
	background-color: #F15A24; color: #fff; border: none; border-radius: 5px;
	padding: 10px 15px; font-size: 14px; cursor: pointer;
	transition: background-color .3s ease, transform .2s ease;
}
.l210-ui button:hover,
.l210-ui .button:hover,
.l210-ui .btn-primary:hover { background-color: #d04e20; transform: translateY(-2px); }
.l210-ui button:active,
.l210-ui .button:active { transform: translateY(0); }

.l210-ui .btn-secondary { background-color: #0073aa; color: #fff; }
.l210-ui .btn-secondary:hover { background-color: #005177; }
.l210-ui .btn-danger,
.l210-ui .l210-danger { background-color: #e63946; color: #fff; }
.l210-ui .btn-danger:hover,
.l210-ui .l210-danger:hover { background-color: #d62839; }

/* Action buttons styled as inline links, so the table keeps its old look
   now that Reset Password and Delete are POST forms rather than anchors. */
.l210-ui .l210-actions form { display: inline; margin: 0; }
.l210-ui .l210-actions form + form::before,
.l210-ui .l210-actions a + form::before { content: " | "; color: #333; }
.l210-ui .l210-link-button {
	background: none; border: 0; padding: 0; margin: 0;
	color: #F15A24; font-size: inherit; font-weight: inherit;
	cursor: pointer; text-decoration: none;
}
.l210-ui .l210-link-button:hover { background: none; color: #d04e20; text-decoration: underline; transform: none; }
.l210-ui .l210-link-button.l210-danger { background: none; color: #F15A24; }
.l210-ui .l210-link-button.l210-danger:hover { background: none; color: #d62839; }

.l210-ui form { margin-bottom: 20px; }
.l210-ui form label { font-weight: bold; display: block; margin-bottom: 5px; color: #333; }
.l210-ui form input,
.l210-ui form select,
.l210-ui form textarea {
	width: 100%; max-width: 400px; padding: 10px; border: 1px solid #ccc;
	border-radius: 5px; font-size: 14px; margin-bottom: 15px;
}
.l210-ui form textarea { min-height: 80px; }

.l210-ui table { width: 100%; border-collapse: collapse; margin-top: 20px; }
.l210-ui table th { background-color: #1c3a6e; color: #fff; font-weight: bold; text-align: left; padding: 12px; }
.l210-ui table th a { color: #fff; text-decoration: underline; }
.l210-ui table td { border: 1px solid #ccc; padding: 12px; }
.l210-ui table tr:nth-child(even) { background-color: #f9f9f9; }
.l210-ui table tr:hover { background-color: #f1f1f1; }

.l210-ui .pagination { margin-top: 20px; display: flex; justify-content: center; gap: 5px; }
.l210-ui .pagination-link.active { background-color: #F15A24; color: #fff; border: 1px solid #F15A24; padding: 2px 8px; border-radius: 3px; }

.l210-ui .notice { padding: 10px 15px; border-radius: 5px; margin-bottom: 15px; }
.l210-ui .notice.success { background: #e8f5e9; border-left: 4px solid #2e7d32; }
.l210-ui .notice.error { background: #fdecea; border-left: 4px solid #c62828; }

.l210-ui .gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 15px; margin-top: 20px; }
.l210-ui .gallery-item { text-align: center; border: 1px solid #ccc; border-radius: 5px; padding: 10px; background: #f9f9f9; transition: transform .3s ease, box-shadow .3s ease; }
.l210-ui .gallery-item:hover { transform: scale(1.05); box-shadow: 0 5px 15px rgba(0,0,0,.1); }
.l210-ui .gallery-item img { width: 100px; height: 100px; object-fit: cover; border-radius: 5px; }

.gallery-pagination a { margin: 0 5px; padding: 5px 10px; border: 1px solid #0073aa; border-radius: 3px; color: #0073aa; transition: all .3s ease; }
.gallery-pagination a:hover { background-color: #0073aa; color: #fff; }
.gallery-pagination .current { background-color: #0073aa; color: #fff; border: 1px solid #0073aa; border-radius: 3px; padding: 5px 10px; }

.l210-ui .admin-manage-resources { max-width: 800px; margin: 0 auto; padding: 20px; border: 1px solid #ccc; border-radius: 8px; background: #f9f9f9; }
.l210-ui .form-actions { margin-top: 15px; }
.l210-ui .pdf-item { padding: 15px 0; border-bottom: 1px solid #e2e4e7; }

/* Training calendar button, unchanged appearance */
.l210-training-btn-wrap { text-align: center; margin: 30px 0; }
.divi-style-training-btn {
	display: inline-block; padding: 12px 24px; border: 2px solid #EF8903;
	color: #EF8903; background-color: #fff; font-weight: bold; font-size: 18px;
	text-decoration: none; border-radius: 2px; transition: all .3s ease;
}
.divi-style-training-btn:hover { color: #febd33; border-color: #febd33; }
.divi-style-training-btn .arrow { display: none; margin-left: 8px; transition: margin-left .3s ease; }
.divi-style-training-btn:hover .arrow { display: inline; margin-left: 12px; }

@media (max-width: 768px) {
	.l210-ui table th,
	.l210-ui table td { padding: 8px; font-size: 12px; }
	.l210-ui form input,
	.l210-ui form select { font-size: 14px; }
	.l210-ui .gallery-item { padding: 8px; }
}

/* Pending registrations */
.l210-pending-registrations .l210-pa-count { font-size: .95rem; margin-bottom: 1rem; }
.l210-pending-registrations table td { vertical-align: middle; }
.l210-pending-registrations .l210-actions { white-space: nowrap; }

/* Registration verification flags */
.l210-book-cell { min-width: 190px; }
.l210-book { display: block; font-size: 1.25rem; font-weight: 700; letter-spacing: .03em; color: #1c3a6e; }
.l210-flag { display: inline-block; margin-top: 4px; padding: 2px 8px; border-radius: 3px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.l210-flag-ok { background: #e8f5e9; color: #2e7d32; }
.l210-flag-duplicate { background: #fdecea; color: #b71c1c; }
.l210-flag-repeat { background: #fff4e5; color: #b25000; }
.l210-flag-missing { background: #eceff1; color: #455a64; }
.l210-flag-note { display: block; margin-top: 4px; font-size: .78rem; color: #555; line-height: 1.35; }
.l210-flag-link { display: inline-block; margin-top: 4px; font-size: .78rem; }

.l210-ui tr.l210-reg-duplicate td { background: #fffafa; }
.l210-ui tr.l210-reg-repeat td { background: #fffdf7; }

.l210-override summary { cursor: pointer; color: #b25000; font-size: .85rem; }
.l210-override-warn { margin: 6px 0; font-size: .78rem; color: #b71c1c; }

/* Inline correction form */
.l210-edit summary { cursor: pointer; color: #1c3a6e; font-size: .85rem; font-weight: 600; }
.l210-edit-form { margin-top: 8px; padding: 10px; background: #f7f8fa; border: 1px solid #e2e4e7; border-radius: 5px; min-width: 210px; }
.l210-ui .l210-edit-form label { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: #555; margin-bottom: 2px; }
.l210-ui .l210-edit-form input[type="text"] { width: 100%; max-width: none; padding: 6px 8px; font-size: .85rem; margin-bottom: 8px; }
.l210-ui .l210-edit-form button { padding: 6px 12px; font-size: .8rem; }
