﻿* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
    scroll-behavior: smooth;
}

:root {
    --main-color: #96CD85;
    --secoundary: #28B0E5;
    --yellow: #FDE79C;
}


.page-title {
    background-color: #F8F8F8;
    text-align: center;
}

    .page-title h1 {
        padding: 70px;
        color: var(--main-color);
    }

.search-container {
    position: relative;
    margin: 50px 0px;
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 15px;
    padding-right: 110px;
    border-radius: 30px;
    outline: none;
    border: 1px solid #0000001A;
    box-shadow: 0px 4px 4px 0px #00000008;
    box-sizing: border-box;
}

.search-button {
    position: absolute;
    right: 8px;
    top: 50%;
    font-size: 14px;
    transform: translateY(-50%);
    padding: 12px 35px;
    background-color: var(--secoundary);
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
}

.category-section {
    background-color: white;
    margin-bottom: 20px;
    overflow: hidden;
    border-bottom: 1px solid #f0f0f0;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    cursor: pointer;
    background-color: white;
}

.category-header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}


.category-title {
    font-weight: 600;
    font-size: 20px;
    color: #666;
}

.category-logo img{
    width:50px;
}

.category-list {
    display: none;
    border-top: 1px solid #f0f0f0;
}

    .category-list.visible {
        display: block;
    }

.product-section {
    margin: 0;
    overflow: hidden;
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 15px 30px 40px;
    cursor: pointer;
    color:#666;
}

.product-title {
    font-weight: 500;
    font-size: 16px;
}

.document-list {
    display: none;
    background-color: white;
}

    .document-list.visible {
        display: block;
    }

.document-item {
    display: grid;
    grid-template-columns: 1fr 150px auto;
    grid-gap: 15px;
    align-items: center;
    padding: 15px 15px 15px 55px;
    border-bottom: 1px solid #f0f0f0;
}

.document-name {
    font-size: 16px;
    color: #666;
}

.document-type {
    text-align: center;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 13px;
    min-width: 100px;
}

    .document-type.data-sheet {
        color: #35B6FF;
        background-color: rgba(0, 176, 255, 0.1);
    }

    .document-type.user-manual {
        color: #88E788;
        background-color: rgba(76, 175, 80, 0.1);
    }

    .document-type.brochure {
        color: #ebd15d;
        background-color: rgba(233, 226, 134, 0.1);
    }


.section-arrow {
    transition: transform 0.3s ease;
    width: 20px;
}

.rotated {
    transform: rotate(180deg);
}

.download-button {
    padding: 8px 15px;
    background-color: #35B6FF;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    font-size: 12px;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-container {
    background-color: #fff;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    padding: 36px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 20px;
    color: #666;
    background: none;
    border: none;
    cursor: pointer;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #32343A;
    margin-bottom: 5px;
    line-height: 100%;
    margin-right: 10px;
}

.modal-subtitle {
    font-size: 11px;
    color: #32343A91;
    margin-bottom: 20px;
}

.modal-form .form-group {
    margin-bottom: 15px;
}

.modal-form label {
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
    color: #32343A;
    font-weight: 500;
}

.modal-form input {
    width: 100%;
    padding: 15px;
    border: 1px solid #BFC4D7;
    border-radius: 1px;
    font-size: 14px;
    color: #ABADB5;
    font-size: 10PX;
}

    .modal-form input:focus {
        border: 1px solid #BFC4D7;
        outline: none;
    }

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.modal-cancel {
    padding: 10px 40px;
    background-color: transparent;
    border: 1px solid #71747B;
    border-radius: 6px;
    color: #71747B;
    cursor: pointer;
    font-size: 12px;
}

.modal-submit {
    padding: 10px 40px;
    background-color: #35B6FF;
    border: none;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    font-size: 12px;
}

@media (max-width: 768px) {
    .document-item {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        grid-gap: 10px;
        padding: 15px;
    }

    .document-type {
        justify-self: center;
        margin: 5px 0;
        width: 100%;
    }

    .download-button {
        justify-self: center;
        width: 100%;
    }

    .modal-actions {
        flex-direction: column;
    }

    .modal-cancel, .modal-submit {
        width: 100%;
        text-align: center;
    }

    .category-title,
    .product-title {
        font-size: 16px;
    }

    .document-name {
        font-size: 14px;
    }

    .search-button {
        padding: 12px 25px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .document-item {
        grid-template-columns: 1fr auto auto;
        grid-gap: 10px;
    }

    .modal-container {
        width: 95%;
        padding: 20px;
    }
}

@media(max-width:375px) {
    .modal-title {
        margin-right: 0px;
    }
}
