/* Old dashboard CSS  Start */
.plugin-not-required {
    opacity: 0.4;
}

#cool-plugins-container {
    display: inline-block;
    margin: 15px auto;
    padding: 0;
    box-sizing: border-box;
    width: calc(100% - 20px);
    background: #fff;
    border-radius: 10px;
    border: 1px solid #ddd;
    box-shadow: 0 0 10px -5px #afafaf;
    overflow: hidden;
}

#cool-plugins-container * {
    box-sizing: border-box;
}

#cool-plugins-container .button {
    border-radius: 0;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    -ms-border-radius: 0;
    -o-border-radius: 0;
    height: 24px;
    line-height: 22px;
    min-height: 24px;
}

.cool-plugins-events-addon .cool-header {
    background-color: #008bff;
    background: linear-gradient(to right, #008bff, #27c2f3);
    padding: 20px 10px;
    margin: 0;
    display: inline-block;
    width: 100%;
}

.cool-plugins-events-addon .cool-header h2 {
    color: #fff;
    display: inline-block;
    padding: 0;
    margin: 0;
    vertical-align: middle;
    width: auto;
}

.cool-plugins-events-addon .cool-header a.button {
    float: right;
    margin: 0 5px;
}

.cool-body-left {
    display: inline-block;
    width: calc(100% - 231px);
    vertical-align: top;
    padding: 10px;
    border-right: 1px solid #ddd;
}

.cool-body-right {
    display: inline-block;
    width: 230px;
    vertical-align: top;
    float: right;
    padding: 10px;
}

.cool-body-right ul li {
    list-style: square;
    margin-left: 15px;
}

.cool-body-left h3 {
    padding: 0 0 10px;
    margin: 0 0 15px;
    border-bottom: 1px solid #ddd;
}

.cool-body-left .plugins-list {
    display: inline-block;
    width: 100%;
    margin-bottom: 20px;
}

.cool-body-left .plugin-block {
    display: inline-block;
    width: calc(50% - 2px);
    padding: 0 10px 30px;
}

.cool-body-left .plugin-block-inner {
    display: inline-flex;
}

.plugin-info {
    padding-left: 10px;
}

.plugin-logo img {
    width: 72px;
    height: 72px;
}

h4.plugin-title {
    margin: 0 0 3px;
    font-size: 14px;
}

.plugin-desc {
    color: #a0a0a0;
    font-size: 12px;
}

.plugin-stats {
    display: inline-flex;
    margin-top: 10px;
    justify-content: center;
}

#cool-plugins-container .plugin-stats * {
    border-radius: 0;
    height: 24px;
    line-height: 22px;
    min-height: 24px;
}

.plugin-version {
    background: #1bb95a;
    border: 1px solid #139648;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    padding: 0 3px;
}

span.plugin-update-available {
    padding: 0 5px;
    color: #d21e01;
    font-size: 12px;
    font-weight: bold;
}

.wp-submenu a[href*="page=tribe-events-shortcode-template-settings"] strong,
.wp-submenu a[href*="page=tribe_events-events-template-settings"] strong,
.wp-submenu a[href*="edit.php?post_type=epta"] strong,
.wp-submenu a[href*="page=countdown_for_the_events_calendar"] strong,
.wp-submenu a[href*="page=event_notification_bar"] strong {
    border: 1px solid #59646d;
    border-radius: 2px;
    padding: 2px 3px;
    font-size: 12px;
    display: block;
    width: 100%;
}
tr[data-slug="events-shortcodes-pro"] .plugin-description a[href*="plugins/the-events-calendar"],
tr[data-slug="events-widgets-pro"] .plugin-description a[href*="plugins/the-events-calendar"],
tr[data-slug="event-single-page-builder-pro"] .plugin-description a[href*="plugins/the-events-calendar"],
tr[data-slug="template-events-calendar"] .plugin-description a[href*="plugins/the-events-calendar"],
tr[data-slug="event-page-templates-addon-for-the-events-calendar"] .plugin-description a[href*="plugins/the-events-calendar"],
tr[data-slug="events-block-for-the-events-calendar"] .plugin-description a[href*="plugins/the-events-calendar"],
tr[data-slug="events-search-addon-for-the-events-calendar"] .plugin-description a[href*="plugins/the-events-calendar"],
tr[data-slug="countdown-for-the-events-calendar"] .plugin-description a[href*="plugins/the-events-calendar"],
tr[data-slug="events-widgets-for-elementor-and-the-events-calendar"] .plugin-description a[href*="plugins/the-events-calendar"] {
    background: rgb(0, 0, 0, 0.2);
    padding: 2px;
    border-radius: 3px;
    font-weight: bold;
    font-size: 12px;
    color: #222;
    text-decoration: none !IMPORTANT;
}
@media only screen and (max-width: 600px) {
    .cool-body-left,
    .cool-body-right {
        width: 100%;
    }
    .cool-body-left .plugin-block {
        width: 100%;
        padding: 0 0 30px;
    }
}
/* Old dashboard CSS End */

/* New dashboard CSS Start */

/* --- Root Variables & Base --- */
/* Import Inter Font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');
:root {
    --ect-bg: #f8fafc;
    --ect-primary: #0693e3;
    --ect-purple: #6366f1;
    --ect-border: #e2e8f0;
    --ect-text-main: #1e293b;
    --ect-text-dim: #64748b;
    --ect-success: #22c55e;
    --ect-pink: #db2777;
    --ect-orange: #ea580c;
    --ect-green: #16a34a;
}
div#wpbody-content {
    /* overflow: hidden; */
    /* width: auto; */
}

body.events-addons_page_tribe-events-shortcode-template-settings:has(.ect-top-header) #wpbody,
.events-addons_page_tribe_events-events-template-settings:has(.ect-top-header) #wpbody,
.toplevel_page_cool-plugins-events-addon:has(.ect-top-header) .ect-dashboard-wrapper,
.events-addons_page_cool-events-registration:has(.ect-top-header) .ect-dashboard-wrapper,
.events-addons_page_esas-speaker-sponsor-settings:has(.ect-top-header) .ect-dashboard-wrapper {
   padding-top: 70px;
}
.post-type-epta .wrap,
.post-type-esas_speaker .wrap,
.post-type-esas_sponsor .wrap,
.post-type-ewpe .wrap,
.events-addons_page_countdown_for_the_events_calendar .wrap {
    margin: 30px 20px 0 2px;
}
body{
    background-color: #F8FAFC;
}
.ect-dashboard-wrapper {
    position: relative;
    padding-top: 40px;
    margin: 0 20px 0 0;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--ect-text-main);
}
/* --- Full-Width Header --- */
.events-addons_page_tribe_events-events-template-settings .ect-top-header,
.events-addons_page_tribe-events-shortcode-template-settings .ect-top-header {
    width: calc(100% + 20px);
}
.ect-top-header {
    position: absolute;
    top: 0px;
    left: -20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    border-bottom: 1px solid #ddd;
    height: 62px;
    width: calc(100% + 40px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.03);
    z-index: 99;
}
.ect-header-left .ect-header-img-box {
    width: 40px;
    height: 40px;
}
.ect-header-left .ect-header-img-box img{
    width: 100%;
    height: 100%;
}
.ect-header-left { display: flex; align-items: center; gap: 12px; margin-left: 20px; }
.ect-header-left .dashicons-calendar-alt { color: var(--ect-primary); font-size: 24px; width: 24px; height: 24px; }
.ect-header-left h1 { font-size: 19px; font-weight: 700; margin: 0; }
.ect-header-right { display: flex; gap: 12px; margin-right: 20px; }
.ect-header-right svg {
    width: 17px;
    height: 18px;
}
/* --- Buttons --- */
.ect-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}
.ect-btn-outline { background: #fff; color: #475569; border: 1px solid var(--ect-border); }
.ect-btn-primary { background: var(--ect-primary); color: #fff !important; border: 1px solid var(--ect-primary); }
.ect-btn-primary:hover { background-color: #0077bb; border-color: #0077bb;}
.ect-btn:hover { opacity: 0.9; }
.ect-btn-outline:hover { color: #475569; }
.ect-indicator { width: 4px; height: 18px; border-radius: 2px; margin-right: 12px; }
/* WordPress Default Button Integration */
.ect-sidebar-card a.ect-button-primary,
.ect-card button.ect-button-primary,
.ect-card a.ect-button-primary {
    background-color: #0693e3;
    height: auto;
    line-height: 1.5;
    padding: 10px 22px;
    font-size: 14px;
    border-radius: 10px;
    color: white !important;
    border: unset !important;
}
.ect-sidebar-card a.ect-button-primary:focus,
.ect-card button.ect-button-primar:focus,
.ect-card a.ect-button-primary:focus{
    background-color: #0077bb !important;
    color: white !important;
}
.ect-button-primary:hover{
    opacity: 0.9;
    background-color: #0077bb !important;
    border-color: #0077bb !important;
}
.ect-btn-buy {
    background-color: #020E21 !important;
    border-color: #020E21 !important;
    color: white !important;
}.ect-btn-buy:hover {
    opacity: 0.9;
    background-color: #2D3644 !important;
    border-color: #2D3644 !important;
}
/* Card Action Buttons */
.ect-card-action { margin-top: 15px; }
.ect-main-grid { display: grid; grid-template-columns: 1fr 320px; gap: 30px; }
.ect-cards-container { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.ect-section-title { 
    font-size: 17px; 
    font-weight: 600; 
    margin: 35px 0 20px; 
    display: flex; 
    align-items: center; 
    padding-left: 12px;
    color: var(--ect-text-main);
}
.ect-title-count { 
    margin-left: auto; 
    font-weight: 500; 
    color: #94a3b8; 
    font-size: 14px; 
}
/* --- Card Styles --- */
.ect-card {
    background: #fff;
    border: 1px solid var(--ect-border);
    border-radius: 12px;
    padding: 28px;
    display: flex;
    gap: 20px;
    position: relative;
    transition: box-shadow 0.2s ease;
    flex-wrap: wrap;
    overflow: hidden;
}
.ect-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.ect-premium-addons .ect-card {
    background: linear-gradient(102.55deg, #feffff 0, #ebf8ff 99.05%);
    border-color: #c7ebff;
}
.ect-info { flex: 1; }
.ect-info h3 { margin: 0px 0px 10px 0px; font-size: 18px; font-weight: 700; line-height: 1.6;}
.ect-info p { margin: 0; font-size: 16px; color: var(--ect-text-dim); line-height: 1.7; }
/* Icon Boxes */
.ect-icon-box {
    width: 44px;
    height: 44px;
}
.ect-icon-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.ect-icon-box .dashicons { font-size: 20px; color: var(--ect-primary); }
/* --- Badges & Pulse --- */
.ect-badge-group { display: flex; gap: 8px; margin-top: 20px; flex-wrap: wrap; padding-top: 20px; border-top: 1px solid #e2e8f0b8; align-items: center; justify-content: space-between; }
.ect-badge { 
    font-size: 11px;
    padding: 2px 10px;
    border-radius: 50px; 
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.ect-active-update {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.ect-badge-active { 
    background: #dcfce7; 
    color: #15803d; 
    border: 1px solid #86efaca6;
}
.ect-badge-version {
    color: #919191;
    font-weight: 500;
    letter-spacing: 1.6px;
    background: #e3e3e3a3;
    border: 1px solid #dbdbdb;
}
.ect-badge-update a {
    color: #b91c1c;
    text-decoration: none;
}
.ect-badge-update {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #b91c1c40;
}

.ect-badge-premium {
    background: #000;
    color: #fff;
    position: absolute;
    text-transform: uppercase;
    top: -1px;
    right: 40px;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 11px;
    border-radius: 0px 0px 5px 5px;
    letter-spacing: 0.5px;
}
.ect-notification-dot {
    position: absolute;
    width: 10px;
    height: 10px;
    top: 10px;
    right: 10px;
    background: #ef4444;
    border-radius: 50%;
    border: 2px solid #fff;
    z-index: 10;
}
.ect-pulse-wrapper {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 22px;
    height: 22px;
    background: rgba(239, 68, 68, 0.15);
    border-radius: 50%;
    animation: ect-pulse 2s infinite;
    z-index: 9;
}
@keyframes ect-pulse {
    0% { transform: scale(0.6); opacity: 1; }
    100% { transform: scale(1.8); opacity: 0; }
}
.ect-card-links{
    display: flex;
    gap: 20px;
}
.ect-card-links a{
    color: #94a3b8;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
}
.ect-card-links a:hover {
    color: var(--ect-primary);
}
.ect-card-links a:focus {
    box-shadow: none;
}
.ect-card-links .dashicons {
    font-size: 18px;
}
.ect-card-links svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}
/* --- Card Footer --- */
.ect-card-footer {
    display: flex;
    align-items: center;
    margin-top: 20px;
    gap: 16px;
    justify-content: space-between;
    flex-wrap: wrap;
}
/* --- Sidebar --- */
.ect-sidebar { margin-top: 30px; }
.ect-sidebar-card { 
    background: #fff; 
    border: 1px solid var(--ect-border); 
    border-radius: 12px; 
    padding: 22px; 
    margin-bottom: 20px; 
}
/* Sidebar Header */
.ect-sidebar-header {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 16px;
}
.ect-premium-support {
    background: #0693e30f;
}
.ect-trustpilot-rating .ect-stars img {
    width: 150px;
    height: auto;
}
.ect-sidebar-header svg {
    width: 20px;
    height: 20px;
    padding: 8px;
    border-radius: 20px;
}
.ect-key-features .ect-sidebar-header svg {
    background: #EFF6FF;
    color: var(--ect-primary);
}
.ect-trustpilot-rating .ect-sidebar-header svg {
    background: #FEF2F2;
    color: #EF4444;
}
.ect-events-calendar-pro .ect-sidebar-header svg {
    background: #EFF6FF;
    color: var(--ect-primary);
}
.ect-premium-support .ect-sidebar-header svg {
    width: 22px;
    height: 22px;
    background: white;
    color: var(--ect-primary);
    padding: 10px;
    border-radius: 20px;
}
.ect-key-features ul li svg {
    width: 18px;
    height: 18px;
    color: var(--ect-primary);
}
.ect-sidebar-header h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--ect-text-main);
}
/* Sidebar Text */
.ect-sidebar-text {
    font-size: 15px;
    color: var(--ect-text-dim);
    line-height: 1.6;
    margin: 0 0 16px;
}
/* Sidebar Feature List */
.ect-feature-list { 
    list-style: none; 
    padding: 0; 
    margin: 0; 
    margin-left: 7px;
}
.ect-feature-list li { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    margin-bottom: 14px; 
    font-size: 15px; 
    color: var(--ect-text-dim); 
}
/* Trustpilot Section */
.ect-trustpilot {
    margin-top: 12px;
}
.ect-stars a{
    margin-bottom: 12px;
}
.ect-stars a:focus{
    outline: none !important;
    box-shadow: none;
}
.ect-stars strong {
    color: black;
    font-weight: 400;
}
.ect-trustpilot-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--ect-green);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}
.ect-trustpilot-link:hover {
    text-decoration: underline;
}
.ect-trustpilot-link .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}
/* Full Width Button */
.ect-btn-full {
    width: 100%;
    justify-content: center;
    text-align: center;
}
/* --- RESPONSIVE & MOBILE CSS --- */
@media screen and (max-width: 1024px) {
    .ect-cards-container {
        gap: 25px;
    }
    .ect-main-grid { 
        grid-template-columns: 1fr; 
        gap: 20px;
    }
    
    .ect-sidebar { 
        margin-top: 0; 
        order: 2;
    }
    
    .ect-content { 
        order: 1; 
    }
    .ect-header-right { 
        margin-right: 20px; 
    }
}
@media screen and (max-width: 782px) {
    .ect-cards-container { 
        grid-template-columns: 1fr; 
    }
    .ect-top-header { 
         left: -10px; 
        width: calc(100% + 10px); 
        padding: 0 15px; 
    }
    .ect-header-left h1 { 
        font-size: 15px; 
    }
    .ect-btn { 
        padding: 6px 12px; 
        font-size: 12px; 
    }
}
@media screen and (max-width: 480px) {
    .ect-badge {
        font-size: 8px;
    }
    .ect-section-title {
        font-size: 16px;
    }
    .ect-card-footer {
        justify-content: center;
    }
    .ect-top-header { 
        height: auto; 
        flex-direction: column; 
        padding: 15px; 
        gap: 12px; 
        position: relative;
        width: 100%; 
        margin-bottom: 20px; 
        text-align: center;
    }
    .ect-dashboard-wrapper { 
        padding-top: 0; 
    }
    .ect-header-left, 
    .ect-header-right { 
        width: 100%; 
        justify-content: center; 
        margin-right: 0;
    }
    .ect-card { 
        flex-direction: column; 
        align-items: center; 
        text-align: center;
        padding: 20px;
    }
    .ect-section-title {
        align-items: flex-start;
        gap: 5px;
    }
    .ect-title-meta {
        margin-left: 0;
    }
    .ect-badge-group {
        justify-content: center;
    }
    .ect-feature-list { 
        margin-left: 0px;
    }
}
/* New dashboard CSS End */