/* Homepage specific styles */

.sidebar {
    width: 240px;
    background-color: var(--sidebar-bg-color);
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    overflow-y: scroll;
}

.sidebar-header {
    margin-bottom: 30px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-image {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

.logo-text {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-color);
}

.sidebar-content {
    flex-grow: 1;
}

.nav-list {
    list-style: none;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 15px;
    margin-bottom: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
    position: relative;
    color: var(--text-color);
}

.nav-item svg.nav-icon {
    width: 32px;
    height: 32px;
    margin-right: 15px;
    stroke-width: 1.5;
}

.nav-item .nav-text {
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.nav-item .nav-text .count {
    font-size: 12px;
    font-weight: 400;
    opacity: 0.8;
    margin-left: 8px;
}

.nav-item.active {
    background-color: var(--highlight-color);
    color: white;
}

.nav-item.active svg.nav-icon {
    stroke: white;
}

.nav-item:not(.active):hover {
    background-color: var(--hover-bg-color);
}

.main-content {
    flex-grow: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--subtle-border-color);
}

.page-title {
    font-size: 28px;
    font-weight: 600;
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 10px;
    width: 16px;
    height: 16px;
    stroke: var(--text-color);
}

.search-input {
    width: 300px;
    padding-left: 35px;
    background-color: var(--card-bg-color);
    color: var(--text-color);
    border: 1px solid var(--subtle-border-color);
    border-radius: 4px;
    padding: 8px 12px;
    padding-left: 35px;
}

.filter-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.filter-btn svg {
    width: 20px;
    height: 20px;
    stroke: var(--text-color);
}


.tools-table {
    width: 100%;
    border-collapse: collapse;
    display: table;
}

.table-header {
    display: table-header-group;
    background-color: var(--sidebar-bg-color);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.header-cell {
    display: table-cell;
    padding: 12px 15px;
    border-bottom: 1px solid var(--subtle-border-color);
}

.table-body {
    display: table-row-group;
}

.table-row {
    display: table-row;
    transition: background-color 0.2s ease-in-out;
}

.table-row:hover {
    background-color: var(--hover-bg-color);
}

.cell {
    display: table-cell;
    padding: 15px;
    border-bottom: 1px solid var(--subtle-border-color);
    vertical-align: middle;
}

.title-col {
    width: 25%;
}

.desc-col {
    width: 55%;
}

.category-col {
    width: 20%;
}

.cell a {
    color: var(--highlight-color);
    font-weight: 500;
}

.no-results {
    padding: 20px;
    text-align: center;
    color: #888;
}

