/**
 * Colorobbia SDS Manager Styles
 * Matching site design with Roboto Condensed font and brand colors
 */

/* === General Styles === */
.csds-filter-wrapper {
    font-family: 'Roboto Condensed', sans-serif;
    max-width: 1840px;
    margin: 0 auto;
    padding: 20px 20px;
}

/* === Filters Section === */
.csds-filters {
    background: #f8f8f8;
    padding: 30px;
    border-radius: 0;
    margin-bottom: 15px;
    padding-top: 0px;
    padding-bottom: 0px;
}

.csds-filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
    padding-top: 20px;
}

.csds-filter-col {
    display: flex;
    flex-direction: column;
}

.csds-filter-col label {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 8px;
    color: #000;
    letter-spacing: 0.5px;
}

/* Form Controls */
.csds-select,
.csds-input {
    font-family: 'Roboto Condensed', sans-serif;
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border: 1px solid #ddd;
    background: #fff;
    transition: all 0.3s ease;
    color: #000;
}

.csds-select:focus,
.csds-input:focus {
    outline: none;
    border-color: #2590c3;
    box-shadow: 0 0 0 2px rgba(37, 144, 195, 0.1);
}

.csds-select:hover,
.csds-input:hover {
    border-color: #2590c3;
}

/* Filter Actions */
.csds-filter-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
    padding-bottom:20px;
    padding-top: 20px;
}

.csds-btn {
    font-family: 'Roboto Condensed', sans-serif;
    padding: 10px 25px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.csds-btn-primary {
    background: transparent;
    color: black;
    border:1px solid black;
}

.csds-btn-primary:hover {
    background: black;
    transform: translateY(-2px);
    color: #fff;
}

.csds-btn-secondary {
    background: #000;
    color: #fff;
}

.csds-btn-secondary:hover {
    background: #2590c3;
    color: white;
}

/* === Results Info === */
.csds-results-info {
    font-family: 'Roboto Condensed', sans-serif;
    margin-bottom: 15px;
    font-size: 16px;
    color: #666;
}

#csds-results-count {
    font-weight: 600;
    color: #000;
}

/* === Loading State === */
.csds-loading {
    text-align: center;
    padding: 60px 20px;
}

.csds-spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2590c3;
    border-radius: 50%;
    animation: csds-spin 1s linear infinite;
}

@keyframes csds-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.csds-loading p {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 18px;
    color: #666;
}

/* === Results Grid === */
.csds-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 20px;
}

.csds-file-card {
    background: #fff;
    border: 2px solid #f0f0f0;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.csds-file-card:hover {
    border-color: #2590c3;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.csds-file-icon {
    width: 50px;
    height: 40px;
    margin: 0 auto 20px;
    color: #cbc7c7;
}

.csds-file-icon svg,
.csds-file-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.csds-file-info {
    margin-bottom: 20px;
}

.csds-file-name {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #000;
    margin-bottom: 10px;
    word-break: break-all;
    line-height: 1.4;
}

.csds-file-meta {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 13px;
    color: #666;
    margin: 5px 0;
}

.csds-file-badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: #2590c3;
    margin: 3px;
    border-radius: 3px;
}

.csds-file-badge.language-it {
    background: #2590c3;
    color: #fff;
}

.csds-file-badge.language-en {
    background: #000;
    color: #fff;
}

.csds-download-btn {
    display: inline-block;
    font-family: 'Roboto Condensed', sans-serif;
    padding: 12px 25px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    background-color: transparent !important;
    color: #black !important;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    border:1px solid black;
}

.csds-download-btn:hover {
    background-color: black !important;
    color: #fff !important;
    transform: scale(1.05);
}

.csds-download-btn svg {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 8px;
}

/* === Pagination === */
.csds-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.csds-pagination-btn,
.csds-pagination-page {
    font-family: 'Roboto Condensed', sans-serif;
    padding: 10px 15px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid #000;
    background: #fff;
    color: #000;
    cursor: pointer;
    transition: all 0.3s ease;
}

.csds-pagination-btn:hover:not(:disabled),
.csds-pagination-page:hover {
    background: #000;
    color: #fff;
}

.csds-pagination-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.csds-pagination-page.active {
    background: #2590c3;
    color: #fff;
    border-color: #2590c3;
}

.csds-pagination-info {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 14px;
    color: #666;
    padding: 0 15px;
}

/* === Single Product SDS === */
.csds-single-wrapper {
    font-family: 'Roboto Condensed', sans-serif;
    margin: -20px 0;
    padding: 0;
    background: transparent;
}

.csds-single-files {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.csds-single-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: 'Roboto Condensed', sans-serif;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    background: transparent;
    color: black !important;
    border: 1px solid black;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.csds-single-btn:hover {
    background: black !important;
    color: #fff !important;
    transform: translateY(-3px);
    /*box-shadow: 0 5px 15px rgba(37, 144, 195, 0.3);*/
}

.csds-pdf-icon {
    width: 24px;
    height: 24px;
}

.csds-pdf-icon svg {
    width: 100%;
    height: 100%;
}

/* === No Results === */
.csds-no-results {
    text-align: center;
    padding: 60px 20px;
}

.csds-no-results-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    opacity: 0.3;
}

.csds-no-results h3 {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #000;
    margin-bottom: 10px;
}

.csds-no-results p {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 16px;
    color: #666;
}

.style-light select:not([multiple]) {

    background-repeat: no-repeat;
    background-position: right;
}

/* === Responsive === */
@media (max-width: 768px) {
    .csds-filter-row {
        grid-template-columns: 1fr;
    }

    .csds-results-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }

    .csds-filter-actions {
        flex-direction: column;
    }

    .csds-btn {
        width: 100%;
    }

    .csds-single-files {
        flex-direction: column;
    }

    .csds-single-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .csds-results-grid {
        grid-template-columns: 1fr;
    }

    .csds-filters {
        padding: 20px;
    }

    .csds-filter-wrapper{
        padding:0 ;
    }
}
