/***
 * LDGR Group Users - UI Redesign V2 (Eversley Training Brand)
 * Fresh modern look with improved button hierarchy, softer cards, and refined spacing
 * Parent: .ev-ldgr-wrap
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ============================================
   BASE
   ============================================ */

.content-area {
    background-color: #fff;
    margin: 0;
}

.ev-ldgr-wrap {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 1140px;
    margin: 0 auto;
    padding: 25px 0 80px 0;
    color: #1a1a1a;
    line-height: 1.6;
}

.ev-ldgr-wrap *,
.ev-ldgr-wrap *::before,
.ev-ldgr-wrap *::after {
    box-sizing: border-box;
}

/* ============================================
   COURSE INFO CARD
   ============================================ */
.ev-ldgr-wrap .ldgr-course-card {
    margin-bottom: 28px;
}

.ev-ldgr-wrap .ldgr-course-card .ldgr-top-banner {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 6px 24px rgba(0,0,0,0.06);
    padding: 32px 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border: 1px solid #e5e7eb;
    transition: box-shadow 0.3s ease;
}

.ev-ldgr-wrap .ldgr-course-card .ldgr-top-banner:hover {
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 10px 36px rgba(0,0,0,0.08);
}

.ev-ldgr-wrap .ldgr-course-card .ldgrs-title-wrap,
.ev-ldgr-wrap .ldgr-course-card .ldgrs-title-wrap > div {
    display: flex;
    align-items: center;
    gap: 22px;
}

/* Group Image */
.ev-ldgr-wrap .ldgr-card-thumbnail .ldgr-group-image {
    width: 84px;
    height: 84px;
    min-width: 84px;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(145deg, #e8f5e9 0%, #a5d6a7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.12);
}

.ev-ldgr-wrap .ldgr-card-thumbnail .ldgr-group-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-width: none;
}

/* Title */
.ev-ldgr-wrap .ldgr-card-info h1 {
    font-size: 21px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 10px 0;
    line-height: 1.35;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.4px;
}

/* Meta badges */
.ev-ldgr-wrap .ldgr-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.ev-ldgr-wrap .ldgr-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
    color: #1b5e20;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: 24px;
    white-space: nowrap;
    border: 1px solid rgba(46, 125, 50, 0.12);
    letter-spacing: 0.1px;
}

/* Action buttons container */
.ev-ldgr-wrap .ldgr-card-actions {
    display: flex;
    gap: 10px;
    align-items: stretch;
    flex-shrink: 0;
    flex-direction: column;
}

/* ---- BUTTONS (Unified System) ---- */

/* Edit Group — outlined green with icon */
.ev-ldgr-wrap .ldgr-btn-edit-group,
.ev-ldgr-wrap .ldgr-edit-group {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    border: 1.5px solid #2e7d32;
    color: #2e7d32;
    background: #ffffff;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    white-space: nowrap;
    letter-spacing: 0.1px;
}

.ev-ldgr-wrap .ldgr-btn-edit-group:hover,
.ev-ldgr-wrap .ldgr-edit-group:hover {
    background: #2e7d32;
    color: #ffffff;
    border-color: #2e7d32;
    box-shadow: 0 4px 14px rgba(46, 125, 50, 0.3);
    transform: translateY(-1px);
}

/* Back to Groups — subtle neutral */
.ev-ldgr-wrap .ldgr-btn-back,
.ev-ldgr-wrap button.ldgr-btn-back,
.ev-ldgr-wrap .ldgrs-right.ldgr-back-to-groups button,
.ev-ldgr-wrap .ldgrs-right.ldgr-back-to-groups .ldgr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    color: #4b5563;
    background: #f9fafb;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: none;
    letter-spacing: normal;
    text-transform: none;
}

.ev-ldgr-wrap .ldgr-btn-back:hover,
.ev-ldgr-wrap button.ldgr-btn-back:hover,
.ev-ldgr-wrap .ldgrs-right.ldgr-back-to-groups button:hover,
.ev-ldgr-wrap .ldgrs-right.ldgr-back-to-groups .ldgr-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #1f2937;
    transform: translateY(-1px);
}

/* Enroll New User — primary solid green */
.ev-ldgr-wrap .ldgr-btn-enroll,
.ev-ldgr-wrap span.ldgr-btn-enroll,
.ev-ldgr-wrap .enroll-new-user.ldgr-btn-enroll {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #2e7d32;
    color: #ffffff !important;
    border: none;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-left: auto;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(46, 125, 50, 0.2);
}

.ev-ldgr-wrap .ldgr-btn-enroll:hover {
    background: #1b5e20 !important;
    color: #ffffff !important;
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.35);
    transform: translateY(-2px);
}
.enroll-me{
    cursor:pointer;
}
.wdm-tabs-inner-links > .ldgr-mobile,
.wdm-tabs-inner-links > .ldgr-desktop {
    display: none !important;
}

/* ============================================
   TABS PANEL
   ============================================ */
.ev-ldgr-wrap .ldgr-tabs-panel,
.ev-ldgr-wrap #wdm_groups_tab {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 6px 24px rgba(0,0,0,0.06);
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.ev-ldgr-wrap .ldgr-tabs-panel .ldgr-panel-header,
.ev-ldgr-wrap #wdm_groups_tab .ldgr-panel-header {
    display: flex;
    align-items: center;
    padding: 0 32px;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(180deg, #fafbfc 0%, #ffffff 100%);
    border-radius: 20px 20px 0 0;
}

.ev-ldgr-wrap .ldgr-panel-header ul.ldgr-panel-tabs,
.ev-ldgr-wrap .ldgr-panel-header ul.tabs {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
    gap: 0;
    align-items: center;
}

/* Push the Enroll button inside tabs ul to the right */
.ev-ldgr-wrap .ldgr-panel-header ul.tabs span.ldgr-btn-enroll,
.ev-ldgr-wrap .ldgr-panel-header ul.ldgr-panel-tabs span.ldgr-btn-enroll {
    margin-left: auto;
}

/* Hide the duplicate mobile Enroll button on desktop */
@media (min-width: 769px) {
    .ev-ldgr-wrap .ldgr-panel-header > span.ldgr-btn-enroll.ldgr-mobile {
        display: none !important;
    }
}

.ev-ldgr-wrap .ldgr-panel-header ul.ldgr-panel-tabs li,
.ev-ldgr-wrap .ldgr-panel-header ul.tabs li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ev-ldgr-wrap .ldgr-panel-header ul.ldgr-panel-tabs li a,
.ev-ldgr-wrap .ldgr-panel-header ul.tabs li a {
    display: block;
    padding: 20px 26px;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    transition: all 0.2s ease;
    letter-spacing: 0.2px;
}

.ev-ldgr-wrap .ldgr-panel-header ul.ldgr-panel-tabs li:hover a,
.ev-ldgr-wrap .ldgr-panel-header ul.tabs li:hover a {
    color: #2e7d32;
    background: rgba(46, 125, 50, 0.03);
}

.ev-ldgr-wrap .ldgr-panel-header ul.ldgr-panel-tabs li.current a,
.ev-ldgr-wrap .ldgr-panel-header ul.tabs li.current a {
    color: #1b5e20;
    border-bottom-color: #2e7d32;
    font-weight: 700;
}

/* Tab content */
.ev-ldgr-wrap .tab-content {
    display: none;
    padding: 28px 32px;
}

.ev-ldgr-wrap .tab-content.current {
    display: block;
}

/* ============================================
   DATATABLES TOOLBAR LAYOUT
   ============================================ */
.ev-ldgr-wrap #wdm_group_wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    padding-top: 4px;
}

.ev-ldgr-wrap #wdm_group_wrapper > table,
.ev-ldgr-wrap #wdm_group_wrapper > .dataTables_info,
.ev-ldgr-wrap #wdm_group_wrapper > .dataTables_paginate,
.ev-ldgr-wrap #wdm_group_wrapper > .dataTables_processing {
    width: 100%;
    flex: 0 0 100%;
}

.ev-ldgr-wrap #wdm_group_wrapper > .dataTables_filter {
    order: 1;
    flex: 1 1 auto;
    float: none !important;
    display: flex !important;
    align-items: center;
    margin-bottom: 20px;
}

.ev-ldgr-wrap #wdm_group_wrapper > .dataTables_length {
    order: 2;
    flex: 0 0 auto;
    float: none !important;
    display: inline-flex !important;
    align-items: center;
    margin-left: 14px;
    margin-bottom: 20px;
}

.ev-ldgr-wrap #wdm_group_wrapper > #bulk_remove {
    order: 3;
    flex: 0 0 auto;
    float: none !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin-left: 14px;
    margin-bottom: 20px;
}

.ev-ldgr-wrap #wdm_group_wrapper > table { order: 4; margin-bottom: 0; }
.ev-ldgr-wrap #wdm_group_wrapper > .dataTables_info { order: 5; }
.ev-ldgr-wrap #wdm_group_wrapper > .dataTables_paginate { order: 6; }

/* Search Input */
.ev-ldgr-wrap .dataTables_filter label {
    display: flex;
    align-items: center;
    gap: 0;
    font-size: 0;
    color: transparent;
}

.ev-ldgr-wrap .dataTables_filter label input[type="search"] {
    font-size: 14px;
    color: #1a1a1a;
    padding: 12px 18px 12px 44px;
    border: 1.5px solid #d1d5db;
    border-radius: 12px;
    font-family: inherit;
    background: #f9fafb;
    transition: all 0.25s ease;
    outline: none;
    min-width: 280px;
}

.ev-ldgr-wrap .dataTables_filter input[type="search"]:focus {
    border-color: #2e7d32;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.08);
}

.ev-ldgr-wrap .dataTables_filter input[type="search"]::placeholder {
    color: #9ca3af;
    font-size: 14px;
}

/* Search icon */
.ev-ldgr-wrap #wdm_group_filter { position: relative; }
.ev-ldgr-wrap #wdm_group_filter label { position: relative; display: inline-block; }
.ev-ldgr-wrap #wdm_group_filter label::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239ca3af'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 1;
}
.ev-ldgr-wrap #wdm_group_filter label input[type="search"] { padding-left: 44px; }

/* Show entries dropdown */
.ev-ldgr-wrap .dataTables_length label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #6b7280;
    font-weight: 400;
}

.ev-ldgr-wrap .dataTables_length select {
    padding: 10px 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    background: #f9fafb;
    cursor: pointer;
    outline: none;
    transition: all 0.2s;
}

.ev-ldgr-wrap .dataTables_length select:focus {
    border-color: #2e7d32;
    box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.08);
}

/* Bulk Remove button — outlined danger */
.ev-ldgr-wrap #bulk_remove,
.ev-ldgr-wrap input#bulk_remove {
    padding: 10px 20px;
    border: 1.5px solid #ef4444 !important;
    color: #ef4444 !important;
    background: #ffffff !important;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    box-shadow: none !important;
    text-shadow: none !important;
    height: auto;
    line-height: normal;
}

.ev-ldgr-wrap #bulk_remove:hover,
.ev-ldgr-wrap input#bulk_remove:hover {
    background: #ef4444 !important;
    color: #ffffff !important;
    border-color: #ef4444 !important;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.3) !important;
    transform: translateY(-1px);
}


/* ============================================
   DATA TABLE
   ============================================ */
.ev-ldgr-wrap table.dataTable {
    width: 100% !important;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
}

.ev-ldgr-wrap table.dataTable thead {
    background: #f8fafc;
}

.ev-ldgr-wrap table.dataTable thead th {
    padding: 16px 18px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-bottom: 1px solid #e5e7eb;
    border-top: none;
    background: #f8fafc;
}

.ev-ldgr-wrap table.dataTable thead th:first-child {
    width: 50px;
    border-radius: 14px 0 0 0;
}

.ev-ldgr-wrap table.dataTable thead th:last-child {
    border-radius: 0 14px 0 0;
}

.ev-ldgr-wrap table.dataTable tbody td {
    padding: 18px;
    font-size: 14px;
    color: #374151;
    border-top: 1px solid #f3f4f6;
    border-bottom: none;
    vertical-align: middle;
    transition: background 0.15s ease;
}

.ev-ldgr-wrap table.dataTable tbody tr:hover {
    background: #f0fdf4 !important;
}

.ev-ldgr-wrap table.dataTable tbody tr.odd { background: #ffffff; }
.ev-ldgr-wrap table.dataTable tbody tr.even { background: #fafbfc; }

.ev-ldgr-wrap table.dataTable tbody tr.odd:hover,
.ev-ldgr-wrap table.dataTable tbody tr.even:hover {
    background: #f0fdf4 !important;
    border: 0 !important;
}

.ev-ldgr-wrap table.dataTable input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #2e7d32;
    cursor: pointer;
    border-radius: 4px;
}

.ev-ldgr-wrap table.dataTable td.dataTables_empty {
    text-align: center;
    padding: 72px 16px;
    color: #9ca3af;
    font-size: 15px;
    font-weight: 400;
}
.ev-ldgr-wrap table.dataTable .ldgr-actions .wdm-reinvite.button{
    text-decoration: none;
    padding: 10px 15px !important;
    border-bottom: none;
    border-radius: 12px;
}
.ev-ldgr-wrap table.dataTable .ldgr-actions .request_sent.button {
    text-decoration: none;
    padding: 10px 15px !important;
    border-bottom: none;
    border-radius: 12px;
}
.ev-ldgr-wrap table.dataTable .ldgr-actions .wdm_remove.button {
    background-color: transparent;
    font-size: 13px;
    box-shadow: none;
    align-items: center;
    text-decoration: none;
    padding: 10px 15px !important;
    border-radius: 12px;
    color: #ef4444;
    border: 0;
}

.ev-ldgr-wrap .request_sent.button {
    border-color: #2e7d32;
    color: #FFF;
}

.ev-ldgr-wrap .request_sent.button:hover {
   /* padding: 10px 15px; */
	background: rgba(51, 51, 51, 0.7);
	color: #FFF;
	transition: all 0.5s;
}
/* ---- Fix: Remove icon (ldgr font not loading) ---- */
.ev-ldgr-wrap .wdm_remove::before,
.wdm-select-wrapper .wdm_remove::before {
    content: '' !important;
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-right: 0;
    vertical-align: middle;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23dc2626' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    font-family: inherit !important;
    flex-shrink: 0;
}

/* ---- Fix: Remove button alignment (icon + text inline) ---- */
.ev-ldgr-wrap .wdm_remove,
.wdm-select-wrapper .wdm_remove {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    flex-direction: row !important;
    white-space: nowrap;
}

/* ============================================
   PAGINATION
   ============================================ */
.ev-ldgr-wrap .dataTables_info {
    font-size: 13px;
    color: #6b7280;
    padding: 18px 0;
}

.ev-ldgr-wrap .dataTables_paginate {
    float: none !important;
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: flex-end;
    padding: 14px 0 0;
    flex-wrap: wrap;
}

.ev-ldgr-wrap .dataTables_paginate a.paginate_button,
.ev-ldgr-wrap #wdm_group_previous,
.ev-ldgr-wrap #wdm_group_next,
.ev-ldgr-wrap #wdm_ldgr_group_report_previous,
.ev-ldgr-wrap #wdm_ldgr_group_report_next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 16px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    line-height: 1.4;
}

.ev-ldgr-wrap .dataTables_paginate a.paginate_button:hover:not(.disabled) {
    border-color: #2e7d32;
    color: #2e7d32;
    background: #f0fdf4;
    box-shadow: 0 2px 8px rgba(46, 125, 50, 0.1);
    transform: translateY(-1px);
}

.ev-ldgr-wrap .dataTables_paginate a.paginate_button.current {
    background: #2e7d32;
    border-color: #2e7d32;
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(46, 125, 50, 0.25);
    font-weight: 600;
}

.ev-ldgr-wrap .dataTables_paginate a.paginate_button.disabled,
.ev-ldgr-wrap .dataTables_paginate a.paginate_button.disabled:hover {
    opacity: 0.35;
    cursor: not-allowed;
    color: #9ca3af;
    background: #ffffff;
    border-color: #e5e7eb;
    transform: none;
    box-shadow: none;
}

.ev-ldgr-wrap .dataTables_paginate span {
    display: inline-flex;
    gap: 6px;
}

/* Bottom row clearfix */
.ev-ldgr-wrap #wdm_group_info,
.ev-ldgr-wrap #wdm_ldgr_group_report_info {
    float: left !important;
    font-size: 13px;
    color: #6b7280;
    padding: 18px 0;
    border-top: 1px solid #f3f4f6;
    margin-top: 8px;
}

.ev-ldgr-wrap #wdm_group_paginate,
.ev-ldgr-wrap #wdm_ldgr_group_report_paginate {
    float: right !important;
    border-top: 1px solid #f3f4f6;
    margin-top: 8px;
    padding-top: 16px;
}

.ev-ldgr-wrap .dataTables_wrapper::after,
.ev-ldgr-wrap #wdm_group_wrapper::after {
    content: '';
    display: table;
    clear: both;
}

.ev-ldgr-wrap .dataTables_processing {
    font-size: 13px;
    color: #6b7280;
    padding: 10px 0;
}

/* ============================================
   REPORT TAB
   ============================================ */
.ev-ldgr-wrap #wdm_ldgr_group_report_wrapper {
    position: relative;
}

.ev-ldgr-wrap .wdm-select-wrapper {
    align-items: flex-end;
    gap: 16px;
    padding: 0 0 24px 0;
    flex-wrap: wrap;
}

.ev-ldgr-wrap .wdm-select-wrapper h6 {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #4b5563;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin: 0;
    line-height: 1;
    flex: 0 0 100%;
    order: 1;
    padding-bottom: 8px;
}

.ev-ldgr-wrap .wdm-select-wrapper #wdm_ldgr_course_id {
    display: block;
    padding: 12px 18px;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    background: #f9fafb;
    min-width: 260px;
    cursor: pointer;
    outline: none;
    color: #1a1a1a;
    transition: all 0.2s;
    order: 2;
    flex: 0 0 auto;
}

.ev-ldgr-wrap .wdm-select-wrapper #wdm_ldgr_course_id:focus {
    border-color: #2e7d32;
    box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.08);
    background: #fff;
}

/* Show Report button */
.ev-ldgr-wrap #wdm_ldgr_show_report,
.ev-ldgr-wrap input#wdm_ldgr_show_report {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    background: #2e7d32 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
    white-space: nowrap;
    width: auto !important;
    order: 3;
    flex: 0 0 auto;
    align-self: flex-end;
    box-shadow: 0 2px 8px rgba(46, 125, 50, 0.2);
    text-shadow: none !important;
    height: auto;
    line-height: normal;
    margin-bottom: 0;
}

.ev-ldgr-wrap #wdm_ldgr_show_report:hover,
.ev-ldgr-wrap input#wdm_ldgr_show_report:hover {
    background: #1b5e20 !important;
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.35);
    transform: translateY(-1px);
}

.ev-ldgr-wrap #wdm_ldgr_group_report_wrapper > .dataTables_length {
    float: none !important;
    display: inline-flex;
    align-items: center;
    margin-bottom: 16px;
}

/* ============================================
   MODALS / LIGHTBOX
   ============================================ */
.ev-ldgr-wrap .ldgr-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    display: none;
}

.ev-ldgr-wrap .ldgr-lightbox[style*="display: block"],
.ev-ldgr-wrap .ldgr-lightbox[style*="display:block"],
.ev-ldgr-wrap .ldgr-lightbox.ldgr-show {
    display: flex !important;
}

.ev-ldgr-wrap .ldgr-popup {
    background: #ffffff;
    border-radius: 24px;
    width: 100%;
    max-width: 560px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.2), 0 8px 24px rgba(0, 0, 0, 0.08);
    position: relative;
    margin: 20px;
    max-height: 90vh;
    overflow-y: auto;
    animation: ldgrPopIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes ldgrPopIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.ev-ldgr-wrap .ldgr-popup-wide { max-width: 640px; }

/* Close button */
.ev-ldgr-wrap .ldgr-popup .ldgr-icon-Close {
    position: absolute;
    top: 22px;
    right: 22px;
    width: 38px;
    height: 38px;
    background: #f3f4f6;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0;
    color: #6b7280;
    z-index: 1;
    line-height: 1;
}

.ev-ldgr-wrap .ldgr-popup .ldgr-icon-Close::before {
    content: '\00d7';
    font-size: 24px;
    font-weight: 300;
    line-height: 1;
    color: #6b7280;
    font-family: Arial, sans-serif;
}

.ev-ldgr-wrap .ldgr-popup .ldgr-icon-Close:hover {
    background: #fee2e2;
}

.ev-ldgr-wrap .ldgr-popup .ldgr-icon-Close:hover::before {
    color: #dc2626;
}

.ev-ldgr-wrap .ldgr-popup-title {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    padding: 32px 32px 0;
    margin: 0;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.3px;
}

.ev-ldgr-wrap .ldgr-popup-content {
    padding: 28px 32px 32px;
}

/* Close icon fallback */
.ev-ldgr-wrap .ldgr-popup i.ldgr-icon-Close::before {
    content: '\00d7';
    font-size: 24px;
    font-weight: 300;
    color: #6b7280;
    font-family: Arial, sans-serif;
    font-style: normal;
}

/* ============================================
   MODAL FORM FIELDS
   ============================================ */
.ev-ldgr-wrap .ldgr-modal-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.ev-ldgr-wrap .ldgr-form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ev-ldgr-wrap .ldgr-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.ev-ldgr-wrap .ldgr-input,
.ev-ldgr-wrap input.ldgr-input,
.ev-ldgr-wrap .ldgr-textbox {
    width: 100%;
    padding: 13px 18px;
    border: 1.5px solid #e5e7eb !important;
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    background: #f9fafb;
    transition: all 0.25s ease;
    outline: none;
    color: #1a1a1a;
}

.ev-ldgr-wrap .ldgr-input:focus,
.ev-ldgr-wrap input.ldgr-input:focus,
.ev-ldgr-wrap .ldgr-textbox:focus {
    border-color: #2e7d32;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.08);
}

.ev-ldgr-wrap .ldgr-input::placeholder,
.ev-ldgr-wrap input.ldgr-input::placeholder,
.ev-ldgr-wrap .ldgr-textbox::placeholder {
    color: #9ca3af;
}

.ev-ldgr-wrap .ldgr-field-error {
    font-size: 12px;
    color: #dc2626;
    display: block;
    min-height: 16px;
}

/* Image upload */
.ev-ldgr-wrap .ldgr-image-upload-row {
    display: flex;
    align-items: center;
    gap: 18px;
}

.ev-ldgr-wrap .ldgr-curr-icon .ldgr-group-image {
    width: 72px;
    height: 72px;
    border-radius: 14px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #d1d5db;
    overflow: hidden;
    transition: border-color 0.2s;
}

.ev-ldgr-wrap .ldgr-curr-icon .ldgr-group-image:hover {
    border-color: #2e7d32;
}

.ev-ldgr-wrap .ldgr-curr-icon .ldgr-group-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ev-ldgr-wrap .ldgr-image-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.ev-ldgr-wrap .ldgr-ch-icon {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    background: #e8f5e9;
    color: #2e7d32;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.ev-ldgr-wrap .ldgr-ch-icon:hover {
    background: #c8e6c9;
    box-shadow: 0 2px 6px rgba(46, 125, 50, 0.15);
}

.ev-ldgr-wrap .ldgr-rm-icon {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    background: #fef2f2;
    color: #dc2626;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.ev-ldgr-wrap .ldgr-rm-icon:hover {
    background: #fee2e2;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.15);
}

.ev-ldgr-wrap .ldgr-hint {
    font-size: 12px;
    color: #9ca3af;
    margin: 6px 0 0;
    line-height: 1.5;
}

/* ============================================
   MODAL FOOTER BUTTONS
   ============================================ */
.ev-ldgr-wrap .ldgr-modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-start;
    padding-top: 24px;
    border-top: 1px solid #f3f4f6;
    margin-top: 28px;
}

.ev-ldgr-wrap .ldgr-btn-cancel-styled {
    display: inline-flex;
    align-items: center;
    padding: 11px 24px;
    border: 1.5px solid #e5e7eb;
    color: #6b7280;
    background: #ffffff;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
}

.ev-ldgr-wrap .ldgr-btn-cancel-styled:hover {
    background: #f3f4f6;
    color: #1f2937;
    border-color: #d1d5db;
    transform: translateY(-1px);
}

.ev-ldgr-wrap .ldgr-btn-submit-styled {
    display: inline-flex;
    align-items: center;
    padding: 11px 24px;
    background: #2e7d32;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(46, 125, 50, 0.2);
}

.ev-ldgr-wrap .ldgr-btn-submit-styled:hover {
    background: #1b5e20;
    box-shadow: 0 6px 18px rgba(46, 125, 50, 0.3);
    transform: translateY(-1px);
}

/* ============================================
   ENROLL MODAL TABS
   ============================================ */
.ev-ldgr-wrap .ldgr-modal-tabs {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0 0 26px;
    border-bottom: 1px solid #e5e7eb;
    gap: 0;
}

.ev-ldgr-wrap .ldgr-modal-tabs li {
    padding: 14px 22px;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    transition: all 0.2s;
    list-style: none;
}

.ev-ldgr-wrap .ldgr-modal-tabs li:hover { color: #2e7d32; }

.ev-ldgr-wrap .ldgr-modal-tabs li.current {
    color: #1b5e20;
    border-bottom-color: #2e7d32;
    font-weight: 700;
}

.ev-ldgr-wrap .ldgr-tabs-content > div { display: none; }
.ev-ldgr-wrap .ldgr-tabs-content > div.current { display: block; }

/* ============================================
   USER ENTRY CARD
   ============================================ */
.ev-ldgr-wrap .ldgr-user-entry {
    background: #fafbfc;
    border: 1.5px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 14px;
    position: relative;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.ev-ldgr-wrap .ldgr-user-entry:hover {
    border-color: #d1d5db;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.ev-ldgr-wrap .ldgr-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

.ev-ldgr-wrap .ldgr-user-entry .ldgr-field { margin-bottom: 14px; }
.ev-ldgr-wrap .ldgr-user-entry .ldgr-field:last-child { margin-bottom: 0; }

.ev-ldgr-wrap .ldgr-remove-user-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #ef4444;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    padding: 4px 0;
    transition: color 0.2s;
}

.ev-ldgr-wrap .ldgr-remove-user-link .ldgr-rm-usr { color: #ef4444; }

.ev-ldgr-wrap .ldgr-remove-user-link:hover,
.ev-ldgr-wrap .ldgr-remove-user-link:hover .ldgr-rm-usr { color: #b91c1c; }

/* Add more users */
.ev-ldgr-wrap .ldgr-add-more-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    border: 2px dashed #2e7d32;
    color: #2e7d32;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    margin-bottom: 22px;
    background: transparent;
    width: 100%;
}

.ev-ldgr-wrap .ldgr-add-more-btn:hover {
    background: #e8f5e9;
    border-style: solid;
    box-shadow: 0 2px 10px rgba(46, 125, 50, 0.12);
    transform: translateY(-1px);
}

/* ============================================
   CSV UPLOAD
   ============================================ */
.ev-ldgr-wrap .ldgr-csv-section {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.ev-ldgr-wrap .ldgr-dropzone {
    border: 2px dashed #d1d5db;
    border-radius: 16px;
    padding: 48px 32px;
    text-align: center;
    background: #fafbfc;
    transition: all 0.25s ease;
    cursor: pointer;
}

.ev-ldgr-wrap .ldgr-dropzone:hover {
    border-color: #2e7d32;
    background: #f0fdf4;
    box-shadow: 0 4px 16px rgba(46, 125, 50, 0.06);
}

.ev-ldgr-wrap .ldgr-dropzone-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    background: linear-gradient(145deg, #e8f5e9, #c8e6c9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(46, 125, 50, 0.12);
}

.ev-ldgr-wrap .ldgr-dropzone-icon i {
    font-size: 24px;
    color: #2e7d32;
}

.ev-ldgr-wrap .ldgr-dropzone .ldgr-info {
    display: block;
    font-size: 15px;
    color: #6b7280;
    margin-bottom: 16px;
}

.ev-ldgr-wrap .ldgr-choose-file-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 22px;
    background: #ffffff;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.ev-ldgr-wrap .ldgr-choose-file-btn:hover {
    border-color: #2e7d32;
    color: #2e7d32;
    box-shadow: 0 2px 8px rgba(46, 125, 50, 0.1);
}

.ev-ldgr-wrap .ldgr-dropzone input[type="file"] { display: none; }

.ev-ldgr-wrap #ldgr-upload-file-info {
    margin-top: 14px;
    font-size: 13px;
    color: #6b7280;
}

.ev-ldgr-wrap .ldgr-download-sample {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ev-ldgr-wrap .ldgr-download-sample a {
    color: #2e7d32;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.ev-ldgr-wrap .ldgr-download-sample .dlcsv-txt {
    font-size: 13px;
    color: #2e7d32;
    font-weight: 600;
    cursor: pointer;
}

.ev-ldgr-wrap .ldgr-download-sample .dlcsv-txt:hover { text-decoration: underline; }

/* ============================================
   UTILITIES & MISC
   ============================================ */
.ev-ldgr-wrap .ldgr-color { color: #2e7d32; }

.ev-ldgr-wrap .ldgr-bg-color {
    background-color: #2e7d32;
    color: #ffffff;
}

.ev-ldgr-wrap .blocked.hide,
.ev-ldgr-wrap .hide { display: none !important; }

.ev-ldgr-wrap .wdm-progress-container {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
    margin-top: 10px;
}

.ev-ldgr-wrap .wdm-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #2e7d32 0%, #66bb6a 100%);
    border-radius: 6px;
    transition: width 0.4s ease;
    width: 0%;
}

.ev-ldgr-wrap .ldgr-warning-banner {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 22px;
    margin: 0 0 22px;
    background: #fffbeb;
    border: 1px solid #f59e0b;
    border-radius: 14px;
    font-size: 13px;
    color: #92400e;
}

/* Row actions */
.ev-ldgr-wrap .ldgr-row-action {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    border: 1.5px solid #ef4444;
    color: #ef4444;
    background: transparent;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}

.ev-ldgr-wrap .ldgr-row-action:hover {
    background: #ef4444;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.25);
}

.ev-ldgr-wrap .ldgr-row-action.ldgr-reinvite {
    border-color: #2e7d32;
    color: #2e7d32;
}

.ev-ldgr-wrap .ldgr-row-action.ldgr-reinvite:hover {
    background: #2e7d32;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(46, 125, 50, 0.25);
}

/* Group courses section */
.ev-ldgr-wrap .ldgr-group-courses {
    background: #fafbfc;
    border-top: 1px solid #f3f4f6;
    padding: 24px 32px;
    border-radius: 0 0 20px 20px;
}

.ev-ldgr-wrap .ldgr-group-courses h3 {
    font-size: 12px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin: 0 0 16px;
}

.ev-ldgr-wrap .ldgr-group-courses-items {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.ev-ldgr-wrap .ldgr-group-courses-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 14px;
    max-width: 150px;
    text-align: center;
    font-size: 12px;
    color: #4b5563;
    transition: all 0.2s;
    text-decoration: none;
}

.ev-ldgr-wrap .ldgr-group-courses-item:hover {
    border-color: #2e7d32;
    background: #f0fdf4;
    box-shadow: 0 3px 10px rgba(46, 125, 50, 0.1);
    transform: translateY(-1px);
}

/*.ev-ldgr-wrap .wdm-table-container { overflow-x: auto; }*/
.ev-ldgr-wrap .wdm-notification-messages:empty { display: none; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (min-width: 769px) {
    .ev-ldgr-wrap .wdm-for-mobile,
    .ev-ldgr-wrap .ldgr-mobile { display: none; }
}

@media (max-width: 768px) {
    .ev-ldgr-wrap .wdm-for-desktop,
    .ev-ldgr-wrap .ldgr-desktop { display: none; }

    .ev-ldgr-wrap { padding: 20px 16px; }

    .ev-ldgr-wrap .ldgr-course-card .ldgr-top-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 24px 20px;
        gap: 16px;
    }

    .ev-ldgr-wrap .ldgr-course-card .ldgrs-title-wrap > div {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .ev-ldgr-wrap .ldgr-card-actions {
        width: 100%;
        flex-direction: row;
        gap: 10px;
    }

    .ev-ldgr-wrap .ldgr-tabs-panel .ldgr-panel-header,
    .ev-ldgr-wrap #wdm_groups_tab .ldgr-panel-header {
        flex-direction: column;
        padding: 14px 18px;
        gap: 12px;
        align-items: flex-start;
    }

    .ev-ldgr-wrap .ldgr-panel-header ul.ldgr-panel-tabs,
    .ev-ldgr-wrap .ldgr-panel-header ul.tabs {
        width: 100%;
        overflow-x: auto;
    }

    .ev-ldgr-wrap .ldgr-btn-enroll { margin-left: 0; }

    .ev-ldgr-wrap #wdm_group_wrapper {
        flex-direction: column;
        align-items: flex-start;
    }

    .ev-ldgr-wrap #wdm_group_wrapper > .dataTables_filter,
    .ev-ldgr-wrap #wdm_group_wrapper > .dataTables_length,
    .ev-ldgr-wrap #wdm_group_wrapper > #bulk_remove {
        width: 100%;
        margin-left: 0;
        flex: 0 0 100%;
    }

    .ev-ldgr-wrap .dataTables_filter input[type="search"],
    .ev-ldgr-wrap .dataTables_filter label input[type="search"] {
        min-width: 0;
        width: 100%;
    }

    .ev-ldgr-wrap .wdm-select-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }

    .ev-ldgr-wrap .wdm-select-wrapper h6 { flex: 0 0 auto; }

    .ev-ldgr-wrap .wdm-select-wrapper #wdm_ldgr_course_id {
        min-width: 0;
        width: 100%;
    }

    .ev-ldgr-wrap .ldgr-field-row { grid-template-columns: 1fr; }

    .ev-ldgr-wrap .ldgr-popup,
    .ev-ldgr-wrap .ldgr-popup-wide {
        max-width: calc(100% - 24px);
        margin: 12px;
        border-radius: 18px;
    }

    .ev-ldgr-wrap #wdm_group_info,
    .ev-ldgr-wrap #wdm_ldgr_group_report_info {
        float: none !important;
        display: block;
    }

    .ev-ldgr-wrap #wdm_group_paginate,
    .ev-ldgr-wrap #wdm_ldgr_group_report_paginate {
        float: none !important;
        justify-content: flex-start;
    }

    .ev-ldgr-wrap .tab-content { padding: 20px 18px; }

    .ev-ldgr-wrap .ldgr-card-info h1 { font-size: 18px; }
}


/* ============================================
   GROUP LISTING PAGE
   Parent: .wdm-select-wrapper
   ============================================ */

.wdm-select-wrapper {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 1140px;
    margin: 0 auto;
    padding: 36px 24px;
    color: #1a1a1a;
    line-height: 1.6;
}

.wdm-select-wrapper *,
.wdm-select-wrapper *::before,
.wdm-select-wrapper *::after {
    box-sizing: border-box;
}

/* ---- Group Listing Container ---- */
.wdm-select-wrapper .ldgr-group-listing {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 6px 24px rgba(0,0,0,0.06);
    padding: 28px 32px;
}

/* ---- Search Bar ---- */
.wdm-select-wrapper .ldgr-search-groups {
    position: relative;
    margin-bottom: 24px;
}

.wdm-select-wrapper .ldgr-search-groups i.ldgr-icon-Search {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 16px;
    pointer-events: none;
}

.wdm-select-wrapper .ldgr-search-groups i.ldgr-icon-Search::before {
    content: '';
    display: block;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239ca3af'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.wdm-select-wrapper .ldgr-search-groups input.ldgr-search {
    width: 100%;
    padding: 14px 18px 14px 46px;
    border: 1.5px solid #d1d5db;
    border-radius: 14px;
    font-size: 15px;
    font-family: inherit;
    background: #f9fafb;
    color: #1a1a1a;
    outline: none;
    transition: all 0.25s ease;
}

.wdm-select-wrapper .ldgr-search-groups input.ldgr-search:focus {
    border-color: #2e7d32;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.08);
}

.wdm-select-wrapper .ldgr-search-groups input.ldgr-search::placeholder {
    color: #9ca3af;
    font-size: 14px;
}

/* ---- Group Items Container ---- */
.wdm-select-wrapper .ldgr-group-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ---- Individual Group Card ---- */
.wdm-select-wrapper .ldgr-group-item {
    background: #ffffff;
    border: 1.5px solid #e5e7eb;
    border-radius: 16px;
    padding: 0;
    transition: all 0.25s ease;
    overflow: hidden;
}

.wdm-select-wrapper .ldgr-group-item:hover {
    border-color: #2e7d32;
    box-shadow: 0 4px 16px rgba(46, 125, 50, 0.08);
    transform: translateY(-2px);
}

/* Main content inside each card */
.wdm-select-wrapper .ldgr-group-item .ldgr-main-group-content {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 22px 24px;
    position: relative;
}

/* ---- Group Image ---- */
.wdm-select-wrapper .ldgr-group-item .gr-icon {
    flex-shrink: 0;
    order: 1;
}

.wdm-select-wrapper .ldgr-group-item .gr-icon .ldgr-group-image {
    width: 64px;
    height: 64px;
    min-width: 64px;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(145deg, #e8f5e9 0%, #a5d6a7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(46, 125, 50, 0.1);
}

.wdm-select-wrapper .ldgr-group-item .gr-icon .ldgr-group-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-width: none;
}

/* ---- Group Title ---- */
.wdm-select-wrapper .ldgr-group-item h2.gr-title {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin: 0;
    line-height: 1.4;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.2px;
    order: 2;
}

/* ---- Registration Left Badge ---- */
.wdm-select-wrapper .ldgr-group-item .gr-left {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
    color: #1b5e20;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: 24px;
    white-space: nowrap;
    border: 1px solid rgba(46, 125, 50, 0.12);
    order: 3;
}

/* ---- Edit Button ---- */
.wdm-select-wrapper .ldgr-group-item .gr-edit {
    flex-shrink: 0;
    order: 4;
}

.wdm-select-wrapper .ldgr-group-item .gr-edit form {
    margin: 0;
    padding: 0;
}

.wdm-select-wrapper .ldgr-group-item .gr-edit button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: #f3f4f6 !important;
    color: #6b7280 !important;
    border: 1.5px solid #e5e7eb !important;
    border-radius: 12px;
    padding: 0 !important;
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 0;
    line-height: 1;
}

/* Hide the original icon font character */
.wdm-select-wrapper .ldgr-group-item .gr-edit button i {
    font-size: 0;
    width: 20px;
    height: 20px;
    display: block;
    position: relative;
}

/* Replace with a right-arrow (chevron) icon */
.wdm-select-wrapper .ldgr-group-item .gr-edit button i::before {
    content: '' !important;
    display: block;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M9 5l7 7-7 7'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: background-image 0.25s ease;
}

.wdm-select-wrapper .ldgr-group-item .gr-edit button:hover {
    background: #2e7d32 !important;
    color: #ffffff !important;
    border-color: #2e7d32 !important;
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.25);
    transform: translateY(-1px);
}

.wdm-select-wrapper .ldgr-group-item .gr-edit button:hover i::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23ffffff' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M9 5l7 7-7 7'/%3E%3C/svg%3E");
}

/* ---- Pagination ---- */
.wdm-select-wrapper .ldgr-pagination {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    list-style: none;
    margin: 24px 0 0;
    padding: 20px 0 0;
    border-top: 1px solid #f3f4f6;
}

.wdm-select-wrapper .ldgr-pagination li {
    list-style: none;
}

.wdm-select-wrapper .ldgr-pagination li a,
.wdm-select-wrapper .ldgr-pagination li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 16px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.wdm-select-wrapper .ldgr-pagination li a:hover {
    border-color: #2e7d32;
    color: #2e7d32;
    background: #f0fdf4;
}

.wdm-select-wrapper .ldgr-pagination li.active a,
.wdm-select-wrapper .ldgr-pagination li.active span {
    background: #2e7d32;
    border-color: #2e7d32;
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(46, 125, 50, 0.25);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .wdm-select-wrapper {
        padding: 20px 16px;
    }

    .wdm-select-wrapper .ldgr-group-listing {
        padding: 20px 18px;
        border-radius: 16px;
    }

    .wdm-select-wrapper .ldgr-group-item .ldgr-main-group-content {
        flex-wrap: wrap;
        gap: 14px;
        padding: 18px 20px;
    }

    .wdm-select-wrapper .ldgr-group-item .gr-icon {
        order: 1;
    }

    .wdm-select-wrapper .ldgr-group-item h2.gr-title {
        order: 2;
        flex: 1 1 calc(100% - 84px);
        font-size: 15px;
    }

    .wdm-select-wrapper .ldgr-group-item .gr-left {
        order: 3;
        flex: 0 0 auto;
    }

    .wdm-select-wrapper .ldgr-group-item .gr-edit {
        order: 4;
        margin-left: auto;
    }
}
