



/* ================================
   CPE Frontend Styles
   ================================ */

:root {
    --cpe-primary: #3b82f6;
    --cpe-primary-dark: #2563eb;
    --cpe-secondary: #64748b;
    --cpe-success: #10b981;
    --cpe-error: #ef4444;
    --cpe-warning: #f59e0b;
    --cpe-border: #e5e7eb;
    --cpe-bg: #f9fafb;
    --cpe-text: #1f2937;
    --cpe-text-light: #6b7280;
    --cpe-radius: 12px;
    --cpe-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --cpe-shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* ================================
   Toolbar Styles
   ================================ */

.cpe-toolbar {
    background: #fff;
    border-radius: var(--cpe-radius);
    padding: 16px 20px;
    margin-bottom: 24px;
    box-shadow: var(--cpe-shadow);
    border: 1px solid var(--cpe-border);
}

.cpe-toolbar-form {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.cpe-toolbar-left {
    flex: 1;
    min-width: 200px;
    max-width: 100%;

}

.cpe-toolbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Search Box */
.cpe-search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--cpe-bg);
    border: 2px solid var(--cpe-border);
    border-radius: 10px;
    transition: all 0.2s;
}

.cpe-search-box:focus-within {
    border-color: var(--cpe-primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.cpe-search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    color: #9ca3af;
}

.cpe-search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 0;
    font-size: 15px;
    outline: none;
    min-width: 150px;
    color: var(--cpe-text);
}

.cpe-search-input::placeholder {
    color: #9ca3af;
}

.cpe-search-clear {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    transition: color 0.2s;
}

.cpe-search-clear:hover {
    color: var(--cpe-error);
}

.cpe-search-submit {
    padding: 10px 18px;
    background: var(--cpe-primary);
    color: #fff;
    border: none;
    border-radius: 0 8px 8px 0;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.cpe-search-submit:hover {
    background: var(--cpe-primary-dark);
}

/* Results Count */
.cpe-results-count {
    font-size: 14px;
    color: var(--cpe-text-light);
    white-space: nowrap;
}

.cpe-results-count .count {
    font-weight: 700;
    color: var(--cpe-primary);
}

/* Sort Dropdown */
.cpe-sort-dropdown {
    position: relative;
}

.cpe-sort-select {
    padding: 8px 32px 8px 12px;
    border: 2px solid var(--cpe-border);
    border-radius: 8px;
    font-size: 14px;
    background: #fff url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e") right 8px center/16px no-repeat;
    cursor: pointer;
    appearance: none;
    transition: all 0.2s;
    color: var(--cpe-text);
}

.cpe-sort-select:hover {
    border-color: #d1d5db;
}

.cpe-sort-select:focus {
    outline: none;
    border-color: var(--cpe-primary);
}

/* Order Toggle */
.cpe-order-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: #fff;
    border: 2px solid var(--cpe-border);
    border-radius: 8px;
    color: var(--cpe-text-light);
    cursor: pointer;
    transition: all 0.2s;
    padding:0;
}

.cpe-order-btn:hover {
    border-color: var(--cpe-primary);
    color: var(--cpe-primary);
}

/* View Toggle */
.cpe-view-toggle {
    display: flex;
    background: #f3f4f6;
    border-radius: 8px;
    padding: 4px;
}

.cpe-view-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: var(--cpe-text-light);
    cursor: pointer;
    transition: all 0.2s;
    padding:0;
}

.cpe-view-btn:hover {
    color: var(--cpe-text);
}

.cpe-view-btn.active {
    background: #fff;
    color: var(--cpe-primary);
    box-shadow: var(--cpe-shadow);
}

/* Search Results Info */
.cpe-search-results-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #eff6ff;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #1e40af;
}

.cpe-clear-search {
    color: var(--cpe-primary);
    text-decoration: none;
    font-weight: 500;
}

.cpe-clear-search:hover {
    text-decoration: underline;
}

/* ================================
   Grid View Styles
   ================================ */

.cpe-projects-grid.grid-view,
.cpe-events-grid.grid-view {
    display: grid;
    gap: 24px;
}

.cpe-projects-grid.grid-view.columns-2,
.cpe-events-grid.grid-view.columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.cpe-projects-grid.grid-view.columns-3,
.cpe-events-grid.grid-view.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.cpe-projects-grid.grid-view.columns-4,
.cpe-events-grid.grid-view.columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Grid Card */
.grid-card {
    background: #fff;
    border-radius: var(--cpe-radius);
    overflow: hidden;
    box-shadow: var(--cpe-shadow);
    border: 1px solid var(--cpe-border);
    transition: all 0.3s;
}

.grid-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--cpe-shadow-lg);
}

.grid-card .cpe-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: var(--cpe-bg);
}

.grid-card .cpe-card-image > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.grid-card:hover .cpe-card-image > img {
    transform: scale(1.05);
}

.grid-card .cpe-card-content {
    padding: 20px;
}

/* ================================
   List View Styles
   ================================ */

.cpe-projects-grid.list-view,
.cpe-events-grid.list-view {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.list-card {
    display: flex;
    background: #fff;
    border-radius: var(--cpe-radius);
    overflow: hidden;
    box-shadow: var(--cpe-shadow);
    border: 1px solid var(--cpe-border);
    transition: all 0.3s;
}

.list-card:hover {
    box-shadow: var(--cpe-shadow-lg);
    transform: translateX(4px);
}

.list-card .cpe-card-image {
    position: relative;
    width: 280px;
    min-width: 280px;
    height: auto;
    min-height: 180px;
    background: var(--cpe-bg);
}

.list-card .cpe-card-image > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.list-card .cpe-card-content {
    flex: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.list-card .cpe-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.list-card .cpe-card-title {
    font-size: 20px;
    margin: 0;
}

.list-card .cpe-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 12px;
}

.list-card .cpe-card-excerpt {
    flex: 1;
    margin: 0 0 16px 0;
}

.list-card .cpe-card-footer {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--cpe-border);
}

/* ================================
   Card Common Styles
   ================================ */

.cpe-card-header {
    margin-bottom: 12px;
}

.cpe-card-title {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

.cpe-card-title a {
    color: var(--cpe-text);
    text-decoration: none;
    transition: color 0.2s;
}

.cpe-card-title a:hover {
    color: var(--cpe-primary);
}

.cpe-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}

.cpe-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--cpe-text-light);
}

.cpe-meta-item svg {
    color: var(--cpe-primary);
    flex-shrink: 0;
}

.cpe-card-excerpt {
    margin: 0 0 16px 0;
    color: var(--cpe-text-light);
    font-size: 14px;
    line-height: 1.6;
}

.cpe-card-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Card Image */
.cpe-card-image {
    position: relative;
    overflow: hidden;
}

/* Card Slideshow */
.cpe-card-slideshow {
    width: 100%;
    height: 100%;
}

.cpe-card-slideshow .swiper-slide {
    height: 200px;
}

.cpe-card-slideshow .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.cpe-card-slideshow .swiper-button-prev,
.cpe-card-slideshow .swiper-button-next {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s;
}

.cpe-card-image:hover .swiper-button-prev,
.cpe-card-image:hover .swiper-button-next {
    opacity: 1;
}

.cpe-card-slideshow .swiper-button-prev::after,
.cpe-card-slideshow .swiper-button-next::after {
    font-size: 12px;
    font-weight: bold;
    color: var(--cpe-text);
}

.cpe-card-slideshow .swiper-pagination {
    bottom: 8px !important;
}

.cpe-card-slideshow .swiper-pagination-bullet {
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.6);
    opacity: 1;
}

.cpe-card-slideshow .swiper-pagination-bullet-active {
    background: #fff;
    width: 18px;
    border-radius: 3px;
}

/* Image Count Badge */
.cpe-image-count {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    z-index: 10;
}

.cpe-image-count svg {
    width: 14px;
    height: 14px;
}

/* Quick View Button */
.cpe-quick-view {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    color: var(--cpe-text);
}

.cpe-card-image:hover .cpe-quick-view {
    opacity: 1;
    transform: scale(1);
}

.cpe-quick-view:hover {
    background: var(--cpe-primary);
    color: #fff;
}

/* No Image */
.cpe-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--cpe-bg);
    color: #d1d5db;
    gap: 8px;
}

.cpe-no-image span {
    font-size: 13px;
    color: var(--cpe-text-light);
}

/* Event Date Badge */
.cpe-event-date-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--cpe-primary);
    color: #fff;
    padding: 8px 12px;
    border-radius: 10px;
    text-align: center;
    line-height: 1.1;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.cpe-event-date-badge .day {
    display: block;
    font-size: 24px;
    font-weight: 800;
}

.cpe-event-date-badge .month {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.cpe-event-date-badge.past {
    background: var(--cpe-secondary);
    box-shadow: none;
}

/* Past Event Badge */
.cpe-past-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 10;
}

.past-event .cpe-card-image > img,
.past-event .cpe-card-slideshow img {
    filter: grayscale(40%);
}

/* Status Badges */
.cpe-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cpe-status-planning {
    background: #dbeafe;
    color: #1e40af;
}

.cpe-status-running,.cpe-status-in_progress {
    background: #fef3c7;
    color: #92400e;
}

.cpe-status-completed {
    background: #d1fae5;
    color: #065f46;
}

.cpe-status-on_hold {
    background: #fee2e2;
    color: #991b1b;
}

/* ================================
   Buttons
   ================================ */

.cpe-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: var(--cpe-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.cpe-btn-primary:hover {
    background: var(--cpe-primary-dark);
    color: #fff;
    transform: translateY(-1px);
}

.cpe-btn-primary svg {
    width: 16px;
    height: 16px;
}

.cpe-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: #fff;
    color: var(--cpe-text);
    border: 2px solid var(--cpe-border);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.cpe-btn-secondary:hover {
    border-color: var(--cpe-primary);
    color: var(--cpe-primary);
}

.cpe-btn-secondary svg {
    width: 16px;
    height: 16px;
}

/* ================================
   Pagination
   ================================ */

.cpe-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: 32px 0 16px;
    flex-wrap: wrap;
}

.cpe-pagination a,
.cpe-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 8px 14px;
    background: #fff;
    border: 2px solid var(--cpe-border);
    border-radius: 8px;
    color: var(--cpe-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s;
}

.cpe-pagination a:hover {
    border-color: var(--cpe-primary);
    color: var(--cpe-primary);
}

.cpe-pagination .current {
    background: var(--cpe-primary);
    border-color: var(--cpe-primary);
    color: #fff;
}

.cpe-pagination .prev,
.cpe-pagination .next {
    gap: 6px;
}

.cpe-pagination .dots {
    border: none;
    background: none;
    color: var(--cpe-text-light);
    min-width: auto;
    padding: 8px;
}

.cpe-pagination svg {
    width: 16px;
    height: 16px;
}

/* Results Info */
.cpe-results-info {
    text-align: center;
    color: var(--cpe-text-light);
    font-size: 14px;
}

/* ================================
   No Results
   ================================ */

.cpe-no-results {
    text-align: center;
    padding: 60px 30px;
    background: var(--cpe-bg);
    border-radius: var(--cpe-radius);
    border: 2px dashed var(--cpe-border);
}

.cpe-no-results-icon {
    margin-bottom: 20px;
    color: #d1d5db;
}

.cpe-no-results h3 {
    margin: 0 0 10px 0;
    color: var(--cpe-text);
    font-size: 20px;
}

.cpe-no-results p {
    margin: 0 0 20px 0;
    color: var(--cpe-text-light);
}

/* ================================
   Lightbox Modal
   ================================ */

.cpe-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 999999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.cpe-lightbox-overlay.active {
    display: flex;
    flex-direction: column;
}

.cpe-lightbox-overlay.visible {
    opacity: 1;
}

.cpe-lightbox-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 20px;
    box-sizing: border-box;
}

/* Lightbox Close Button */
.cpe-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
	padding:0;
}

.cpe-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: rotate(90deg);
}

/* Lightbox Header */
.cpe-lightbox-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 70px 10px 20px;
    color: #fff;
}

.cpe-lightbox-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cpe-lightbox-counter {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
}

.cpe-lightbox-counter .current {
    color: #fff;
    font-weight: 700;
}

/* Lightbox Main */
.cpe-lightbox-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 0;
}

.cpe-lightbox-swiper {
    width: 100%;
    height: 100%;
    max-height: calc(100vh - 220px);
}

.cpe-lightbox-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cpe-lightbox-swiper .swiper-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.cpe-lightbox-swiper .swiper-button-prev,
.cpe-lightbox-swiper .swiper-button-next {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s;
}

.cpe-lightbox-swiper .swiper-button-prev:hover,
.cpe-lightbox-swiper .swiper-button-next:hover {
    background: rgba(255, 255, 255, 0.2);
}

.cpe-lightbox-swiper .swiper-button-prev::after,
.cpe-lightbox-swiper .swiper-button-next::after {
    font-size: 20px;
    color: #fff;
}

/* Lightbox Thumbnails */
.cpe-lightbox-thumbs-container {
    padding: 16px 60px;
}

.cpe-lightbox-thumbs {
    max-width: 700px;
    margin: 0 auto;
}

.cpe-lightbox-thumbs .swiper-slide {
    width: 70px;
    height: 50px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.cpe-lightbox-thumbs .swiper-slide:hover {
    opacity: 0.8;
}

.cpe-lightbox-thumbs .swiper-slide-thumb-active {
    opacity: 1;
    border-color: var(--cpe-primary);
}

.cpe-lightbox-thumbs .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Lightbox Footer */
.cpe-lightbox-footer {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 12px 20px;
}

.cpe-lightbox-btn {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
	padding:0;
}

.cpe-lightbox-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.cpe-lightbox-btn.active {
    background: var(--cpe-primary);
    border-color: var(--cpe-primary);
}

/* ================================
   Form Styles
   ================================ */

.cpe-form-container {
    max-width: 700px;
    margin: 40px auto;
    padding: 0 20px;
}

.cpe-submission-form {
    background: #fff;
    border-radius: var(--cpe-radius);
    box-shadow: var(--cpe-shadow-lg);
    overflow: hidden;
}

.cpe-form-header {
    background: linear-gradient(135deg, var(--cpe-primary), var(--cpe-primary-dark));
    color: #fff;
    padding: 30px;
    text-align: center;
}

.cpe-form-header h2 {
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 700;
}

.cpe-form-header p {
    margin: 0;
    opacity: 0.9;
}

.cpe-form-body {
    padding: 30px;
}

.cpe-form-group {
    margin-bottom: 24px;
}

.cpe-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--cpe-text);
}

.cpe-form-group label .required {
    color: var(--cpe-error);
}

.cpe-form-group input[type="text"],
.cpe-form-group input[type="url"],
.cpe-form-group input[type="email"],
.cpe-form-group input[type="date"],
.cpe-form-group input[type="time"],
.cpe-form-group select,
.cpe-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--cpe-border);
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.2s;
    background: #fff;
}

.cpe-form-group input:focus,
.cpe-form-group select:focus,
.cpe-form-group textarea:focus {
    outline: none;
    border-color: var(--cpe-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.cpe-form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.cpe-form-row {
    display: flex;
    gap: 20px;
}

.cpe-form-row .cpe-form-group {
    flex: 1;
}

.cpe-image-upload-area {
    position: relative;
    border: 2px dashed var(--cpe-border);
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--cpe-bg);
}

.cpe-image-upload-area:hover,
.cpe-image-upload-area.drag-over {
    border-color: var(--cpe-primary);
    background: rgba(59, 130, 246, 0.05);
}

.cpe-upload-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 15px;
}

.cpe-file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.cpe-image-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.cpe-preview-item {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--cpe-shadow);
}

.cpe-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cpe-preview-item .remove-preview {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    background: var(--cpe-error);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    line-height: 24px;
}

.cpe-form-footer {
    padding: 20px 30px 30px;
    text-align: center;
}

.cpe-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 40px;
    background: linear-gradient(135deg, var(--cpe-primary), var(--cpe-primary-dark));
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 200px;
}

.cpe-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.cpe-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.cpe-submit-btn .spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.cpe-form-messages {
    margin: 20px 30px;
}

.cpe-message {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.cpe-message-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.cpe-message-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}


/* Slideshow Thumbnails */
.cpe-slideshow-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    overflow-x: auto;
    padding: 5px 0;
}

.cpe-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.cpe-thumb:hover,
.cpe-thumb.active {
    opacity: 1;
}

.cpe-thumb.active {
    border-color: var(--cpe-primary);
}

.cpe-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cpe-slideshow-counter {
    text-align: center;
    margin-top: 15px;
    color: var(--cpe-text-light);
    font-size: 14px;
}

.cpe-slideshow-counter .current {
    font-weight: 700;
    color: var(--cpe-primary);
}

/* ================================
   Slideshow (Single Post)
   ================================ */

.cpe-slideshow-container {
    max-width: 900px;
    margin: 30px auto;
}

.cpe-slideshow-container  .cpe-slideshow {
    border-radius: var(--cpe-radius);
    overflow: hidden;
    box-shadow: var(--cpe-shadow-lg);
}

.cpe-slideshow-container  .cpe-slideshow .swiper-slide {
    background: #000;
}

.cpe-slideshow-container  .cpe-slideshow .swiper-slide img {
    width: 100%;
    height: 500px;
    object-fit: contain;
    cursor: pointer;
}

@media (max-width: 768px) {
    .cpe-slideshow-container  .cpe-slideshow .swiper-slide img {
        height: 300px;
    }

    .cpe-slideshow-container  .cpe-lightbox-thumbs-container {
        padding: 15px 20px;
    }

    .cpe-slideshow-container  .cpe-lightbox-thumbs .swiper-slide {
        width: 60px;
        height: 45px;
    }

    .cpe-slideshow-container   .cpe-lightbox-btn {
        width: 44px;
        height: 44px;
    }

    .cpe-slideshow-container  .cpe-lightbox-close {
        width: 44px;
        height: 44px;
        top: 10px;
        right: 10px;
    }
}

.cpe-slideshow-container  .cpe-slideshow .swiper-button-prev,
.cpe-slideshow-container  .cpe-slideshow .swiper-button-next {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    color: var(--cpe-text);
    transition: all 0.3s;
}

.cpe-slideshow-container .cpe-slideshow .swiper-button-prev:hover,
.cpe-slideshow-container  .cpe-slideshow .swiper-button-next:hover {
    background: #fff;
    transform: scale(1.1);
}

.cpe-slideshow-container  .cpe-slideshow .swiper-button-prev::after,
.cpe-slideshow-container  .cpe-slideshow .swiper-button-next::after {
    font-size: 18px;
    font-weight: bold;
}

.cpe-slideshow-container  .cpe-slideshow .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
}

.cpe-slideshow-container  .cpe-slideshow .swiper-pagination-bullet-active {
    background: #fff;
    transform: scale(1.2);
}





/* ================================
   Responsive Adjustments
   ================================ */

@media (max-width: 768px) {
    .cpe-card-image {
        height: 200px;
    }

    .cpe-card-slideshow .swiper-slide {
        height: 200px;
    }

    .cpe-pagination a,
    .cpe-pagination span {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
    }

    .cpe-pagination .prev,
    .cpe-pagination .next {
        padding: 8px 12px;
    }

    .cpe-card-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .cpe-gallery-btn {
        width: 100%;
        justify-content: center;
    }
}


/* ================================
   Responsive Styles
   ================================ */

@media (max-width: 992px) {
    .cpe-projects-grid.grid-view.columns-3,
    .cpe-projects-grid.grid-view.columns-4,
    .cpe-events-grid.grid-view.columns-3,
    .cpe-events-grid.grid-view.columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .list-card .cpe-card-image {
        width: 220px;
        min-width: 220px;
    }
}

@media (max-width: 768px) {
    .cpe-toolbar-form {
        flex-direction: column;
        align-items: stretch;
    }

    .cpe-toolbar-left {
        max-width: 100%;
    }

    .cpe-toolbar-right {
        justify-content: space-between;
    }

    .cpe-projects-grid.grid-view,
    .cpe-events-grid.grid-view {
        grid-template-columns: 1fr !important;
    }

    .list-card {
        flex-direction: column;
    }

    .list-card .cpe-card-image {
        width: 100%;
        min-width: 100%;
        height: 200px;
    }

    .list-card .cpe-card-header {
        flex-direction: column;
        gap: 8px;
    }

    .list-card .cpe-card-footer {
        flex-direction: column;
    }

    .list-card .cpe-card-footer .cpe-btn-primary,
    .list-card .cpe-card-footer .cpe-btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .cpe-lightbox-thumbs-container {
        padding: 12px 20px;
    }

    .cpe-lightbox-thumbs .swiper-slide {
        width: 50px;
        height: 36px;
    }

    .cpe-lightbox-btn {
        width: 42px;
        height: 42px;
    }

    .cpe-lightbox-close {
        width: 42px;
        height: 42px;
        top: 10px;
        right: 10px;
    }

    .cpe-form-row {
        flex-direction: column;
        gap: 0;
    }
}

@media (max-width: 480px) {
    .cpe-toolbar {
        padding: 12px;
    }

    .cpe-search-submit {
        padding: 10px 12px;
    }

    .cpe-sort-select {
        padding: 8px 28px 8px 10px;
        font-size: 13px;
    }

    .grid-card .cpe-card-content {
        padding: 16px;
    }

    .grid-card .cpe-card-footer {
        flex-direction: column;
    }

    .grid-card .cpe-card-footer .cpe-btn-primary,
    .grid-card .cpe-card-footer .cpe-btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .cpe-pagination a,
    .cpe-pagination span {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
        padding: 6px 10px;
    }
}

/***************table reports ****************/


/* ================================
   Table Report Styles
   ================================ */

.cpe-table-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

/* Table Toolbar */
.cpe-table-toolbar {
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
}

.cpe-table-toolbar-form {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.cpe-toolbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.cpe-toolbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Table Search */
.cpe-table-search {
    display: flex;
    align-items: center;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 0 12px;
    transition: all 0.2s;
}

.cpe-table-search:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.cpe-table-search svg {
    color: #9ca3af;
    flex-shrink: 0;
}

.cpe-table-search-input {
    border: none;
    background: transparent;
    padding: 10px 12px;
    font-size: 14px;
    outline: none;
    min-width: 200px;
}

.cpe-table-search-clear {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #9ca3af;
    display: flex;
    align-items: center;
}

.cpe-table-search-clear:hover {
    color: #ef4444;
}

/* Table Filter */
.cpe-table-filter-select {
    padding: 10px 36px 10px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    background: #fff url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e") right 10px center/16px no-repeat;
    cursor: pointer;
    appearance: none;
}

.cpe-table-filter-select:focus {
    outline: none;
    border-color: #3b82f6;
}

/* Search/Reset Buttons */
.cpe-table-search-btn {
    padding: 10px 20px;
    background: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.cpe-table-search-btn:hover {
    background: #2563eb;
}

.cpe-table-reset-btn {
    padding: 10px 16px;
    background: #fff;
    color: #6b7280;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.cpe-table-reset-btn:hover {
    border-color: #d1d5db;
    color: #374151;
}

/* Results Count */
.cpe-table-results {
    font-size: 14px;
    color: #6b7280;
}

.cpe-table-results .count {
    font-weight: 700;
    color: #3b82f6;
}

/* Table Wrapper */
.cpe-table-wrapper {
    overflow-x: auto;
}

/* Table */
.cpe-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.cpe-table th {
    background: #f9fafb;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-bottom: 2px solid #e5e7eb;
    white-space: nowrap;
}

.cpe-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: middle;
}

.cpe-table tbody tr:hover {
    background: #f9fafb;
}

.cpe-table tbody tr:last-child td {
    border-bottom: none;
}

/* Column Widths */
.cpe-th-checkbox,
.cpe-td-checkbox {
    width: 40px;
    text-align: center;
}

.cpe-th-id,
.cpe-td-id {
    width: 70px;
}

.cpe-th-name {
    min-width: 250px;
}

.cpe-th-status,
.cpe-td-status {
    width: 120px;
}

.cpe-th-client,
.cpe-td-client {
    width: 150px;
}

.cpe-th-date,
.cpe-td-date {
    width: 130px;
}

.cpe-th-images,
.cpe-td-images {
    width: 120px;
}

.cpe-th-actions,
.cpe-td-actions {
    width: 120px;
    text-align: center;
}

/* Sortable Headers */
.cpe-sortable {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.cpe-sortable svg {
    opacity: 0.3;
    transition: opacity 0.2s;
}

.cpe-sortable:hover svg,
.cpe-sortable.active svg {
    opacity: 1;
}

.cpe-sortable.active {
    color: #3b82f6;
}

/* ID Badge */
.cpe-id-badge {
    display: inline-block;
    padding: 4px 8px;
    background: #f3f4f6;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
}

/* Name Cell */
.cpe-name-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cpe-thumbnail {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f3f4f6;
}

.cpe-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cpe-thumbnail.cpe-no-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d1d5db;
}

.cpe-name-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cpe-project-name {
    font-weight: 600;
    color: #1f2937;
    text-decoration: none;
    transition: color 0.2s;
}

.cpe-project-name:hover {
    color: #3b82f6;
}

.cpe-project-url {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #6b7280;
    text-decoration: none;
}

.cpe-project-url:hover {
    color: #3b82f6;
}

/* Status Badge */
.cpe-status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
}

.cpe-status-planning {
    background: #dbeafe;
    color: #1e40af;
}

.cpe-status-in_progress {
    background: #fef3c7;
    color: #92400e;
}

.cpe-status-completed {
    background: #d1fae5;
    color: #065f46;
}

.cpe-status-on_hold {
    background: #fee2e2;
    color: #991b1b;
}

.cpe-status-none {
    background: #f3f4f6;
    color: #6b7280;
}

/* Date Cell */
.cpe-date-cell {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cpe-date {
    font-weight: 500;
    color: #1f2937;
}

.cpe-time {
    font-size: 12px;
    color: #6b7280;
}

/* Images Preview */
.cpe-images-preview {
    display: flex;
    align-items: center;
    gap: 4px;
}

.cpe-mini-thumb {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.cpe-mini-thumb:not(:first-child) {
    margin-left: -10px;
}

.cpe-more-images {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    background: #f3f4f6;
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    margin-left: -10px;
}

/* Empty State */
.cpe-empty {
    color: #d1d5db;
}

/* Actions Cell */
.cpe-actions-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.cpe-action-btn {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
    padding:0;
}

.cpe-action-btn:hover {
    border-color: #d1d5db;
}

.cpe-edit-btn:hover {
    background: #eff6ff;
    border-color: #3b82f6;
    color: #3b82f6;
}

.cpe-delete-btn:hover {
    background: #fef2f2;
    border-color: #ef4444;
    color: #ef4444;
}

.cpe-view-btn:hover {
    background: #f0fdf4;
    border-color: #10b981;
    color: #10b981;
}

/* Table Pagination */
.cpe-table-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
    flex-wrap: wrap;
    gap: 16px;
}

.cpe-pagination-info {
    font-size: 14px;
    color: #6b7280;
}

.cpe-pagination-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.cpe-pagination-links a,
.cpe-pagination-links span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 6px 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s;
}

.cpe-pagination-links a:hover {
    border-color: #3b82f6;
    color: #3b82f6;
}

.cpe-pagination-links .current {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #fff;
}

.cpe-pagination-links .dots {
    border: none;
    background: none;
}

/* Table Empty State */
.cpe-table-empty {
    padding: 60px 30px;
    text-align: center;
}

.cpe-empty-icon {
    margin-bottom: 16px;
    color: #d1d5db;
}

.cpe-table-empty h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: #374151;
}

.cpe-table-empty p {
    margin: 0 0 20px 0;
    color: #6b7280;
}

/* ================================
   Modal Styles
   ================================ */

.cpe-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s;
}

.cpe-modal-overlay.active {
    display: flex;
}

.cpe-modal-overlay.visible {
    opacity: 1;
}

.cpe-modal {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    transform: scale(0.95) translateY(20px);
    transition: transform 0.3s;
}

.cpe-modal-overlay.visible .cpe-modal {
    transform: scale(1) translateY(0);
}

.cpe-modal-sm {
    max-width: 450px;
}

/* Modal Header */
.cpe-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
}

.cpe-modal-header-danger {
    background: #fef2f2;
    border-bottom-color: #fecaca;
}

.cpe-modal-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

.cpe-modal-header-danger .cpe-modal-title {
    color: #991b1b;
}

.cpe-modal-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
    padding:0;
}

.cpe-modal-close:hover {
    background: #f3f4f6;
    color: #1f2937;
}

/* Modal Body */
.cpe-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

/* Modal Footer */
.cpe-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
    border-radius: 0 0 16px 16px;
}

/* Edit Form */
.cpe-edit-form .cpe-form-row {
    margin-bottom: 20px;
}

.cpe-edit-form .cpe-form-row:last-child {
    margin-bottom: 0;
}

.cpe-edit-form .cpe-form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.cpe-edit-form .cpe-form-group {
    margin-bottom: 0;
}

.cpe-edit-form label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.cpe-edit-form label .required {
    color: #ef4444;
}

.cpe-edit-form input[type="text"],
.cpe-edit-form input[type="url"],
.cpe-edit-form input[type="date"],
.cpe-edit-form select,
.cpe-edit-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
}

.cpe-edit-form input:focus,
.cpe-edit-form select:focus,
.cpe-edit-form textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.cpe-edit-form textarea {
    resize: vertical;
    min-height: 100px;
}

/* Current Images */
.cpe-current-images {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    min-height: 60px;
    padding: 12px;
    background: #f9fafb;
    border-radius: 8px;
    border: 2px dashed #e5e7eb;
}

.cpe-current-images .cpe-image-item {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
}

.cpe-current-images .cpe-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cpe-current-images .cpe-no-images {
    width: 100%;
    text-align: center;
    color: #9ca3af;
    font-size: 13px;
    padding: 10px;
}

/* Delete Modal */
.cpe-delete-warning {
    text-align: center;
}

.cpe-delete-warning svg {
    color: #f59e0b;
    margin-bottom: 16px;
}

.cpe-delete-warning p {
    margin: 0 0 8px 0;
    color: #374151;
}

.cpe-delete-project-name {
    font-weight: 700;
    color: #1f2937;
    font-size: 16px;
}

.cpe-delete-note {
    font-size: 13px;
    color: #6b7280;
    margin-top: 12px !important;
}

/* Buttons */
.cpe-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    background: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.cpe-btn-primary:hover {
    background: #2563eb;
}

.cpe-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.cpe-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    background: #fff;
    color: #374151;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.cpe-btn-secondary:hover {
    border-color: #d1d5db;
    background: #f9fafb;
}

.cpe-btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    background: #ef4444;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.cpe-btn-danger:hover {
    background: #dc2626;
}

.cpe-btn-danger:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Spinner */
.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Form Messages */
.cpe-form-messages {
    margin-top: 16px;
}

.cpe-form-messages .cpe-message {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cpe-form-messages .cpe-message-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.cpe-form-messages .cpe-message-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Responsive */
@media (max-width: 768px) {
    .cpe-table-toolbar-form {
        flex-direction: column;
        align-items: stretch;
    }

    .cpe-toolbar-left {
        flex-direction: column;
    }

    .cpe-table-search {
        width: 100%;
    }

    .cpe-table-search-input {
        min-width: 100%;
    }

    .cpe-edit-form .cpe-form-row-2 {
        grid-template-columns: 1fr;
    }

    .cpe-modal {
        max-height: 100vh;
        border-radius: 0;
    }

    .cpe-table th,
    .cpe-table td {
        padding: 10px 12px;
    }

    .cpe-th-client,
    .cpe-td-client,
    .cpe-th-images,
    .cpe-td-images {
        display: none;
    }
}


/****************************/



/* Row Animation Styles */
.cpe-row-updated {
    animation: rowHighlight 2s ease;
}

@keyframes rowHighlight {
    0% { background-color: #d1fae5; }
    100% { background-color: transparent; }
}

.cpe-row-deleting {
    background-color: #fee2e2 !important;
    opacity: 0.7;
}

/* Loading Images */
.cpe-loading-images {
    padding: 20px;
    text-align: center;
    color: #6b7280;
}

/* Message Icon */
.cpe-message-icon {
    flex-shrink: 0;
}

.cpe-message-text {
    flex: 1;
}


