/* Content Library Styles */
:root {
    --cl-primary: #000000;
    --cl-secondary: #f8f9fa;
    --cl-accent: #28a745;
    --cl-text: #333;
    --cl-text-light: #666;
    --cl-border: #e9ecef;
    --cl-shadow: 0 2px 8px rgba(0,0,0,0.1);
    --cl-radius: 4px;
    --cl-transition: all 0.3s ease;
}

/* Reset and base styles */
* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 0;
    background: #fff;
    color: var(--cl-text);
}

/* Header */
.cl-header {
    background: var(--cl-primary);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.cl-header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cl-logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.cl-nav {
    display: flex;
    gap: 2rem;
}

.cl-nav-link {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: var(--cl-radius);
    transition: var(--cl-transition);
}

.cl-nav-link:hover {
    background: rgba(255,255,255,0.1);
}

/* Hero section */
.cl-hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), 
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 400"><rect width="1200" height="400" fill="%23333"/><text x="600" y="200" text-anchor="middle" fill="white" font-size="24">Arcade Background</text></svg>');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 4rem 2rem;
}

.cl-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.cl-hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 300;
}

.cl-hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Main content */
.cl-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
}

/* Sidebar */
.cl-sidebar {
    background: var(--cl-secondary);
    padding: 1.5rem;
    border-radius: var(--cl-radius);
    height: fit-content;
    position: sticky;
    top: 120px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
}

.cl-search {
    position: relative;
    margin-bottom: 1rem;
}

.cl-search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--cl-border);
    border-radius: var(--cl-radius);
    font-size: 1rem;
    outline: none;
    transition: var(--cl-transition);
}

.cl-search-input:focus {
    border-color: var(--cl-primary);
    box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1);
}

.cl-search-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(90deg, #008C34 0%, #92C01A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cl-filters {
    margin-bottom: 2rem;
}
.cl-active-filters {
    margin-bottom: 1rem;
}

.cl-filter-tag {
    display: inline-block;
    background: var(--cl-primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    margin: 0.25rem;
    border: none;
    cursor: pointer;
    transition: var(--cl-transition);
}

.cl-filter-tag.cl-clear-all {
    background: black;
}

.cl-filter-tag.cl-clear-all:hover {
    background: #218838;
}

.cl-filter-categories {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cl-filter-category {
    border: 1px solid var(--cl-border);
    overflow: hidden;
}

.cl-filter-category-title {
    display: block;
    padding: 0.75rem 1rem;
    background: white;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
}


.cl-filter-options {
    padding: 1rem;
    background: white;
    border-top: 1px solid var(--cl-border);
    display: none;
}

.cl-filter-category.expanded .cl-filter-options {
    display: block;
}

.cl-filter-option {
    display: block;
    margin-bottom: 0.5rem;
    cursor: pointer;
}

.cl-filter-option input[type="checkbox"] {
    margin-right: 0.5rem;
}

/* Content Type Filter Buttons */
.cl-content-type-filters {
    padding: 1rem;
    background: white;
    border-top: 1px solid var(--cl-border);
}

.cl-content-type-filter {
    display: block;
    width: 100%;
    padding: 0.5rem 1rem;
    border: 1px solid var(--cl-border);
    background: white;
    color: var(--cl-text);
    border-radius: var(--cl-radius);
    cursor: pointer;
    transition: var(--cl-transition);
    font-size: 0.9rem;
    text-align: left;
    margin-bottom: 0.5rem;
}

.cl-content-type-filter:hover {
    background: var(--cl-secondary);
    border-color: var(--cl-primary);
}

.cl-content-type-filter.active {
    color: black;
    border-color: var(--cl-primary);
}

/* Document Type Filter Buttons */
.cl-document-type-filters {
    padding: 1rem;
    background: white;
    border-top: 1px solid var(--cl-border);
}

.cl-document-type-filter {
    display: block;
    width: 100%;
    padding: 0.5rem 1rem;
    border: 1px solid var(--cl-border);
    background: white;
    color: var(--cl-text);
    border-radius: var(--cl-radius);
    cursor: pointer;
    transition: var(--cl-transition);
    font-size: 0.9rem;
    text-align: left;
    margin-bottom: 0.5rem;
}

.cl-document-type-filter:hover {
    background: var(--cl-secondary);
    border-color: var(--cl-primary);
}

.cl-document-type-filter.active {
    color: black;
    border-color: var(--cl-primary);
}

/* Category Filter Buttons */
.cl-filter-options {
    display: block;
    padding: 1rem;
    background: white;
    border-top: 1px solid var(--cl-border);
}

.cl-filter-options.show {
    display: block;
}

.cl-category-filter,
.cl-general-category-filter {
    display: block;
    width: 100%;
    padding: 0.5rem 1rem;
    border: 1px solid var(--cl-border);
    background: white;
    color: var(--cl-text);
    border-radius: var(--cl-radius);
    cursor: pointer;
    transition: var(--cl-transition);
    font-size: 0.9rem;
    text-align: left;
    margin-bottom: 0.5rem;
}

.cl-category-filter:hover,
.cl-general-category-filter:hover {
    background: var(--cl-secondary);
    border-color: var(--cl-primary);
}

.cl-category-filter.active,
.cl-general-category-filter.active {
    color: black;
    border-color: var(--cl-primary);
}


.cl-btn-primary {
    background: black;
    color: white;
    padding: 6px 12px;
    border-radius: var(--cl-radius);
    border: none;
    min-width: 100%;
    color: #FFFFFF !important;
    border-radius: 4px 4px 4px 4px;
    padding: 15px 0px;
    border: none;
    margin-bottom: 10px;
    min-height: 61px;
    text-align: center;
    font-family: "Cairo", Sans-serif;
    font-size: 14px;
    text-decoration: none;
}

.cl-btn-primary:hover {
    background: grey;
    transform: translateY(-1px);
}

.cl-download-btn {
    background-color: transparent;
    min-width: 100%;
    fill: #FFFFFF;
    color: #FFFFFF;
    background-image: linear-gradient(90deg, #008C34 0%, #92C01A 100%);
    border-radius: 4px 4px 4px 4px;
    padding: 15px 0px;
    border: none;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.cl-download-btn:hover {
    background: black;
    transform: translateY(-1px);
}

.cl-download-btn.disabled {
    background: #6c757d;
    background-image: none;
    cursor: not-allowed;
    opacity: 0.7;
}

.cl-download-btn.disabled:hover {
    background: #6c757d;
    transform: none;
}

.cl-green-btn {
    background-color: transparent;
    min-width: 100%;
    fill: #FFFFFF;
    color: #FFFFFF !important;
    background-image: linear-gradient(90deg, #008C34 0%, #92C01A 100%);
    border-radius: 4px 4px 4px 4px;
    padding: 15px 0px;
    border: none;
    margin-bottom: 10px;
    min-height: 61px;
    text-align: center;
    font-family: "Cairo", Sans-serif;
    font-size: 14px;
    text-transform: none;
}

/* Content area */
.cl-content {
    min-height: 600px;
}

.cl-content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: white;
    box-shadow: var(--cl-shadow);
    gap: 1rem;
    flex-wrap: wrap;
    background: #d3cfc4;
}

.cl-view-toggle {
    display: flex;
    gap: 0.5rem;
}

.cl-view-btn {
    background: #d3cfc4;
    border: 1px solid var(--cl-border);
    padding: 0.5rem 1rem;
    border-radius: var(--cl-radius);
    cursor: pointer;
    transition: var(--cl-transition);
    font-size: 1.2rem;
}

.cl-view-btn:hover {
    background: var(--cl-secondary);
}

.cl-view-btn.active {
    color: black;
    border-color: var(--cl-primary);
}

.cl-sort, .cl-pagination {
    color: var(--cl-text-light);
    font-size: 0.875rem;
}

/* Sort controls */
.cl-sort-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cl-sort-controls label {
    font-size: 0.875rem;
    color: var(--cl-text);
    font-weight: 500;
    white-space: nowrap;
}

.cl-sort-select {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--cl-border);
    border-radius: var(--cl-radius);
    background: white;
    color: var(--cl-text);
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--cl-transition);
    min-width: 200px;
}

.cl-sort-select:focus {
    outline: none;
    border-color: var(--cl-primary);
    box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1);
}

.cl-sort-select:hover {
    border-color: var(--cl-primary);
}

/* Grid and List views */
.cl-content-grid .cl-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.cl-content-list .cl-list-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Legacy support for old classes */
.cl-products-grid .cl-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.cl-products-list .cl-list-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Product cards */
.cl-product-card {
    background: white;
    box-shadow: var(--cl-shadow);
    overflow: hidden;
    transition: var(--cl-transition);
}

.cl-product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.cl-product-image {
    height: 200px;
    background: var(--cl-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.cl-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Category overlay */
.cl-category-overlay {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    z-index: 10;
    backdrop-filter: blur(4px);
    max-width: calc(100% - 16px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cl-no-image {
    color: var(--cl-text-light);
    font-size: 0.875rem;
}

.cl-product-info {
    padding: 1.5rem;
}

.cl-product-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    color: var(--cl-text);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: calc(1.3em * 3);
}

.cl-product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.cl-product-sku {
    color: var(--cl-text-light);
    background: var(--cl-secondary);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}


.cl-product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.cl-tag {
    background: var(--cl-secondary);
    color: var(--cl-text);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Tag variations for different content types */
.cl-tag-product {
    background: #e3f2fd;
    color: #1976d2;
}

.cl-tag-pdf {
    background: #ffebee;
    color: #d32f2f;
}

/* File cards */
.cl-file-card {
    background: white;
    border-radius: var(--cl-radius);
    box-shadow: var(--cl-shadow);
    padding: 1.5rem;
    transition: var(--cl-transition);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cl-file-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.cl-file-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cl-secondary);
    border-radius: var(--cl-radius);
    flex-shrink: 0;
}

.cl-file-info {
    flex: 1;
}

.cl-file-info h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--cl-text);
}

.cl-file-ext {
    color: var(--cl-text-light);
    font-size: 0.875rem;
    margin: 0 0 0.5rem 0;
}

.cl-file-size {
    color: var(--cl-text-light);
    font-size: 0.875rem;
    margin: 0 0 1rem 0;
}

.cl-file-actions {
    display: flex;
    gap: 0.5rem;
}

.cl-file-actions .cl-download-btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    width: auto;
}

/* General files grid */
.cl-general-files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

/* Sections */
.cl-section {
    margin-bottom: 3rem;
}

.cl-section h3 {
    margin: 0 0 1.5rem 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--cl-text);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--cl-border);
}

.cl-tag-file {
    background: #f3e5f5;
    color: #7b1fa2;
}

.cl-tag-general {
    background: #e8f5e8;
    color: #388e3c;
}

.cl-tag-category {
    background: #fff3e0;
    color: #f57c00;
}

.cl-product-actions {
    display: flex;
    gap: 0.5rem;
}

.cl-action-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: var(--cl-radius);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--cl-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.cl-add-btn {
    background: var(--cl-accent);
    color: white;
}

.cl-add-btn:hover {
    background: #218838;
}

.cl-add-btn.in-cart {
    background: #6c757d;
    cursor: default;
}

/* List view specific styles */
.cl-product-row {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 1.5rem;
    align-items: center;
    background: white;
    padding: 1.5rem;
    border-radius: var(--cl-radius);
    box-shadow: var(--cl-shadow);
}

.cl-product-row .cl-product-image {
    height: 80px;
    width: 120px;
}

.cl-product-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cl-product-header {
    display: flex;
    align-items: baseline;
    gap: 1rem;
}

.cl-product-header .cl-product-title {
    margin: 0;
    font-size: 1.1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: calc(1.3em * 3);
}

.cl-product-header .cl-product-sku {
    font-size: 0.75rem;
}

.cl-product-row .cl-product-actions {
    flex-direction: column;
    gap: 0.5rem;
}

.cl-product-row .cl-action-btn {
    min-width: 120px;
}

/* General file specific styles */
.cl-general-file .cl-product-image {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 1rem;
}

.cl-file-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.cl-file-extension {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.cl-pdf-preview {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cl-pdf-loading {
    color: white;
    font-size: 0.875rem;
}

.cl-pdf-fallback {
    text-align: center;
    color: white;
}

.cl-pdf-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.cl-pdf-name {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.cl-pdf-link {
    color: white;
    text-decoration: underline;
    font-size: 0.875rem;
}

.cl-pdf-link:hover {
    color: #f0f0f0;
}

/* Loading and error states */
.cl-loading, .cl-error, .cl-no-results {
    text-align: center;
    padding: 3rem;
    color: var(--cl-text-light);
    font-size: 1.1rem;
}

.cl-loading {
    color: var(--cl-primary);
    font-weight: 500;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

@keyframes cl-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.cl-progress-bar {
    width: 100%;
    max-width: 300px;
    height: 10px;
    background-color: #f3f3f3;
    border-radius: 3px;
    overflow: hidden;
    margin: 1rem 0;
}

.cl-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #008C34 0%, #92C01A 100%);
    border-radius: 3px;
    transition: width 0.3s ease;
    width: 0%;
}

.cl-loading-text {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--cl-text-light);
}

.cl-error {
    color: #dc3545;
    font-style: italic;
    text-align: center;
    padding: 1rem;
}

.cl-no-results {
    color: var(--cl-text-light);
    font-style: italic;
    text-align: center;
    padding: 2rem;
    background: var(--cl-secondary);
    border-radius: var(--cl-radius);
    border: 1px dashed var(--cl-border);
}

/* Modal styles */
.cl-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 2000;
    overflow-y: auto;
}

.cl-modal.active {
    display: block;
}

.cl-modal-content {
    background: white;
    max-width: 900px;
    margin: 2rem auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    position: relative;
}

.cl-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--cl-text-light);
    z-index: 1;
}

.cl-modal-close:hover {
    color: var(--cl-text);
}

.cl-modal-header {
    background: var(--cl-secondary);
    padding: 1.5rem;
    border-bottom: 1px solid var(--cl-border);
}

.cl-modal-header .cl-modal-category {
    color: var(--cl-text-light);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cl-modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem;
}

.cl-modal-image {
    text-align: center;
}

.cl-modal-image img {
    max-width: 100%;
    height: auto;
}

.cl-modal-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cl-modal-description {
    line-height: 1.6;
}

.cl-modal-features {
    margin-top: 1.5rem;
}

.cl-modal-features h4 {
    margin: 0 0 1rem 0;
    color: var(--cl-text);
    font-size: 1.1rem;
}

.cl-loading-features {
    color: var(--cl-text-light);
    font-style: italic;
    text-align: center;
    padding: 1rem;
}

.cl-loading-actions {
    color: var(--cl-text-light);
    font-style: italic;
    text-align: center;
    padding: 1rem;
}

.cl-loading-documents {
    color: var(--cl-text-light);
    font-style: italic;
    text-align: center;
    padding: 1rem;
}

.cl-attribute-group {
    margin-bottom: 1.5rem;
}

.cl-attribute-group h5 {
    margin: 0 0 0.75rem 0;
    color: var(--cl-text);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Download Modal styles */
.cl-download-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 10000;
    overflow-y: auto;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cl-download-modal.active {
    display: flex !important;
    z-index: 10000 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    opacity: 1 !important;
}

.cl-download-modal-content {
    background: white;
    max-width: 500px;
    width: 90%;
    margin: 2rem auto;
    border-radius: var(--cl-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 10001;
    pointer-events: auto;
}

.cl-download-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--cl-text-light);
    z-index: 10002;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--cl-transition);
}

.cl-download-modal-close:hover {
    color: var(--cl-text);
    background: rgba(0,0,0,0.1);
}

.cl-download-modal-header {
    background: var(--cl-secondary);
    padding: 1.5rem;
    border-bottom: 1px solid var(--cl-border);
    text-align: center;
}

.cl-download-modal-header h3 {
    margin: 0 0 0.5rem 0;
    color: var(--cl-text);
    font-size: 1.5rem;
}

.cl-download-modal-header p {
    margin: 0;
    color: var(--cl-text-light);
    font-size: 0.9rem;
}

.cl-download-modal-body {
    padding: 2rem;
}

.cl-form-group {
    margin-bottom: 1.5rem;
}

.cl-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--cl-text);
}

.cl-form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--cl-border);
    border-radius: var(--cl-radius);
    font-size: 1rem;
    transition: var(--cl-transition);
}

.cl-form-group input:focus {
    outline: none;
    border-color: var(--cl-primary);
    box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1);
}

/* Multiple email inputs styling */
.cl-email-input-group {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    align-items: center;
}

.cl-email-input {
    flex: 1;
    margin-bottom: 0;
}

.cl-add-email-btn {
    background: var(--cl-accent);
    color: white;
    border: none;
    border-radius: var(--cl-radius);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    transition: var(--cl-transition);
    flex-shrink: 0;
}

.cl-add-email-btn:hover {
    background: #218838;
    transform: scale(1.05);
}

.cl-add-email-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
}

.cl-remove-email-btn {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: var(--cl-radius);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: var(--cl-transition);
    flex-shrink: 0;
}

.cl-remove-email-btn:hover {
    background: #c82333;
    transform: scale(1.05);
}

.cl-email-help {
    color: var(--cl-text-light);
    font-size: 0.8rem;
    margin-top: 0.5rem;
    display: block;
}

.cl-download-summary {
    margin: 2rem 0;
    padding: 1rem;
    background: var(--cl-secondary);
    border-radius: var(--cl-radius);
    border: 1px solid var(--cl-border);
}

.cl-download-summary h4 {
    margin: 0 0 1rem 0;
    color: var(--cl-text);
    font-size: 1rem;
}

.cl-download-files-list {
    max-height: 200px;
    overflow-y: auto;
}

.cl-download-file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    margin: 5px 0;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.cl-download-file-item:hover {
    background: #e9ecef;
    border-color: #dee2e6;
}

.cl-download-file-item:last-child {
    border-bottom: none;
}

.cl-download-file-info {
    flex: 1;
}

.cl-download-file-name {
    display: block;
    font-weight: 600;
    color: var(--cl-text);
    margin-bottom: 2px;
}

.cl-download-file-type {
    display: block;
    color: var(--cl-text-light);
    font-size: 0.875rem;
}

.cl-remove-file-btn {
    background: none;
    color: #dc3545;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 29px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    margin-left: 10px;
    flex-shrink: 0;
    padding: 0px 10px;
}

.cl-remove-file-btn:hover {
    color: none;
    background-color: none;
    border-color: none;
    -webkit-box-sizing: none;
    box-sizing: none;
}

.cl-form-actions {
    text-align: center;
    margin-top: 2rem;
}

.cl-download-submit-btn {
    background: var(--cl-accent);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--cl-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--cl-transition);
    min-width: 200px;
}

.cl-download-submit-btn:hover {
    background: #218838;
    transform: translateY(-1px);
}

.cl-download-submit-btn:disabled {
    background: var(--cl-text-light);
    cursor: not-allowed;
    transform: none;
}

.cl-loading-files {
    text-align: center;
    color: var(--cl-text-light);
    font-style: italic;
    padding: 1rem;
}

.cl-feature input[type="radio"] {
    margin-right: 0.5rem;
}

.cl-feature {
    padding: 0.75rem;
    background: var(--cl-secondary);
    border-radius: var(--cl-radius);
    margin-bottom: 0.5rem;
}

.cl-feature:last-child {
    margin-bottom: 0;
}

.cl-no-features {
    color: var(--cl-text-light);
    font-style: italic;
    text-align: center;
    padding: 1rem;
}

.cl-usp {
    color: var(--cl-accent);
    font-weight: 500;
}

.cl-action-links h4 {
    margin: 0 0 1rem 0;
    color: var(--cl-text);
}

.cl-action-link {
    display: block;
    color: var(--cl-primary);
    text-decoration: none;
    padding: 0.5rem 0;
    margin-bottom: 0.5rem;
    transition: var(--cl-transition);
}

.cl-documents-section h4 {
    margin: 0 0 1rem 0;
    color: var(--cl-text);
}

.cl-document-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    border: 1px solid var(--cl-border);
    border-radius: var(--cl-radius);
    margin-bottom: 0.5rem;
}

.cl-document-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.cl-document-name {
    font-weight: 500;
    color: var(--cl-text);
    font-size: 14px;
    padding: 0px 5px;
}

.cl-document-size {
    font-size: 0.75rem;
    color: var(--cl-text-light);
}

.cl-document-btn {
    background: var(--cl-accent);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--cl-radius);
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--cl-transition);
}

.cl-document-btn:hover {
    background: #218838;
}

.cl-document-btn.in-cart {
    background: #6c757d;
    cursor: default;
}

.cl-no-documents {
    color: var(--cl-text-light);
    font-style: italic;
    text-align: center;
    padding: 1rem;
}

/* Notification system */
.cl-notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: white;
    border: 1px solid var(--cl-border);
    border-radius: var(--cl-radius);
    box-shadow: var(--cl-shadow);
    padding: 1rem 1.5rem;
    z-index: 3000;
    transform: translateX(100%);
    transition: var(--cl-transition);
    max-width: 400px;
}

.cl-notification.show {
    transform: translateX(0);
}

.cl-notification-message {
    display: block;
    margin-bottom: 0.5rem;
}

.cl-notification-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--cl-text-light);
}

.cl-notification-close:hover {
    color: var(--cl-text);
}

.cl-notification-success {
    border-left: 4px solid var(--cl-accent);
}

.cl-notification-error {
    border-left: 4px solid #dc3545;
}

.cl-notification-info {
    border-left: 4px solid var(--cl-primary);
}

/* Responsive design */
@media (max-width: 1024px) {
    .cl-main {
        grid-template-columns: 1fr;
    }
    
    .cl-sidebar {
        position: static;
        order: 1;
    }
    
    .cl-content {
        order: 2;
    }
}

@media (max-width: 768px) {
    .cl-header-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .cl-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .cl-hero-title {
        font-size: 2rem;
    }
    
    .cl-content-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .cl-sort-controls {
        justify-content: center;
    }
    
    .cl-sort-select {
        min-width: auto;
        width: 100%;
    }
    
    .cl-content-grid .cl-grid-container,
    .cl-products-grid .cl-grid-container {
        grid-template-columns: 1fr;
    }
    
    .cl-product-row {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .cl-product-row .cl-product-image {
        width: 100%;
        height: 120px;
    }
    
    .cl-modal-body {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .cl-modal-content {
        margin: 1rem;
    }
}

@media (max-width: 480px) {
    .cl-main {
        padding: 1rem;
    }
    
    .cl-sidebar {
        padding: 1rem;
    }
    
    .cl-product-info {
        padding: 1rem;
    }
    
    .cl-product-actions {
        flex-direction: column;
    }
    
    .cl-action-btn {
        width: 100%;
    }
}

/* Action buttons styling */
.cl-action-btn {
    background: var(--cl-primary);
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: var(--cl-radius);
    cursor: pointer;
    transition: var(--cl-transition);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.cl-action-btn:hover {
    background: #464646;
    transform: translateY(-1px);
}

.cl-action-btn.selected {
    background-image: linear-gradient(90deg, #008C34 0%, #92C01A 100%);
    color: white !important;
    border-color: #28a745 !important;
}

.cl-action-btn.selected:hover {
    background: #1e7e34 !important;
}

/* Ensure all button variants get the selected styling */
.cl-add-btn.selected,
.cl-action-btn.cl-add-btn.selected {
    background-image: linear-gradient(90deg, #008C34 0%, #92C01A 100%);
    color: white !important;
    border-color: #28a745 !important;
}

.cl-add-btn.selected:hover,
.cl-action-btn.cl-add-btn.selected:hover {
    background: #1e7e34 !important;
}

.cl-icon {
    font-size: 1rem;
}

.cl-product-actions {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.cl-product-meta {
    display: flex;
    gap: 1rem;
    margin: 0.5rem 0;
    font-size: 0.875rem;
    color: var(--cl-text-light);
}


.cl-product-title {
    margin: 0.5rem 0;
    font-size: 1.1rem;
    color: var(--cl-text);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: calc(1.3em * 3);
}

.cl-product-image {
    position: relative;
    overflow: hidden;
    background: var(--cl-secondary);
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cl-product-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--cl-radius);
}

.cl-no-image {
    color: var(--cl-text-light);
    font-style: italic;
    text-align: center;
    padding: 2rem;
}

.cl-file-icon {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cl-secondary);
    border-radius: var(--cl-radius);
}

.cl-file-extension {
    font-size: 2rem;
    font-weight: bold;
    color: var(--cl-text-light);
}

.cl-file-pdf {
    color: white;
}

.cl-file-doc, .cl-file-docx {
    color: white;
}

.cl-file-txt {
    color: white;
}

.cl-file-other {
    background: #888;
    color: white;
}

/* Enhanced content grid styling */
.cl-products-grid, .cl-general-files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.cl-product-card, .cl-general-file-card {
    background: white;
    box-shadow: var(--cl-shadow);
    overflow: hidden;
    transition: var(--cl-transition);
    border: 1px solid var(--cl-border);
}

.cl-product-card:hover, .cl-general-file-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.cl-product-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.cl-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cl-product-info {
    padding: 1rem;
}

.cl-product-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--cl-text);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: calc(1.3em * 3);
}

.cl-product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.cl-product-sku {
    color: var(--cl-text-light);
}


.cl-product-actions {
    display: flex;
    gap: 0.5rem;
}

.cl-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: var(--cl-radius);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--cl-transition);
}

.cl-add-btn.selected {
    background: var(--cl-accent);
    color: white;
}

.cl-add-btn.selected:hover {
    background: black;
}

.cl-icon {
    font-size: 1rem;
}

/* General file specific styling */
.cl-general-file-card .cl-product-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cl-file-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
}

.cl-file-extension {
    font-size: 1.5rem;
    font-weight: bold;
    margin-top: 0.5rem;
}

.cl-section {
    margin-bottom: 2rem;
}

.cl-section h3 {
    margin-bottom: 1rem;
    color: var(--cl-text);
    font-size: 1.3rem;
    font-weight: 600;
}

.cl-loading, .cl-no-results {
    text-align: center;
    padding: 3rem;
    color: var(--cl-text-light);
    font-size: 1.1rem;
}

/* View switching styles */
.cl-content-grid .cl-products-grid,
.cl-content-grid .cl-general-files-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.cl-content-list .cl-products-grid,
.cl-content-list .cl-general-files-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
}

.cl-content-list .cl-product-card,
.cl-content-list .cl-general-file-card {
    display: flex;
    flex-direction: row;
    height: auto;
}

.cl-content-list .cl-product-image,
.cl-content-list .cl-general-file-card .cl-product-image {
    width: 120px;
    height: 100%;
    flex-shrink: 0;
}

.cl-content-list .cl-product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cl-content-list .cl-product-meta {
    margin-bottom: 0.5rem;
}

.cl-content-list .cl-product-actions {
    margin-top: auto;
}

/* Modal styling */
.cl-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.cl-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cl-modal-content {
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 100%;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cl-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    z-index: 10001;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--cl-transition);
}

.cl-modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

.cl-modal-header {
    padding: 20px 20px 0;
    border-bottom: 1px solid var(--cl-border);
    margin-bottom: 20px;
}

.cl-modal-category {
    font-size: 0.9rem;
    color: var(--cl-text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* H tekst styling for modal title */
.cl-modal-title {
    font-family: "nasalization-rg", Sans-serif;
    font-size: 35px;
    font-weight: 500;
    color: #000000;
    margin: 10px 0 0 0;
    line-height: 1.2;
}

.cl-modal-body {
    padding: 0 20px 20px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.cl-modal-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cl-modal-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cl-modal-image {
    text-align: center;
}

.cl-modal-image img {
    max-width: 100%;
    height: auto;
}

.cl-modal-content-below {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cl-modal-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--cl-text);
    margin: 0;
    padding-top: 15px;
}

.cl-loading-description {
    color: var(--cl-text-light);
    font-style: italic;
    text-align: center;
    padding: 1rem;
}

.cl-modal-features h3,
.cl-modal-features h4,
.cl-modal-usps h3,
.cl-modal-documents h3,
.cl-modal-documents h4 {
    margin: 0 0 15px 0;
    color: var(--cl-text);
    font-size: 1.1rem;
    font-weight: 600;
}

.cl-modal-documents {
    background: #f8f9fa;
    padding: 20px;
    border: 1px solid var(--cl-border);
}

.cl-modal-documents h3 {
    margin-top: 0;
    color: var(--cl-primary);
    font-size: 1.2rem;
}

.cl-feature {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

/* USPs styling with bullet points */
.cl-modal-usps {
    margin-top: 1.5rem;
}

.cl-usp-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cl-usp-item {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    line-height: 1.5;
    color: var(--cl-text);
}

.cl-usp-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 8px;
    height: 8px;
    background-image: url('data:image/svg+xml;utf8,<svg width="8" height="8" viewBox="0 0 8 8" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="4" cy="4" r="4" fill="%234CAF50"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.cl-feature:last-child {
    border-bottom: none;
}

.cl-document-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.cl-document-info {
    flex: 1;
}

.cl-document-name {
    font-weight: 500;
    color: var(--cl-text);
}

.cl-document-size {
    font-size: 0.9rem;
    color: var(--cl-text-light);
    margin-left: 10px;
}

.cl-document-btn {
    background-image: linear-gradient(90deg, #008C34 0%, #92C01A 100%);
    color: white;
    padding: 6px 12px;
    border-radius: var(--cl-radius);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--cl-transition);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.cl-document-btn:hover {
    background: #218838;
    color: white;
}

.cl-document-btn.selected {
    background: var(--cl-primary);
    color: white;
}

.cl-document-btn.selected:hover {
    background: #464646;
}

/* Seamless Textures Section */
.cl-seamless-textures-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--cl-border);
}

.cl-seamless-textures-section h3 {
    margin: 0 0 1rem 0;
    color: var(--cl-text);
    font-size: 1.1rem;
    font-weight: 600;
}

.cl-seamless-texture-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.cl-seamless-texture-item:last-child {
    border-bottom: none;
}

.cl-seamless-texture-info {
    flex: 1;
}

.cl-seamless-texture-name {
    font-weight: 500;
    color: var(--cl-text);
}

.cl-seamless-texture-type {
    font-size: 0.9rem;
    color: var(--cl-text-light);
    margin-left: 10px;
}

.cl-seamless-texture-btn {
    background-image: linear-gradient(90deg, #008C34 0%, #92C01A 100%);
    color: white;
    padding: 6px 12px;
    border-radius: var(--cl-radius);
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--cl-transition);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.cl-seamless-texture-btn:hover {
    background: Black;
    color: white;
}

.cl-seamless-texture-btn.selected {
    background: var(--cl-primary);
    color: white;
}

.cl-seamless-texture-btn.selected:hover {
    background: #464646;
}

.cl-loading-features,
.cl-loading-documents,
.cl-no-features,
.cl-no-documents,
.cl-error {
    text-align: center;
    padding: 20px;
    color: var(--cl-text-light);
    font-style: italic;
}

.cl-error {
    color: #dc3545;
}

/* Responsive modal */
@media (max-width: 768px) {
    .cl-modal-body {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .cl-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .cl-modal-left {
        order: 1;
    }
    
    .cl-modal-right {
        order: 2;
    }
}

/* WooCommerce attribute filters styling */
.cl-woocommerce-attributes-filters {
    padding: 10px 0;
}

.cl-attribute-group {
    margin-bottom: 20px;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    background: #fff;
}

.cl-attribute-title {
    margin: 0;
    padding: 12px 15px;
    background: #f8f9fa;
    border-bottom: 1px solid #e1e5e9;
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    border-radius: 6px 6px 0 0;
}

.cl-attribute-values {
    padding: 10px 15px;
    max-height: 200px;
    overflow-y: auto;
}

.cl-attribute-value {
    display: block;
    margin: 8px 0;
    cursor: pointer;
    padding: 4px 0;
    transition: all 0.2s ease;
}

.cl-attribute-value:hover {
    background: #f8f9fa;
    border-radius: 3px;
    margin: 8px -5px;
    padding: 4px 5px;
}

.cl-attribute-value input[type="checkbox"] {
    margin-right: 8px;
    accent-color: var(--cl-primary);
}

.cl-checkbox-label {
    font-size: 13px;
    color: #495057;
    user-select: none;
}

.cl-attribute-value input[type="checkbox"]:checked + .cl-checkbox-label {
    color: var(--cl-primary);
    font-weight: 500;
}

.cl-loading-attributes,
.cl-no-attributes,
.cl-error-attributes {
    text-align: center;
    padding: 20px;
    color: #6c757d;
    font-style: italic;
}

.cl-error-attributes {
    color: #dc3545;
}

/* Filter tags for WooCommerce attributes */
.cl-filter-tag[data-filter="woocommerce-attribute"] {
    background: #28a745 !important;
}

.cl-filter-tag[data-filter="woocommerce-attribute"]:hover {
    background: #218838 !important;
}

/* Modal Actions Styling */
.cl-modal-actions-section {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
}

.cl-modal-actions-section h3 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
}

.cl-modal-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.cl-modal-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    background: #fff;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    color: #495057;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 48px;
}

.cl-modal-action-btn:hover {
    background: var(--cl-primary);
    border-color: var(--cl-primary);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.cl-modal-action-btn .cl-icon {
    margin-right: 8px;
    font-size: 16px;
}


/* Kleurstaal Button Styling */
.kleurstaal-btn {
    background: #28a745;
    border-color: #28a745;
    color: #fff;
}

.kleurstaal-btn:hover {
    background: #218838;
    border-color: #1e7e34;
}

a.cl-btn-primary {
    line-height: 2.0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .cl-modal-actions-grid {
        grid-template-columns: 1fr;
    }
    
    .cl-modal-action-btn {
        min-height: 44px;
        font-size: 13px;
    }
}

/* Mobile sticky elements */
@media (max-width: 768px) {
    /* Ensure header is sticky */
    .cl-header {
        position: sticky;
        top: 0;
        z-index: 1001;
    }
    
    /* Fixed sidebar header containing download button and search */
    .cl-sidebar-header {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        z-index: 999;
        background: #e5e5e5;
        padding: 0px 13px;
        padding-top: 22px;
        margin: 0;
    }
    
    .cl-search-input {
        width: 100%;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    /* Download button styling within fixed header */
    .cl-download-btn {
        width: 100%;
        margin-bottom: 10px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .cl-download-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
    
    /* Add top padding to sidebar to account for fixed header */
    .cl-sidebar {
        padding-top: 160px; /* Header + sidebar header height */
    }
    
    /* Add bottom padding to content to account for sticky elements */
    .cl-content {
        padding-bottom: 20px;
    }
}