* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.download-container {
    margin: 40px auto 60px;
}

.download-page-title {
    text-align: center;
    color: #254B72;
    font-weight: 600;
    font-size: 32px;
    line-height: 1.2;
    margin-bottom: 30px;
}

.search-section {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    gap: 10px;
}

.search-bar {
    position: relative;
    width: 100%;
    max-width: 600px;
}

.search-bar input {
    width: 100%;
    padding: 10px 15px;
    border: none;
    box-shadow: 0px 4px 4px 0px #00000008;
    border-radius: 14px;
    font-size: 16px;
    padding-left: 40px;
}

.HIDE:focus {
    border: none;
    outline: none;
  }

.search-bar::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%23888" viewBox="0 0 16 16"><path d="M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
}

.search-button {
    background-color: #336D94;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    min-width: 100px;
    flex-shrink: 0;
}

.download-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
   
   
    overflow: hidden;
}

.download-item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    padding: 20px 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.3);
    background-color: white;
    transition: all 0.3s ease;
    gap: 15px;
}



.item-content {
    display: flex;
    gap: 15px;
    align-items: center;
}

.item-logo {
    min-width: 40px;
}

.download-item img {
    width: 40px;
    height: 40px;
}

.item-title {
    font-size: 18px;
    color: #254B72;
    font-weight: 500;
    line-height: 1.3;
    margin: 0;
}

.item-title p {
    margin: 0;
}

.item-type {
    width: 100px;
    text-align: center;
}

.item-type p {
    margin: 0;
    font-size: 14px;
    color: #254B72;
    padding: 5px 0;
    white-space: nowrap;
}

.download-item a {
    width: 100px;
    text-align: center;
}

.download-item button {
    background-color: #254B72;
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    width: 100%;
}

.download-item button:hover {
    background-color: #1c3b5a;
}

 /* 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: #254B72;
    border: none;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    font-size: 12px;
}

/* Filter styles */
.filter-section {
    margin-bottom: 20px;
    display: flex;
    justify-content: flex-end;
}

.filter-dropdown {
    position: relative;
    display: inline-block;
}

.filter-button {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 8px 15px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.filter-button::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #666;
    margin-left: 5px;
}

.filter-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: #fff;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1);
    z-index: 1;
    border-radius: 6px;
    margin-top: 5px;
}

.filter-content a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 14px;
}

.filter-content a:hover {
    background-color: #f5f9ff;
}

.filter-dropdown:hover .filter-content {
    display: block;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .download-page-title {
        font-size: 26px;
    }
}

@media (max-width: 768px) {
    .download-page-title {
        font-size: 22px;
        margin-bottom: 20px;
    }
    
    
    .search-section {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .search-bar {
        flex: 1 1 70%;
    }
    
    .search-button {
        flex: 0 1 auto;
    }
    
    .download-item {
        grid-template-columns: 1fr 100px;
        grid-template-rows: auto auto;
        grid-template-areas: 
            "content download"
            "type download";
        gap: 10px;
    }
    
    .item-content {
        grid-area: content;
    }
    
    .item-type {
        grid-area: type;
        justify-self: start;
    }
    
    .download-item a {
        grid-area: download;
        align-self: center;
    }
    
    .modal-container {
        width: 95%;
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .download-page-title {
        font-size: 20px;
    }
    
    .search-section {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-button {
        width: 100%;
    }
    
    .download-item {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        grid-template-areas: 
            "content"
            "type"
            "download";
        padding: 15px;
    }
    
    .item-content {
        margin-bottom: 5px;
    }
    
    .download-item a {
        width: 100%;
        justify-self: start;
    }
    
    .download-item button {
        width: 100%;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .modal-cancel, .modal-submit {
        width: 100%;
        text-align: center;
    }
}



/* --------Dark mode styles-------- */

body.dark-mode {
    background-color: #010A16;  }

body.dark-mode .download-item{
    background-color: transparent;
    border-bottom: 1px solid #9ca0a1;
}



body.dark-mode .search-bar input{
    background-color: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.7);
}

body.dark-mode .item-title p{
    color: white;
    opacity: 0.7;
}
