.client-controls {
    margin-bottom: 20px;
}
.search-controls {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    margin-bottom: 20px;
}
.search-controls .form-group {
    margin-bottom: 0;
}

/* Modal styling */
.modal-header {
    background-color: #efefef;
    color: #111;
    font-weight: bold;
}

.modal-header .close {
    color: #333
}

.info-section {
    margin-bottom: 20px;
}

.info-section h5 {
    border-bottom: 2px solid #007bff;
    padding-bottom: 5px;
    margin-bottom: 15px;
    color: #007bff;
}

.info-row {
    display: flex;
    margin-bottom: 8px;
}

.info-label {
    font-weight: bold;
    min-width: 200px;
    color: #495057;
}

.info-value {
    color: #212529;
}

.info-value a {
    color: #007bff;
}

/* Editable field styling */
.editable-section {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin-top: 15px;
    border: 1px solid #dee2e6;
}

.editable-section h6 {
    color: #28a745;
    margin-bottom: 15px;
    font-weight: bold;
}

.editable-row {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.editable-row:last-child {
    margin-bottom: 0;
}

.editable-label {
    font-weight: bold;
    min-width: 180px;
    color: #495057;
}

.editable-input {
    flex: 1;
    margin-right: 10px;
}

.editable-input input {
    width: 100%;
}

.update-btn {
    white-space: nowrap;
}

.update-feedback {
    margin-left: 10px;
    font-size: 14px;
}

.update-feedback.success {
    color: #28a745;
}

.update-feedback.error {
    color: #dc3545;
}


/* Client Assets Modal Styles */
#assetsDisplay {
    max-height: 450px;
    overflow-y: auto;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
}

.asset-type-section {
    margin-bottom: 25px;
}

.asset-type-header {
    background-color: #fff;
    color: #333;
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.95rem;
    text-transform: uppercase;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Different colors for each asset type */
.asset-type-header.type-logox {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.asset-type-header.type-palletx {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.asset-type-header.type-photox {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.asset-type-header.type-docx {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.asset-type-header.type-otherx {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.asset-type-count {
    background-color: #eee;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.85rem;
    margin-left: auto;
}

.asset-item {
    background-color: white;
    padding: 4px 15px;
    margin-bottom: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.asset-item:last-child {
    margin-bottom: 0;
}

.asset-info {
    flex: 1;
}

.asset-filename {
    font-weight: 600;
    color: #333;
    margin-bottom: 1px;
    cursor: pointer;
    display: inline-block;
}

.asset-filename:hover {
    text-decoration: underline;
}

.asset-meta {
    font-size: 0.85rem;
    color: #6c757d;
}

.asset-actions {
    display: flex;
    gap: 5px;
}

.no-assets-message {
    text-align: center;
    padding: 10px 20px;
    color: #6c757d;
}

.no-assets-message i {
    font-size: 3rem;
    color: #dee2e6;
    margin-bottom: 15px;
}

.upload-asset-section {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
    border: 2px dashed #dee2e6;
}

.upload-asset-section .section-title, .brand-colors-section .section-title {
    color: #333;
    font-weight: bold;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.upload-asset-section .section-title::before, .brand-colors-section .section-title::before {
    content: "\f093";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

.upload-area {
    border: 3px dashed #999;
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    background-color: white;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area:hover {
    background-color: #f0f8ff;
    border-color: #0056b3;
}

.upload-area.dragover {
    background-color: #e3f2fd;
    border-color: #0056b3;
    transform: scale(1.02);
}

.upload-icon {
    font-size: 3rem;
    color: #007bff;
    margin-bottom: 15px;
}

.upload-text {
    font-size: 1.1rem;
    color: #495057;
    margin-bottom: 5px;
}

.upload-text a {
    color: #007bff;
    text-decoration: underline;
}

.upload-subtext {
    font-size: 0.9rem;
    color: #6c757d;
}

.upload-progress {
    padding: 20px;
}

.upload-progress .progress {
    height: 30px;
    margin-bottom: 10px;
}

.upload-status {
    font-weight: 600;
    color: #007bff;
    margin-bottom: 0;
}

.btn-delete-asset {
    padding: 4px 8px;
    font-size: 0.85rem;
}



/* Brand Colors Section Styles */
.brand-colors-section {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    margin-top: 20px;
}

/* Color Palette Display */
.color-palette-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
}

.color-card {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}

.color-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.color-card-swatch {
    width: 100%;
    height: 60px;
    border-radius: 6px;
    margin-bottom: 8px;
    border: 1px solid rgba(0,0,0,0.1);
}

.color-card-value {
    font-size: 0.75rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 4px;
    word-break: break-all;
}

.color-card-type {
    font-size: 0.7rem;
    color: #6c757d;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.color-card-delete {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 2px 6px;
    font-size: 0.7rem;
    opacity: 0.7;
}

.color-card-delete:hover {
    opacity: 1;
}

/* Color Picker Input */
.color-picker-input {
    width: 50px;
    height: 38px;
    padding: 2px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    cursor: pointer;
}

.color-picker-input::-webkit-color-swatch-wrapper {
    padding: 2px;
}

.color-picker-input::-webkit-color-swatch {
    border: none;
    border-radius: 3px;
}

/* Quick Pick Popup Styles */
.quick-pick-wrapper {
    position: relative;
    display: inline-block;
}

.quick-pick-popup {
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 8px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    min-width: 200px;
}

.quick-pick-popup::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid white;
}

.quick-pick-popup::before {
    content: '';
    position: absolute;
    top: 100%;
    right: 19px;
    width: 0;
    height: 0;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-top: 9px solid #dee2e6;
    z-index: -1;
}

/* Grid for color swatches */
.grid {
    display: grid;
}

.grid-cols-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.gap-2 {
    gap: 0.5rem;
}

/* Quick Pick Swatch Button */
.quick-pick-swatch {
    height: 1.75rem;
    width: 1.75rem;
    border-radius: 9999px;
    border: 1px solid #dee2e6;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    padding: 0;
}

.quick-pick-swatch:hover {
    transform: scale(1.15);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    border-color: #495057;
}

.quick-pick-swatch:active {
    transform: scale(1.05);
}

/* Input placeholders based on type */
#colorValue.input-hex {
    font-family: monospace;
}

#colorValue.input-rgb,
#colorValue.input-cmyk {
    font-family: monospace;
}