/* Search Box */
.search-box {
    background: white;
    border-radius: 30px;
    padding: 0.5rem 1rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    margin-bottom: 2.5rem;
    border: 1px solid rgba(0,0,0,0.05);
}

.search-box input {
    border: none;
    outline: none;
    flex-grow: 1;
    padding: 0.5rem 0.5rem 0.5rem 1rem;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    color: var(--text-dark);
    background: transparent;
}

.search-box button {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s;
}

.search-box button:hover {
    background: var(--dark-color);
}

/* Document Items */
.doc-item {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.03);
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.doc-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border-color: rgba(45, 134, 89, 0.3);
}

.doc-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.doc-icon.pdf {
    background-color: rgba(230, 57, 70, 0.1);
    color: #e63946;
}

.doc-icon.word {
    background-color: rgba(43, 87, 154, 0.1);
    color: #2b579a;
}

.doc-icon.excel {
    background-color: rgba(33, 115, 70, 0.1);
    color: #217346;
}

.doc-info {
    flex-grow: 1;
}

.doc-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.25rem;
}

.doc-meta {
    font-size: 0.85rem;
    color: var(--text-light);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.doc-meta span {
    display: flex;
    align-items: center;
}

.doc-meta i {
    margin-right: 0.4rem;
    color: var(--primary-color);
}

.btn-download {
    background-color: var(--light-color);
    color: var(--primary-color);
    border: 2px solid transparent;
    padding: 0.5rem 1.25rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    margin-left: 1rem;
}

.btn-download i {
    margin-right: 0.5rem;
}

.btn-download:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Category Sidebar */
.category-list {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.03);
}

.category-list h5 {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1.25rem;
    border-bottom: 2px solid var(--light-color);
    padding-bottom: 0.75rem;
}

.category-list .list-group-item {
    border: none;
    padding: 0.75rem 0;
    color: var(--text-dark);
    transition: color 0.3s;
    background: transparent;
    text-decoration: none;
}

.category-list .list-group-item:hover, .category-list .list-group-item.active {
    color: var(--primary-color);
    background: transparent;
    font-weight: 600;
}

.category-list .list-group-item.active {
    border-right: 3px solid var(--primary-color);
    border-radius: 0;
}

.category-list .list-group-item i {
    width: 20px;
    color: var(--text-light);
    transition: color 0.3s;
}

.category-list .list-group-item:hover i, .category-list .list-group-item.active i {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .doc-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .doc-icon {
        margin-bottom: 1rem;
    }
    .btn-download {
        margin-left: 0;
        margin-top: 1rem;
        width: 100%;
        justify-content: center;
    }
}
