/**
 * Frontend styles for Pastoral Management.
 *
 * @since      1.0.0
 * @package    Pastoral_Management
 */

:root {
    --pm-primary-color: #1e3a5f;
    --pm-secondary-color: #c9a24d;
    --pm-success-color: #4caf84;
    --pm-info-color: #17a2b8;
    --pm-warning-color: #ffc107;
    --pm-danger-color: #dc3545;
    --pm-background-color: #F3F3F3;
    --pm-text-color: #333333;
    --pm-text-muted: #666666;
    --pm-border-color: #e0e0e0;
    --pm-card-bg: #ffffff;
}

/* Catechist Portal Login Styles */
.pm-catechist-portal-login {
    max-width: 450px;
    margin: 40px auto;
    padding: 40px 35px;
    background: var(--pm-card-bg);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08), 0 5px 15px rgba(0, 0, 0, 0.04);
    text-align: center;
    border: 1px solid rgba(30, 58, 95, 0.1);
    position: relative;
    overflow: hidden;
}

.pm-catechist-portal-login:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--pm-primary-color);
}

.pm-catechist-portal-login p {
    font-size: 18px;
    color: var(--pm-text-color);
    margin-bottom: 20px;
    line-height: 1.5;
    font-weight: 500;
}

.pm-catechist-portal-login p:last-child {
    margin-bottom: 0;
}

.pm-catechist-portal-login form {
    text-align: left;
}

.pm-catechist-portal-login label {
    display: block;
    font-weight: 700;
    color: var(--pm-primary-color);
    margin-bottom: 8px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.pm-catechist-portal-login .input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--pm-border-color);
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: var(--pm-background-color);
    box-sizing: border-box;
    font-weight: 400;
    letter-spacing: 0.1px;
}

.pm-catechist-portal-login .input:focus {
    outline: none;
    border-color: var(--pm-primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.08);
}

.pm-catechist-portal-login .login-remember label {
    font-weight: 500;
    text-transform: none;
    letter-spacing: normal;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: var(--pm-text-muted);
    min-height: 22px;
}

.pm-catechist-portal-login .login-remember input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--pm-primary-color);
    border-radius: 4px;
}

.pm-custom-checkbox,
.pm-custom-radio {
    display: none;
}

.pm-custom-checkbox-label,
.pm-custom-radio-label {
    position: relative;
    padding-left: 32px;
    cursor: pointer;
    display: inline-block;
    font-size: 14px;
    color: var(--pm-text-muted);
    font-weight: 500;
    min-height: 22px;
}

.pm-custom-checkbox-label:before,
.pm-custom-radio-label:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    border: 2px solid #d4d7dc;
    border-radius: 6px;
    background: white;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.pm-custom-radio-label:before {
    border-radius: 50%;
}

.pm-custom-checkbox:checked+.pm-custom-checkbox-label:before,
.pm-custom-radio:checked+.pm-custom-radio-label:before {
    background: var(--pm-primary-color);
    border-color: var(--pm-primary-color);
    box-shadow: 0 0 0 2px rgba(30, 58, 95, 0.1);
}

.pm-custom-checkbox:checked+.pm-custom-checkbox-label:after,
.pm-custom-radio:checked+.pm-custom-radio-label:after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free' !important;
    font-weight: 900;
    position: absolute;
    left: 2px;
    top: 2px;
    width: 18px;
    height: 18px;
    text-align: center;
    color: white;
    font-size: 12px;
}

.pm-custom-radio:checked+.pm-custom-radio-label:after {
    content: '';
    font-family: inherit !important;
    background: white;
    border-radius: 50%;
    width: 14px;
    height: 14px;
    left: 4px;
    top: 4px;
}

.pm-form-section-header h3 {
    margin: 10px 0;
    color: var(--pm-primary-color);
    font-weight: 600;
}

.pm-dynamic-paragraph-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--pm-text-color);
    font-size: 14px;
}

.pm-dynamic-paragraph-content {
    margin: 10px 0;
    color: var(--pm-text-muted);
    font-size: 13px;
    line-height: 1.5;
}

.pm-dynamic-divider {
    border: 1px solid var(--pm-border-color);
    margin: 15px 0;
}

.pm-form-description {
    display: block;
    margin: 5px 0;
    color: var(--pm-text-muted);
    font-size: 12px;
}

.pm-form-section-header,
.pm-form-enrollment .pm-form-row {
    margin-bottom: 20px;
}

.pm-btn {
    padding: 10px 20px;
    border: 2px solid transparent;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    cursor: pointer;
    letter-spacing: 0.8px;
    position: relative;
    outline: none !important;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    line-height: 1.2 !important;
}

.pm-btn:hover {
    opacity: 0.95;
    box-shadow: 0 6px 20px rgba(30, 58, 95, 0.2);
}

.login-lost-password {
    text-align: center;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(30, 58, 95, 0.1);
    font-size: 14px;
    color: var(--pm-text-muted);
}

.pm-lost-password-link {
    display: inline-block;
    color: var(--pm-primary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    outline: none;
    border-bottom: 1px solid transparent;
    padding: 2px 0;
}

.pm-lost-password-link:hover {
    color: var(--pm-secondary-color);
    border-bottom-color: var(--pm-secondary-color);
    text-decoration: none;
}

.pm-catechist-portal-login .pm-btn-primary {
    background: var(--pm-primary-color);
    color: white;
    width: 100%;
    box-shadow: 0 8px 25px rgba(30, 58, 95, 0.15);
    outline: none !important;
    padding: 13px 20px;
}

.pm-catechist-portal-login .pm-btn-primary:hover {
    background: var(--pm-secondary-color);
    border-color: var(--pm-secondary-color);
    box-shadow: 0 12px 30px rgba(201, 162, 77, 0.2);
    color: white;
}

.pm-catechist-portal-login .button-primary {
    width: 100%;
    padding: 15px 30px;
    background: var(--pm-primary-color);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(30, 58, 95, 0.2);
}

.pm-catechist-portal-login .button-primary:hover {
    background: var(--pm-secondary-color);
    box-shadow: 0 6px 20px rgba(30, 58, 95, 0.3);
}

.pm-catechist-portal-login .button-primary:active {
    background: var(--pm-primary-color);
}

/* Dashboard Styles */
.pm-catechist-portal-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.pm-dashboard-header {
    display: flex;
    flex-direction: column;
    background: var(--pm-primary-color);
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    border: 1px solid rgba(30, 58, 95, 0.06);
    overflow: hidden;
    position: relative;
    min-height: 200px;
}

.pm-dashboard-header .pm-header-background {
    height: 300px;
    background-color: var(--pm-primary-color);
    z-index: 0;
}

.pm-cover-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.pm-dashboard-header .pm-header-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    padding: 40px 30px;
    gap: 25px;
    background: var(--pm-background-color);
}

.pm-user-avatar {
    flex-shrink: 0;
    position: absolute;
    top: 0;
    z-index: 2;
    transform: translateY(-50%);
    width: 150px;
    aspect-ratio: 1;
}

.pm-user-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background-color: var(--pm-border-color);
    padding: 6px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    box-sizing: border-box;
    display: block;
}

.pm-avatar-edit-btn {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--pm-primary-color);
    border: 3px solid var(--pm-card-bg);
    color: white;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    padding: 0;
}

.pm-avatar-edit-btn:hover {
    background: var(--pm-secondary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.pm-cover-edit-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--pm-primary-color);
    border: 3px solid var(--pm-card-bg);
    color: white;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    opacity: .5;
    padding: 0;
}

.pm-cover-edit-btn:hover {
    background: var(--pm-secondary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 1;
}

/* Profile Photo Modal Styles */
.pm-photo-upload-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.pm-current-photo {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--pm-card-bg);
    border-radius: 12px;
    border: 2px solid var(--pm-border-color);
}

.pm-photo-preview {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--pm-primary-color);
}

.pm-photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pm-photo-info h3 {
    margin: 0 0 5px 0;
    color: var(--pm-primary-color);
    font-size: 18px;
    font-weight: 600;
}

.pm-photo-info p {
    margin: 0;
    color: var(--pm-text-muted);
    font-size: 14px;
}

.pm-upload-area {
    border: 2px dashed var(--pm-border-color);
    border-radius: 12px;
    padding: 15px;
    background: var(--pm-card-bg);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    min-height: 60px;
}

.pm-upload-area:hover {
    border-color: var(--pm-primary-color);
    background: rgba(30, 58, 95, 0.02);
}

.pm-multiple-files-container {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Document Requirements Styles */
.pm-document-requirements {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pm-requirement-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--pm-primary-color);
}

.pm-requirement-icon {
    font-size: 18px;
}

.pm-requirement-name {
    font-size: 14px;
}

.pm-file-preview-input {
    position: relative;
}

.pm-file-preview-input .pm-file-input {
    width: 0;
    height: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: -1;
    position: absolute;
}

.pm-file-drop-zone-horizontal {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 2px dashed var(--pm-border-color);
    border-radius: 6px;
    background: var(--pm-card-bg);
    cursor: pointer;
    transition: all 0.3s ease;
}

.pm-file-drop-zone-horizontal.uploaded {
    border-color: var(--pm-success-color);
    background: rgba(76, 175, 132, 0.05);
}

.pm-file-drop-zone-horizontal:hover {
    border-color: var(--pm-primary-color);
    background: rgba(30, 58, 95, 0.02);
}

.pm-file-preview-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: var(--pm-card-bg);
    border-radius: 4px;
    flex-shrink: 0;
}

.pm-file-preview-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pm-file-preview-label {
    font-weight: 600;
    color: var(--pm-text-color);
    font-size: 14px;
}

.pm-file-preview-hint {
    font-size: 12px;
    color: var(--pm-text-muted);
    display: flex;
    gap: 10px;
}

.pm-file-btn {
    padding: 6px 12px;
    border: 1px solid var(--pm-border-color);
    border-radius: 4px;
    background: var(--pm-card-bg);
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.pm-file-btn:hover {
    background: var(--pm-card-bg);
    border-color: var(--pm-primary-color);
}

.pm-btn-secondary {
    border: 2px solid var(--pm-secondary-color);
    background: var(--pm-secondary-color);
    color: white;
    outline: none !important;
    box-shadow: none !important;
}

.pm-btn-secondary:hover {
    background: white;
    color: var(--pm-secondary-color);
    border-color: var(--pm-secondary-color);
}

.pm-field-action-btn {
    padding: 6px 8px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pm-btn-danger {
    background: var(--pm-danger-color);
    color: white;
    outline: none !important;
    box-shadow: none !important;
}

.pm-btn-danger:hover {
    background: var(--pm-danger-color);
    filter: brightness(0.9);
}

.pm-field-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 8px;
}

.pm-requirement-status {
    margin-top: 8px;
    font-size: 14px;
    font-weight: 500;
}

.status-uploaded {
    color: var(--pm-success-color);
}

.pm-preview-image {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
}

.pm-upload-content,
.pm-upload-content .pm-text-content {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.pm-upload-content i {
    font-size: 24px;
    color: var(--pm-primary-color);
    opacity: 0.7;
    flex-shrink: 0;
}

.pm-upload-content .pm-btn i {
    font-size: 17px;
}

.pm-upload-content .pm-text-content {
    flex: 1;
}

.pm-file-preview {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 100px;
}

.pm-file-preview .pm-preview-image {
    width: 100%;
    height: auto;
    border-radius: 0;
    border: none;
}

.pm-upload-content h3 {
    margin: 0 0 2px 0;
    color: var(--pm-primary-color);
    font-size: 14px;
    font-weight: 600;
}

.pm-upload-content p {
    margin: 0;
    color: var(--pm-text-muted);
    font-size: 11px;
    line-height: 1.3;
}

.pm-upload-content .pm-btn {
    flex-shrink: 0;
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 6px;
}

.pm-photo-preview-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--pm-card-bg);
    border-radius: 12px;
    border: 2px solid var(--pm-border-color);
}

.pm-preview-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--pm-primary-color);
}

.pm-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pm-preview-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.pm-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 30px;
}

.pm-option-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e8eaed;
    margin-bottom: 15px;
}

.pm-tab-btn {
    flex: 1;
    padding: 15px 20px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--pm-text-muted);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.pm-tab-btn:hover {
    color: var(--pm-primary-color);
    background: rgba(30, 58, 95, 0.05);
}

.pm-tab-btn.active {
    color: var(--pm-primary-color);
    border-bottom-color: var(--pm-primary-color);
    background: rgba(30, 58, 95, 0.05);
}

.pm-tab-content {
    display: none;
}

.pm-tab-content.active {
    display: block;
}

.pm-upload-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Avatar Selection Styles */
.pm-avatars-section h4,
.pm-photo-current h4,
.pm-shape-controls h4 {
    margin: 0 0 15px 0;
    color: var(--pm-primary-color);
    font-size: 16px;
    font-weight: 600;
    text-align: center;
}

.pm-avatars-grid {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-items: center;
    justify-content: center;
}

.pm-avatar-option,
#pm-cover-preview-container .pm-preview-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 10px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    background: var(--pm-card-bg);
    width: calc(20% - 12px);
}

.pm-avatar-option:hover {
    background: rgba(30, 58, 95, 0.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.pm-avatar-option.selected,
#pm-cover-preview-container .pm-preview-content {
    border-color: var(--pm-primary-color);
    background: rgba(30, 58, 95, 0.1);
    box-shadow: 0 0 0 2px rgba(30, 58, 95, 0.2);
}

.pm-avatar-option img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--pm-border-color);
}

.pm-avatar-option.selected img {
    border-color: var(--pm-primary-color);
}

.pm-photo-modal-overlay .pm-avatar-option,
#pm-cover-preview-container .pm-preview-content {
    width: auto;
}

.pm-photo-modal-overlay .pm-avatar-option img,
#pm-cover-preview-container .pm-preview-content img {
    width: 185px;
    height: 80px;
    border-radius: 7px;
}

.pm-avatar-label,
.pm-photo-modal-overlay .pm-avatar-option span {
    font-size: 13px;
    font-weight: 500;
    color: var(--pm-text-muted);
    text-align: center;
    line-height: 1.2;
}

.pm-current-cover-display {
    height: 300px;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(30, 58, 95, 0.06);
    position: relative;
    min-height: 200px;
}

.pm-current-cover-display,
.pm-current-cover-display img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pm-shape-controls,
.pm-attendance-history {
    margin-top: 20px;
}

/* Shape Controls Styles */
.pm-shape-control-group,
.pm-photo-modal-overlay .pm-upload-section {
    margin-bottom: 20px;
}

.pm-control-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--pm-text-primary);
    cursor: pointer;
    margin-bottom: 15px;
    padding: 12px 16px;
    padding-left: 55px;
    background: var(--pm-card-bg);
    border-radius: 8px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.pm-control-label:before {
    content: '';
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    border: 2px solid #d4d7dc;
    border-radius: 6px;
    background: white;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.pm-shape-checkbox:checked+.pm-control-label:before {
    background: var(--pm-primary-color);
    border-color: var(--pm-primary-color);
    box-shadow: 0 0 0 2px rgba(30, 58, 95, 0.1);
}

.pm-shape-checkbox:checked+.pm-control-label:after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free' !important;
    font-weight: 900;
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    text-align: center;
    color: white;
    font-size: 12px;
    line-height: 18px;
}

.pm-shape-control-group .pm-shape-checkbox {
    display: none;
}

.pm-control-label:hover {
    background: var(--pm-border-color);
    border-color: rgba(30, 58, 95, 0.1);
}

.pm-shape-settings {
    background: var(--pm-card-bg);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(30, 58, 95, 0.08);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pm-control-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.pm-control-row:last-child {
    margin-bottom: 0;
}

.pm-control-row label {
    font-size: 14px;
    font-weight: 600;
    color: var(--pm-primary-color);
    min-width: 120px;
    flex-shrink: 0;
    display: flex;
    gap: 15px;
    width: auto;
}

.pm-color-picker {
    width: 60px;
    height: 40px;
    border: 2px solid #e0e4e7;
    border-radius: 8px;
    cursor: pointer;
    background: white;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    padding: 2px 2px;
}

.pm-color-picker:hover {
    border-color: var(--pm-primary-color);
    box-shadow: 0 2px 8px rgba(30, 58, 95, 0.15);
}

.pm-color-picker:focus {
    outline: none;
    border-color: var(--pm-primary-color);
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

.pm-range-slider {
    width: 120px;
    height: 6px;
    border-radius: 3px;
    background: var(--pm-border-color);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.pm-range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--pm-primary-color);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(30, 58, 95, 0.3);
    transition: all 0.3s ease;
}

.pm-range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(30, 58, 95, 0.4);
}

.pm-range-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--pm-primary-color);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(30, 58, 95, 0.3);
    transition: all 0.3s ease;
}

.pm-range-slider::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(30, 58, 95, 0.4);
}

.pm-shape-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--pm-text-color);
    pointer-events: none;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.pm-shape-overlay.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

#pm-opacity-value {
    font-weight: 700;
    color: var(--pm-primary-color);
    font-size: 13px;
    background: rgba(30, 58, 95, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

/* Meeting Days Container - Checkbox Styles */
.pm-meeting-days-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}

.pm-day-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1 1 auto;
}

.pm-day-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.pm-day-label {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
    padding: 10px 12px;
    background: var(--pm-card-bg);
    border: 2px solid var(--pm-border-color);
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    transition: all 0.2s ease;
    position: relative;
    user-select: none;
    color: var(--pm-text-color);
    box-sizing: border-box;
    margin: 0 !important;
}

.pm-day-checkbox input[type="checkbox"]:checked+.pm-day-label {
    background: var(--pm-primary-color);
    color: white;
    border-color: var(--pm-primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.pm-day-label:hover {
    border-color: var(--pm-primary-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* User Info Styles */
.pm-user-info {
    flex: 1;
    margin-left: 180px;
}

.pm-user-meta {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 15px;
}

.pm-user-info h1 {
    margin: 0;
    color: var(--pm-primary-color);
    font-size: 28px;
    font-weight: 700;
}

.pm-user-role {
    margin: 0;
    color: var(--pm-text-muted);
    font-size: 16px;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.pm-status-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.pm-status-active {
    background: var(--pm-success-color);
    color: white;
}

.pm-status-in_training {
    background: var(--pm-info-color);
    color: white;
}

.pm-status-inactive,
.pm-status-retired {
    background: var(--pm-warning-color);
    color: white;
}

.pm-status-pastoral_break {
    background: var(--pm-text-muted);
    color: white;
}

.pm-user-actions {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pm-user-actions .pm-btn-outline {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--pm-primary-color);
    color: var(--pm-primary-color);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.pm-user-actions .pm-btn-outline:hover {
    border: 2px solid var(--pm-primary-color);
    background-color: var(--pm-primary-color);
    color: white;
}

.pm-user-actions .pm-btn-outline.editing {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--pm-secondary-color);
    color: var(--pm-secondary-color);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(30, 58, 95, 0.3);
}

.pm-user-actions .pm-btn-outline.editing:hover {
    border: 2px solid var(--pm-secondary-color);
    background-color: var(--pm-secondary-color);
    color: white;
}

.pm-dashboard-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.pm-dashboard-section {
    background: var(--pm-card-bg);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(30, 58, 95, 0.06);
}

.pm-dashboard-section h2 {
    margin: 0 0 20px 0;
    color: var(--pm-primary-color);
    font-size: 20px;
    font-weight: 700;
    border-bottom: 2px solid var(--pm-primary-color);
    padding-bottom: 8px;
    line-height: 2;
}

.pm-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 20px;
}

.pm-info-item label {
    font-size: 18px;
    margin-bottom: 10px;
    display: inline-block;
}

.pm-info-item small {
    margin-left: 5px;
    font-size: 12px;
}

.pm-info-item-full {
    grid-column: 1 / -1;
}

.pm-info-value,
.excelizer-picker-display-div,
.custom-time-picker .time-picker-display {
    font-size: 14px !important;
    color: var(--pm-text-color);
    background: var(--pm-card-bg) !important;
    border-radius: 8px !important;
    outline: 1px solid #e8eaed !important;
    border: 10px solid var(--pm-card-bg) !important;
    min-height: 40px;
    display: flex;
    align-items: center;
    line-height: 1;
    height: 50px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: none !important;
    padding: 0 !important;
}

.pm-preview-mode {
    pointer-events: none;
    cursor: default;
}

.pm-text-area {
    width: 100%;
    min-height: 120px;
    line-height: 1.5;
    font-family: inherit;
    align-items: flex-start;
    word-wrap: break-word;
    overflow: auto;
    display: block;
}

.pm-datetime-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pm-datetime-wrapper .excelizer-picker-group {
    flex: 1;
}

.excelizer-picker-display-div .excelizer-picker-input-icon,
.pm-d-none {
    display: none !important;
}

.pm-info-item .excelizer-picker-group {
    pointer-events: none;
}

.pm-info-item .excelizer-picker-group.pm-editing {
    pointer-events: auto;
}

.pm-biography {
    background: var(--pm-card-bg);
    padding: 16px;
    border-radius: 10px;
    border-left: 3px solid var(--pm-primary-color);
}

.pm-biography p {
    margin: 0;
    color: var(--pm-text-color);
    line-height: 1.5;
    font-size: 14px;
}

.pm-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.pm-action-card {
    background: var(--pm-card-bg);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    border: 1px solid #e8eaed;
    transition: all 0.3s ease;
}

.pm-action-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    border-color: var(--pm-primary-color);
}

.pm-action-icon {
    width: 50px;
    height: 50px;
    background: var(--pm-primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px auto;
    color: white;
    font-size: 20px;
}

.pm-action-card h3 {
    margin: 0 0 8px 0;
    color: var(--pm-primary-color);
    font-size: 16px;
    font-weight: 700;
}

.pm-action-card p {
    margin: 0 0 16px 0;
    color: var(--pm-text-muted);
    font-size: 13px;
    line-height: 1.4;
}

.pm-dashboard-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 20px;
}

.pm-dashboard-footer {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    padding: 24px;
    background: var(--pm-card-bg);
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(30, 58, 95, 0.06);
}

.pm-btn-outline {
    background: transparent;
    border: 2px solid var(--pm-primary-color);
    color: var(--pm-primary-color);
}

.pm-btn-outline:hover {
    background: var(--pm-primary-color);
    color: white;
}

.pm-btn-outline:hover i {
    color: white;
}

.pm-catechist-portal-access-denied h2 {
    color: var(--pm-danger-color);
    font-size: 28px;
    margin-bottom: 20px;
}

.pm-catechist-portal-access-denied p {
    color: var(--pm-text-muted);
    font-size: 18px;
    line-height: 1.6;
}

/* No Profile Styles */
.pm-catechist-portal-no-profile {
    text-align: center;
    max-width: 600px;
    margin: 80px auto;
    padding: 60px 40px;
    background: var(--pm-card-bg);
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(30, 58, 95, 0.1);
    position: relative;
}

.pm-catechist-portal-no-profile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--pm-primary-color);
    border-radius: 20px 20px 0 0;
}

.pm-no-profile-icon {
    width: 140px;
    aspect-ratio: 1;
    border-radius: 50%;
    margin: 0 auto 30px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--pm-primary-color);
    border: 10px solid rgba(0, 0, 0, 0.2);
    padding: 20px;
    box-sizing: border-box;
}

.pm-no-profile-icon i {
    font-size: 50px;
    color: var(--pm-background-color);
}

.pm-catechist-portal-no-profile h2 {
    color: var(--pm-primary-color);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.pm-catechist-portal-no-profile p {
    color: var(--pm-text-color);
    font-size: 18px;
    line-height: 1.6;
    margin: 0 0 40px 0;
    font-weight: 500;
}

.pm-no-profile-actions {
    margin-top: 30px;
}

.pm-no-profile-actions .pm-btn {
    display: inline-block;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pm-no-profile-actions .pm-btn-primary {
    background: var(--pm-primary-color);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(30, 58, 95, 0.2);
}

.pm-no-profile-actions .pm-btn-primary:hover {
    background: var(--pm-secondary-color);
    box-shadow: 0 6px 20px rgba(30, 58, 95, 0.3);
    color: white;
}

/* Ministry Information Section */
.pm-section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(30, 58, 95, 0.1);
}

.pm-section-header .pm-section-actions {
    margin-left: auto;
}

.pm-section-icon {
    width: 50px;
    height: 50px;
    background: var(--pm-primary-color);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(30, 58, 95, 0.2);
}

.pm-section-content h2 {
    margin: 0 0 5px 0;
    color: var(--pm-primary-color);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}

.pm-section-content p {
    margin: 0;
    color: var(--pm-text-muted);
    font-size: 14px;
    font-weight: 500;
}

/* Ministry Content - Different layouts based on role configuration */
.pm-ministry-content {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 30px;
}

.pm-ministry-same-roles .pm-ministry-areas,
.pm-ministry-same-roles .pm-ministry-roles {
    flex: 45% 1;
}

.pm-ministry-areas h3,
.pm-ministry-roles h3 {
    margin: 0 0 20px 0;
    color: var(--pm-primary-color);
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pm-ministry-areas h3::before {
    content: '⛪';
    font-size: 20px;
}

.pm-ministry-roles h3::before {
    content: '👤';
    font-size: 20px;
}

.pm-ministry-roles h3::before {
    content: '👤';
    font-size: 20px;
}

/* Roles Showcase - Default (same roles all categories) */
.pm-roles-showcase.pm-roles-same-all {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 15px;
    justify-content: flex-start;
}

.pm-roles-showcase.pm-roles-same-all .pm-role-tag {
    background: var(--pm-card-bg);
    border: 2px solid var(--pm-primary-color);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(30, 58, 95, 0.1);
    justify-content: flex-start;
}

.pm-roles-showcase.pm-roles-same-all .pm-role-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(30, 58, 95, 0.2);
    border-color: var(--pm-secondary-color);
}

.pm-roles-showcase.pm-roles-same-all .pm-role-tag i {
    font-size: 20px;
    color: var(--pm-primary-color);
    background: rgba(30, 58, 95, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pm-roles-showcase.pm-roles-same-all .pm-role-tag span {
    font-weight: 600;
    color: var(--pm-text-color);
    font-size: 14px;
}

/* Roles Showcase - Different roles per category */
.pm-roles-showcase.pm-roles-by-category {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 15px;
}

/* Category Role Groups */
.pm-category-role-group {
    background: var(--pm-card-bg);
    border: 2px solid rgba(30, 58, 95, 0.12);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.pm-category-role-group:hover {
    border-color: var(--pm-primary-color);
    box-shadow: 0 4px 15px rgba(30, 58, 95, 0.15);
}

.pm-category-name {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(30, 58, 95, 0.1);
}

.pm-category-name i {
    font-size: 18px;
    color: var(--pm-primary-color);
    background: rgba(30, 58, 95, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pm-category-name span {
    font-weight: 600;
    color: var(--pm-primary-color);
    font-size: 16px;
}

.pm-category-roles {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pm-category-roles .pm-role-tag {
    background: var(--pm-card-bg);
    border: 2px solid rgba(30, 58, 95, 0.12);
    border-radius: 16px;
    padding: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 12px;
}

.pm-category-roles .pm-role-tag i {
    font-size: 18px;
    color: var(--pm-primary-color);
    background: rgba(30, 58, 95, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pm-category-roles .pm-role-tag span {
    font-weight: 600;
    color: var(--pm-primary-color);
    font-size: 16px;
}

/* Ministry Areas Grid */
.pm-areas-grid {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 15px;
}

.pm-area-card {
    background: var(--pm-card-bg);
    border-radius: 16px;
    padding: 12px;
    border: 2px solid rgba(30, 58, 95, 0.08);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.pm-area-card:hover {
    border-color: var(--pm-primary-color);
    box-shadow: 0 6px 25px rgba(30, 58, 95, 0.15);
}

.pm-area-icon {
    width: 50px;
    height: 50px;
    background: var(--pm-primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}

.pm-area-content {
    flex: 1;
}

.pm-area-content h4 {
    margin: 0;
    color: var(--pm-primary-color);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
}

.pm-area-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--pm-success-color);
    color: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Ministry Empty State */
.pm-ministry-empty {
    text-align: center;
    padding: 60px 40px;
    background: var(--pm-card-bg);
    border-radius: 16px;
    border: 2px dashed rgba(30, 58, 95, 0.2);
    width: 100%;
}

.pm-empty-icon {
    width: 80px;
    height: 80px;
    background: var(--pm-primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    margin: 0 auto 24px auto;
    box-shadow: 0 4px 20px rgba(30, 58, 95, 0.3);
}

.pm-ministry-empty h3 {
    margin: 0 0 12px 0;
    color: var(--pm-primary-color);
    font-size: 20px;
    font-weight: 600;
}

.pm-ministry-empty p {
    color: var(--pm-text-muted);
    font-size: 14px;
    line-height: 1.5;
    margin: 0 auto;
}

/* Table Styles */
.pm-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    font-size: 14px;
    background: var(--pm-card-bg);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.pm-table thead {
    background: var(--pm-primary-color);
    color: white;
}

.pm-table thead th {
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pm-table tbody tr {
    border-bottom: 1px solid rgba(30, 58, 95, 0.2);
    transition: all 0.2s ease;
}

.pm-table tbody tr:hover {
    background: rgba(30, 58, 95, 0.02);
}

.pm-table tbody tr:last-child {
    border-bottom: none;
}

.pm-table tbody td {
    padding: 18px 20px;
    vertical-align: middle;
    color: var(--pm-text-color);
    line-height: 1.4;
}

.pm-table tbody td strong {
    color: var(--pm-primary-color);
    font-weight: 600;
    font-size: 15px;
}

.pm-participant-info {
    max-width: 120px;
}

.pm-participant-contact,
.pm-guardian-contact-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.pm-contact-link {
    color: var(--pm-primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(30, 58, 95, 0.05);
    display: inline-block;
    box-shadow: none;
    outline: none;
}

.pm-contact-link:hover {
    color: white;
    background: var(--pm-primary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 58, 95, 0.3);
}

.pm-phone-link::before {
    content: '\f095';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 6px;
}

.pm-email-link::before {
    content: '\f0e0';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 6px;
}

.pm-tooltip-text {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
    background: var(--pm-text-color);
    color: white;
    padding: 10px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    min-width: 120px;
    max-width: 200px;
    word-wrap: break-word;
    white-space: normal;
    text-align: center;
}

.pm-tooltip-text::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--pm-text-color);
    border-bottom: none;
}

.pm-btn:hover .pm-tooltip-text {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-130%);
}

.pm-btn:hover .pm-tooltip-text::after {
    border-top-color: var(--pm-text-color);
}

/* Attendance Table Styles */
.pm-table-attendance {
    overflow-x: auto;
    overflow-y: visible;
    padding-bottom: 20px;
    position: relative;
    border-radius: 10px;
}

.pm-table-attendance .pm-table th:first-child,
.pm-table-attendance .pm-table td:first-child {
    position: sticky;
    left: 0;
    top: 0;
    z-index: 1;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    min-width: 200px;
}

.pm-table-attendance .pm-table {
    min-width: 1200px;
}

.pm-table-attendance .pm-table th {
    min-width: 110px;
    background: var(--pm-primary-color);
    text-align: center;
}

.pm-table-attendance .pm-table th .pm-date-header {
    display: flex;
    flex-direction: column;
    gap: 7px;
    justify-content: center;
    align-items: center;
}

.pm-table-attendance .pm-table td:first-child {
    background: white;
}

.pm-table-attendance .pm-table th:first-child {
    z-index: 3;
}

.pm-table .pm-grid-column {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

/* Attendance Cell Styles */
.attendance-cell {
    text-align: center;
    padding: 8px 6px;
    position: relative;
}

.attendance-cell:hover .pm-tooltip-text {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-80%);
}

.attendance-cell .base-icon {
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 20px;
    color: var(--pm-text-muted);
}

.icon-arrow {
    color: var(--pm-text-muted);
    margin-left: 4px;
    width: 24px;
    height: 24px;
}

/* Participant Row Styles */
.participant-row {
    transition: background-color 0.2s ease;
}

.participant-row:hover {
    background: rgba(30, 58, 95, 0.02);
}

.participant-row .pm-grid-column {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    min-width: 200px;
}

.participant-row .pm-grid-column span {
    width: 100%;
}

.participant-row .pm-participant-code {
    font-size: 12px;
    font-weight: 600;
    color: var(--pm-primary-color);
    background: rgba(30, 58, 95, 0.1);
    padding: 2px 6px;
    border-radius: 3px;
    display: inline-block;
    min-width: 60px;
    text-align: center;
}

.participant-row .pm-participant-name {
    min-width: 120px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--pm-text-color);
}

/* Attendance Legend Styles */
.pm-attendance-legend {
    margin-bottom: 20px;
    padding: 15px 20px;
    background: var(--pm-card-bg);
    border: 1px solid rgba(30, 58, 95, 0.1);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.pm-attendance-legend .pm-legend-items {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    justify-content: flex-start;
}

.pm-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--pm-text-color);
    text-align: center;
}

.pm-legend-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 14px;
    min-width: 24px;
}

.pm-legend-icon.attendance-present {
    background: rgba(76, 175, 132, 0.2);
    color: var(--pm-success-color);
}

.pm-legend-icon.attendance-absent {
    background: rgba(220, 53, 69, 0.2);
    color: var(--pm-danger-color);
}

.pm-legend-icon.attendance-late {
    background: rgba(255, 193, 7, 0.2);
    color: var(--pm-warning-color);
}

.pm-legend-icon.attendance-excused {
    background: rgba(23, 162, 184, 0.2);
    color: var(--pm-info-color);
}

.pm-legend-icon.attendance-left-without-authorization {
    background: rgba(255, 193, 7, 0.2);
    color: var(--pm-warning-color);
}

.pm-legend-icon.attendance-pending {
    background: rgba(108, 117, 125, 0.2);
    color: var(--pm-text-muted);
}

/* Attendance Status Icons */
.attendance-present {
    color: var(--pm-success-color);
    font-weight: bold;
}

.attendance-late {
    color: var(--pm-warning-color);
    font-weight: bold;
}

.attendance-absent {
    color: var(--pm-danger-color);
    font-weight: bold;
}

.attendance-excused {
    color: var(--pm-info-color);
    font-weight: bold;
}

.attendance-left-without-authorization {
    color: var(--pm-warning-color);
    font-weight: bold;
}

.attendance-pending {
    color: var(--pm-text-muted);
    font-weight: bold;
}

/* Attendance Dropdown Styles */
.attendance-dropdown {
    background: var(--pm-card-bg);
    border: 1px solid var(--pm-border-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    max-width: 250px;
    z-index: 1000;
    overflow: hidden;
}

.attendance-options {
    max-height: 300px;
    overflow-y: auto;
}

.attendance-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.attendance-option:last-child {
    border-bottom: none;
}

.attendance-option:hover {
    background: rgba(30, 58, 95, 0.05);
}

.attendance-option.selected {
    background: rgba(30, 58, 95, 0.1);
    font-weight: 600;
}

.option-icon {
    font-size: 16px;
    min-width: 20px;
    text-align: center;
}

.option-text {
    font-size: 14px;
    color: var(--pm-text-color);
    flex: 1;
}

/* Interactive Attendance Cell Styles */
.select-assistance {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px;
    border-radius: 4px;
    background: var(--pm-background-color);
    transition: background-color 0.2s ease;
    box-shadow: none;
    outline: none;
}

.select-assistance:hover {
    background: rgba(30, 58, 95, 0.05);
}

.icon-inactive {
    font-size: 16px;
    transition: all 0.2s ease;
}

.icon-arrow {
    opacity: 0.6;
    font-size: 12px;
    transition: opacity 0.2s ease;
}

.select-assistance:hover .icon-arrow {
    opacity: 1;
}

/* Status-specific colors for icons */
.icon-present {
    color: var(--pm-success-color);
}

.icon-late {
    color: var(--pm-warning-color);
}

.icon-absent {
    color: var(--pm-danger-color);
}

.icon-excused {
    color: var(--pm-info-color);
}

.icon-left-without-authorization {
    color: var(--pm-warning-color);
}

.icon-pending {
    color: var(--pm-text-muted);
}

/* Badges Container */
.pm-badges-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.pm-badges-container .pm-catechist-none {
    min-width: 100px;
    text-align: center;
}

.pm-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
}

.pm-badge.pm-primary {
    background: var(--pm-primary-color);
    color: white;
    box-shadow: 0 2px 8px rgba(30, 58, 95, 0.2);
}

.pm-badge.pm-secondary {
    background: var(--pm-secondary-color);
    color: white;
    box-shadow: 0 2px 8px rgba(201, 162, 77, 0.2);
}

.pm-badge.pm-status-inactive {
    background: var(--pm-text-muted);
    color: white;
}

/* Text Muted */
.pm-text-muted {
    color: var(--pm-text-muted);
    font-weight: 500;
    font-size: 14px;
}

/* Actions Column */
.pm-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.pm-btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    min-width: auto;
    gap: 0;
}

.pm-btn-icon i,
.pm-btn-icon .dashicons {
    margin: 0;
}

.pm-btn-success {
    background: var(--pm-success-color);
    border: 2px solid var(--pm-success-color);
    color: white;
}

.pm-btn-success:hover {
    background: white;
    color: var(--pm-success-color);
}

.pm-btn-primary {
    background: var(--pm-primary-color);
    border: 2px solid var(--pm-primary-color);
    color: white;
    outline: none !important;
    box-shadow: none !important;
}

.pm-btn-primary:hover {
    background: white;
    color: var(--pm-primary-color);
}

/* Groups Content Container */
.pm-groups-content,
.pm-participants-content {
    margin-top: 20px;
    border-radius: 10px;
}

#pm-groups-table,
.pm-participants-content {
    overflow: auto;
}

.pm-participants-content table td {
    text-wrap-mode: nowrap;
}

.pm-groups-content table {
    min-width: max-content;
    margin-bottom: 10px;
}

.pm-groups-content .pm-table thead th:first-child,
.pm-task-content .pm-table thead th:first-child,
.pm-participants-content .pm-table thead th:first-child {
    border-radius: 10px 0 0 0;
}

.pm-participants-content .pm-table thead th:last-child,
.pm-task-content .pm-table thead th:last-child,
.pm-participants-content .pm-table thead th:last-child {
    border-radius: 0 10px 0 0;
}

.pm-participants-content .pm-table thead th.pm-pending-payments {
    max-width: 120px;
}

/* Calendar Styles */
.pm-calendar-container {
    width: 100%;
    margin: 0 auto;
    background: var(--pm-card-bg);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(30, 58, 95, 0.06);
}

.pm-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 0 10px;
}

.pm-calendar-nav {
    background: transparent;
    border: 2px solid var(--pm-primary-color);
    color: var(--pm-primary-color);
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
    outline: none;
}

.pm-calendar-nav:hover {
    background: var(--pm-primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(30, 58, 95, 0.3);
}

.pm-calendar-nav i {
    margin: 0;
}

.pm-calendar-month {
    font-size: 24px;
    font-weight: 700;
    color: var(--pm-primary-color);
    text-align: center;
    flex: 1;
    margin: 0 20px;
}

.pm-calendar-grid {
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 15px;
}

.pm-calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    padding: 15px 0;
    border-bottom: 2px solid rgba(30, 58, 95, 0.1);
}

.pm-calendar-weekday {
    font-weight: 600;
    color: var(--pm-text-muted);
    text-align: center;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 0;
}

.pm-calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    grid-auto-rows: minmax(120px, auto);
}

.pm-calendar-day {
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    font-size: 16px;
    font-weight: 600;
    color: var(--pm-text-color);
    border-radius: 12px;
    transition: all 0.2s ease;
    cursor: pointer;
    background: var(--pm-background-color);
    border: 1px solid rgba(30, 58, 95, 0.05);
    padding: 8px;
    position: relative;
}

.pm-calendar-day.today {
    background: rgba(30, 58, 95, 0.1);
    border: 2px solid var(--pm-primary-color);
}

.pm-calendar-day:hover {
    background: var(--pm-primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(30, 58, 95, 0.2);
}

.pm-calendar-day-number {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 16px;
    font-weight: 600;
    color: inherit;
}

.pm-calendar-empty {
    background: transparent !important;
    border: none !important;
    cursor: default !important;
    box-shadow: none !important;
}

.pm-calendar-empty:hover {
    background: transparent !important;
    color: inherit !important;
    transform: none !important;
    box-shadow: none !important;
}

.pm-calendar-day-activities,
.pm-calendar-day-birthdays,
.pm-calendar-day-tasks {
    position: absolute;
    bottom: 8px;
    right: 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: 60px;
    background: rgba(255, 255, 255, 0.8);
    padding: 5px;
    box-sizing: border-box;
    border-radius: 50%;
    width: 27px;
    aspect-ratio: 1;
}

.pm-calendar-day-events-wrapper {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: auto;
}

.pm-calendar-day-events-wrapper>.pm-calendar-day-activities,
.pm-calendar-day-events-wrapper>.pm-calendar-day-birthdays,
.pm-calendar-day-events-wrapper>.pm-calendar-day-tasks {
    position: relative;
    right: 0;
    bottom: 0;
}

.pm-calendar-day-activities i {
    font-size: 16px;
    color: var(--pm-primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pm-calendar-day-tasks i {
    font-size: 16px;
    color: var(--pm-secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pm-calendar-day-birthdays i {
    font-size: 16px;
    color: var(--pm-info-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pm-activity-count,
.pm-task-count,
.pm-birthday-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--pm-danger-color);
    color: white;
    border-radius: 50%;
    width: 14px;
    height: 14px;
    font-size: 9px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.pm-calendar-day-activities .pm-tooltip-text,
.pm-calendar-day-birthdays .pm-tooltip-text,
.pm-calendar-day-tasks .pm-tooltip-text {
    width: 150px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
}

.pm-tooltip-activity,
.pm-tooltip-birthday,
.pm-tooltip-task {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    padding: 5px 0;
}

.pm-tooltip-activity:not(:last-child):after,
.pm-tooltip-birthday:not(:last-child):after,
.pm-tooltip-task:not(:last-child):after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--pm-card-bg);
    opacity: .2;
    bottom: -4px;
}

.pm-tooltip-activity:last-child,
.pm-tooltip-task:last-child {
    border-bottom: none;
}

.pm-tooltip-activity .activity-title,
.pm-calendar-day-birthdays .birthday-title,
.pm-tooltip-task .task-title {
    font-weight: 600;
    color: var(--pm-secondary-color);
    font-size: 15px;
}

.pm-tooltip-activity .activity-time,
.pm-tooltip-task .task-type {
    font-size: 13px;
    color: var(--pm-border-color);
}

.pm-calendar-day-activities:hover .pm-tooltip-text,
.pm-calendar-day-birthdays:hover .pm-tooltip-text,
.pm-calendar-day-tasks:hover .pm-tooltip-text {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-110%);
}

.pm-calendar-day-activities:hover .pm-tooltip-text:after,
.pm-calendar-day-birthdays:hover .pm-tooltip-text:after,
.pm-calendar-day-tasks:hover .pm-tooltip-text:after {
    border-top-color: var(--pm-secondary-color)
}

.pm-pending-items {
    background: var(--pm-warning-color);
    color: var(--pm-text-color);
    padding: 10px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    gap: 5px;
    font-weight: 600;
    font-size: 16px;
    position: relative;
}

.pm-pending-items i {
    font-size: 12px;
}

.pm-pending-items .pm-tooltip-text {
    min-width: 150px;
}

.pm-pending-items:hover .pm-tooltip-text {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(-105%);
}

.pm-table tbody td .pm-pending-items strong {
    color: white;
    display: inline-block;
    margin-bottom: 5px;
}

.pm-table tbody td .pm-pending-items .pm-tooltip-activity:not(:last-child) {
    margin-bottom: 10px;
}

.pm-table tbody td .pm-pending-items .pm-tooltip-activity:after {
    bottom: -6px;
}

/* Password Modal Styles */
.pm-password-modal {
    position: fixed;
    top: 0;
    left: 0;
    max-width: 100%;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 !important;
}

.pm-password-modal .pm-modal-content {
    background: var(--pm-card-bg);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08), 0 5px 15px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(30, 58, 95, 0.1);
    max-width: 500px;
    width: 90%;
}

.pm-password-modal .pm-modal-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding: 30px 20px;
    border-bottom: 2px solid rgba(30, 58, 95, 0.1);
    position: relative;
}

.pm-password-modal .pm-modal-header .pm-section-icon {
    width: 50px;
    height: 50px;
    background: var(--pm-primary-color);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(30, 58, 95, 0.2);
}

.pm-password-modal .pm-modal-header .pm-section-content h2 {
    margin: 0 0 5px 0;
    color: var(--pm-primary-color);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}

.pm-password-modal .pm-modal-header .pm-section-content p {
    margin: 0;
    color: var(--pm-text-muted);
    font-size: 14px;
    font-weight: 500;
}

.pm-password-modal .pm-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: var(--pm-text-muted);
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
    outline: none;
    width: 35px;
    aspect-ratio: 1;
}

.pm-password-modal .pm-modal-close:hover {
    background: rgba(30, 58, 95, 0.1);
    color: var(--pm-primary-color);
}

.pm-password-modal .pm-modal-body {
    padding: 0 20px 30px 20px;
}

.pm-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--pm-primary-color);
    font-size: 14px;
}

.pm-form-group input,
.pm-form-group textarea {
    width: 100%;
    padding: 10px 16px;
    border: 2px solid var(--pm-border-color);
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
    background: var(--pm-card-bg);
    color: var(--pm-text-color);
    line-height: 1.5;
    font-family: inherit;
}

.pm-form-group input:focus {
    outline: none;
    border-color: var(--pm-primary-color);
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

.pm-form-actions {
    text-align: center;
    margin-top: 30px;
}

/* Activity Modal Styles */
.pm-activity-modal,
.pm-calendar-modal,
.pm-profile-photo-modal,
.pm-photo-modal-overlay,
.pm-create-task-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pm-modal-hidden {
    display: none !important;
}

.pm-modal-overlay {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pm-modal-content {
    background: var(--pm-card-bg);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08), 0 5px 15px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(30, 58, 95, 0.1);
    max-width: 700px;
    width: 85%;
}

.pm-modal-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding: 30px 20px;
    border-bottom: 2px solid rgba(30, 58, 95, 0.1);
    position: relative;
}

.pm-modal-header .pm-section-icon {
    width: 50px;
    height: 50px;
    background: var(--pm-primary-color);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(30, 58, 95, 0.2);
}

.pm-modal-header .pm-section-content h2 {
    margin: 0 0 5px 0;
    color: var(--pm-primary-color);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}

.pm-modal-header .pm-section-content p {
    margin: 0;
    color: var(--pm-text-muted);
    font-size: 14px;
    font-weight: 500;
}

.pm-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: var(--pm-text-muted);
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
    outline: none;
    width: 35px;
    aspect-ratio: 1;
}

.pm-modal-close:hover {
    background: rgba(30, 58, 95, 0.1);
    color: var(--pm-primary-color);
}

.pm-modal-body {
    padding: 0 20px 30px 20px;
    max-height: 450px;
    overflow-y: auto;
}

.pm-modal {
    margin: 0;
    max-width: 100%;
}

.pm-modal .pm-modal-overlay {
    position: absolute;
    z-index: -1;
}

/* Modal Section Titles */
.pm-section-title {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 20px;
    color: var(--pm-primary-color);
    background: var(--pm-card-bg);
    border: 1px solid rgba(30, 58, 95, 0.1);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(30, 58, 95, 0.08);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.pm-section-title i {
    width: 40px;
    height: 40px;
    background: var(--pm-primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    box-shadow: 0 3px 10px rgba(30, 58, 95, 0.15);
}

.pm-activity-info,
.pm-task-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.pm-activity-info:not(:last-child),
.pm-calendar-modal .pm-modal-section:not(:last-child),
.pm-task-info:not(:last-child) {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e8eaed;
}

.pm-activity-info .pm-info-item,
.pm-task-info .pm-info-item {
    background: var(--pm-card-bg);
    padding: 16px;
    border-radius: 10px;
    border: 1px solid #e8eaed;
}

.pm-activity-info .pm-info-item label,
.pm-task-info .pm-info-item label {
    display: block;
    font-weight: 700;
    color: var(--pm-primary-color);
    margin-bottom: 8px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pm-activity-info .pm-info-item span,
.pm-task-info .pm-info-item span {
    color: var(--pm-text-color);
    font-size: 16px;
    font-weight: 500;
}

.pm-groups-task {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pm-group-name {
    background: var(--pm-primary-color);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

.pm-groups-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pm-group-item {
    font-size: 14px;
    color: var(--pm-text-color);
}

.pm-activity-info .pm-biography,
.pm-task-info .pm-biography {
    background: var(--pm-card-bg);
    padding: 16px;
    border-radius: 10px;
    border: 1px solid #e8eaed;
}

.pm-activity-info .pm-biography p,
.pm-task-info .pm-biography p {
    margin: 0;
    color: var(--pm-text-color);
    line-height: 1.5;
    font-size: 14px;
}

/* Password Reset Styles */
.pm-password-reset-form,
.pm-password-reset-confirm {
    max-width: 500px;
    margin: 40px auto;
    padding: 40px;
    background: var(--pm-card-bg);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08), 0 5px 15px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(30, 58, 95, 0.1);
    text-align: center;
}

.pm-reset-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(30, 58, 95, 0.1);
}

.pm-reset-header .pm-section-icon {
    width: 60px;
    height: 60px;
    background: var(--pm-primary-color);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    margin: 0 auto 15px auto;
    box-shadow: 0 4px 15px rgba(30, 58, 95, 0.2);
}

.pm-reset-header .pm-section-content h2 {
    margin: 0 0 8px 0;
    color: var(--pm-primary-color);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
}

.pm-reset-header .pm-section-content p {
    margin: 0;
    color: var(--pm-text-muted);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
}

.pm-success-actions {
    margin-top: 20px;
}

.pm-success-actions .pm-btn {
    display: inline-block;
    padding: 12px 24px;
    background: var(--pm-success-color);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 175, 132, 0.2);
}

.pm-success-actions .pm-btn:hover {
    background: var(--pm-primary-color);
    box-shadow: 0 6px 20px rgba(30, 58, 95, 0.3);
}

.pm-error-message {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.2);
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 20px;
    text-align: left;
}

.pm-error-message p {
    margin: 0 0 8px 0;
    color: var(--pm-danger-color);
    font-size: 14px;
    font-weight: 500;
}

.pm-error-message p:last-child {
    margin-bottom: 0;
}

.pm-form-group {
    margin-bottom: 20px;
    text-align: left;
}

.pm-form-actions .pm-btn-secondary {
    background: var(--pm-secondary-color);
    border: 2px solid var(--pm-secondary-color);
    color: white;
}

.pm-form-actions .pm-btn-secondary:hover {
    background: white;
    color: var(--pm-secondary-color);
    border-color: var(--pm-secondary-color);
}

/* Password Input Toggle Styles */
.pm-password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.pm-password-input-wrapper input {
    flex: 1;
    padding-right: 50px;
    box-sizing: border-box;
}

.pm-password-input-wrapper .pm-toggle-password {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 5px;
    background: none;
    border: none;
    color: var(--pm-text-muted);
    cursor: pointer;
    font-size: 18px;
    padding: 0;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.pm-password-input-wrapper .pm-toggle-password:hover {
    color: var(--pm-primary-color);
}

/* Calendar Controls */
.pm-calendar-controls {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    align-items: center;
}

.pm-calendar-controls .pm-custom-select {
    flex: 1;
    max-width: 200px;
}

/* Custom Select Styles */
.pm-custom-select {
    position: relative;
    width: 100%;
}

.pm-select-trigger {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--pm-border-color);
    border-radius: 8px;
    background: var(--pm-card-bg);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    font-size: 14px;
    box-sizing: border-box;
    gap: 10px;
    line-height: 1.4;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    outline: none;
}

.pm-number-input-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--pm-border-color);
    border-radius: 6px;
    background: var(--pm-card-bg);
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pm-number-decrease,
.pm-number-increase {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
    color: var(--pm-text-muted);
    outline: none !important;
}

.pm-number-input-container input[type="number"] {
    border: none;
    min-width: calc(100% - 80px);
    margin: 0;
    height: 44px;
    box-sizing: border-box;
    text-align: center;
    box-shadow: none;
    border-radius: 0;
}

.pm-number-input-field::-webkit-outer-spin-button,
.pm-number-input-field::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.pm-number-input-container input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.pm-number-decrease:hover,
.pm-number-increase:hover {
    background-color: var(--pm-primary-color);
    color: white;
}

.pm-number-decrease {
    border-right: 1px solid var(--pm-border-color);
}

.pm-number-increase {
    border-left: 1px solid var(--pm-border-color);
}

.pm-create-task-modal .pm-select-trigger .pm-select-text {
    display: flex;
    align-items: center;
    gap: 15px;
}

.pm-select-trigger:hover {
    border-color: var(--pm-primary-color);
}

.pm-select-trigger.active {
    border-color: var(--pm-primary-color);
}

.pm-select-value {
    flex: 1;
    color: var(--pm-text-color);
    font-weight: 500;
}

.pm-select-value.placeholder {
    color: var(--pm-text-muted);
    font-style: italic;
}

.pm-select-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pm-primary-color);
}

.pm-select-arrow .fas {
    transition: transform 0.3s ease;
    font-size: 16px;
}

.pm-select-trigger.active .pm-select-arrow .fas {
    transform: rotate(180deg);
}

.pm-select-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--pm-card-bg);
    border: 2px solid var(--pm-border-color);
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-height: 250px;
    overflow-y: auto;
    display: none;
}

.pm-select-options.show {
    display: block;
}

.pm-select-option {
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    border-bottom: 1px solid var(--pm-border-color);
    display: flex;
    align-items: center;
    gap: 15px;
}

.pm-select-option:last-child {
    border-bottom: none;
}

.pm-select-option:hover {
    background-color: rgba(30, 58, 95, 0.1);
    color: var(--pm-primary-color);
}

.pm-select-option.selected {
    background-color: var(--pm-primary-color);
    color: white;
}

.pm-groups-task {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.pm-groups-task .pm-group-name {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 10px 15px;
    border-radius: 12px;
    background-color: var(--pm-primary-color);
    color: white;
    line-height: 1;
}

/* Color Picker Styles */
.pm-color-picker-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 8px;
}

.pm-color-input {
    width: 50px;
    height: 40px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    background: transparent;
}

.pm-color-value-display {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.pm-form-group .pm-color-input {
    padding: 1px 3px;
    border-radius: 0;
    max-width: 100px;
}

.pm-color-hex-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--pm-text-color);
    background: #f8f9fa;
    padding: 6px 10px;
    border-radius: 4px;
    border: 1px solid #e8eaed;
    min-width: 80px;
    text-align: center;
}

.pm-color-copy-btn {
    background: transparent;
    border: 1px solid #e8eaed;
    border-radius: 6px;
    padding: 8px;
    cursor: pointer;
    color: var(--pm-text-color);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pm-color-copy-btn:hover {
    background: var(--pm-primary-color);
    color: white;
    border-color: var(--pm-primary-color);
}

.pm-color-copy-btn.copied {
    background: var(--pm-success-color);
    color: white;
    border-color: var(--pm-success-color);
}

.pm-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--pm-text-muted);
}

.pm-empty-state-icon {
    font-size: 48px;
    margin-bottom: 20px;
    line-height: normal;
}

.pm-empty-state-text {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 20px;
    color: var(--pm-text-muted);
}

.pm-empty-state-text:last-child {
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .pm-tooltip-text {
        font-size: 11px;
        padding: 5px 8px;
        max-width: 150px;
    }

    .pm-attendance-legend .pm-legend-items {
        gap: 15px;
        justify-content: center;
    }

    .pm-legend-item {
        font-size: 13px;
    }

    .pm-legend-icon {
        width: 20px;
        height: 20px;
        font-size: 12px;
        min-width: 20px;
    }

    .pm-table thead th,
    .pm-table tbody td {
        padding: 12px 10px;
    }

    .pm-table thead th {
        font-size: 12px;
    }

    .pm-actions {
        flex-direction: column;
        gap: 6px;
    }

    td .pm-actions {
        flex-direction: row;
    }

    .pm-btn-icon {
        width: 32px;
        height: 32px;
    }

    .pm-badges-container {
        gap: 6px;
    }

    .pm-password-reset-form,
    .pm-password-reset-confirm {
        margin: 20px auto;
        padding: 30px 20px;
    }

    .pm-reset-header .pm-section-content h2 {
        font-size: 24px;
    }

    .pm-form-actions .pm-btn {
        width: 100%;
        margin-bottom: 10px;
    }

    .pm-form-actions .pm-btn:not(:last-child) {
        margin-right: 0;
    }

    .pm-calendar-container {
        padding: 20px;
        max-width: 100%;
    }

    .pm-calendar-header {
        padding: 0 5px;
        margin-bottom: 20px;
    }

    .pm-calendar-nav {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .pm-calendar-month {
        font-size: 20px;
        margin: 0 10px;
    }

    .pm-calendar-weekday {
        font-size: 12px;
        padding: 8px 0;
    }

    .pm-calendar-day {
        min-height: 100px;
        font-size: 14px;
        padding: 6px;
    }

    .pm-calendar-day-number {
        font-size: 14px;
        top: 6px;
        left: 6px;
    }

    .pm-catechist-portal-login {
        margin: 20px auto;
        padding: 30px 20px;
    }

    .pm-catechist-portal-dashboard {
        padding: 10px;
    }

    .pm-catechist-portal-dashboard h1 {
        font-size: 24px;
    }

    .pm-dashboard-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .pm-dashboard-card {
        padding: 20px;
    }

    .pm-section-header {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .pm-section-icon {
        font-size: 20px;
    }

    .pm-section-header .pm-section-actions {
        margin: auto;
    }

    .pm-section-content h2 {
        font-size: 20px;
    }

    .pm-areas-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .pm-area-card {
        padding: 20px;
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .pm-area-icon {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .pm-roles-showcase {
        justify-content: center;
    }

    .pm-role-tag {
        font-size: 13px;
        padding: 8px 14px;
    }

    .pm-ministry-empty {
        padding: 40px 20px;
    }

    .pm-empty-icon {
        width: 70px;
        height: 70px;
        font-size: 28px;
    }

    .pm-actions-grid {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .pm-action-card {
        flex: 40% 1;
    }

    .pm-user-actions span {
        display: none;
    }
}

/* Responsive Design */
@media (max-width: 575px) {

    .pm-catechist-portal-login,
    .pm-password-reset-form,
    .pm-password-reset-confirm {
        margin: 30px auto;
        max-width: 90%;
    }

    .pm-ministry-content {
        flex-direction: column;
    }

    .pm-user-avatar {
        transform: translateY(-70%);
    }

    .pm-dashboard-header .pm-header-content {
        padding-top: 60px;
    }

    .pm-user-info {
        margin: auto;
    }

    .pm-user-actions {
        position: absolute;
        right: 30px;
        top: 10px;
        flex-direction: row;
    }

    .pm-user-actions button {
        padding: 10px 15px;
    }

    .pm-user-meta {
        justify-content: center;
    }

    .pm-user-role {
        text-align: center;
    }

    .pm-control-row {
        flex-direction: column;
    }

    .pm-control-row label,
    .pm-control-row label span {
        display: block;
        text-align: center;
        width: max-content;
        margin: auto;
    }

    .pm-control-row label #pm-opacity-value {
        margin-top: 15px;
    }

    .pm-action-card {
        flex: 100%;
    }

    #pm-shape-opacity {
        width: 100%;
        margin: 20px auto;
    }

    .pm-upload-content,
    .pm-option-tabs {
        flex-direction: column;
        text-align: center;
    }

    .pm-user-avatar img,
    .pm-avatar-edit-btn {
        transform: translateX(-20px);
    }

    .pm-info-grid {
        display: flex;
        flex-direction: column;
    }

    .pm-avatar-option,
    #pm-cover-preview-container .pm-preview-content {
        width: calc(50% - 12px);
    }

    .pm-modal-header,
    .pm-modal-actions,
    .pm-dashboard-actions {
        flex-direction: column;
        text-align: center;
    }

    .pm-table-attendance {
        margin: 0 -20px;
    }

    .pm-table-attendance .pm-table th {
        width: 120px;
    }

    .pm-table-attendance .pm-table th:first-child,
    .pm-table-attendance .pm-table td:first-child {
        min-width: 90px;
        width: 110px;
        border-left: none;
    }

    .pm-table .pm-grid-column {
        flex-direction: column;
    }
}