* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}
header {
    background-color: #ffffff;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    gap: 12px;
}
.logo img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.logo-text h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: #333;
}
.logo-text p {
    font-size: 0.875rem;
    color: #666;
    margin: 0;
}
nav ul {
    display: flex;
    list-style: none;
    gap: 8px;
}
nav ul li {
    margin-left: 1rem;
}
nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}
nav ul li a:hover,
nav ul li a.active {
    color: #667eea;
    background-color: rgba(102, 126, 234, 0.1);
}
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}
.search-filter-section {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    margin-bottom: 2rem;
}
.search-box {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}
.search-box input {
    flex: 1;
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    background-color: #ffffff;
    color: #333;
    transition: all 0.3s ease;
    outline: none;
}
.search-box input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}
.search-box button {
    padding: 0.5rem 1rem;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.search-icon {
    font-size: 1rem;
    line-height: 1;
}
.search-box button:hover {
    background: #5a6fd8;
    transform: none;
    box-shadow: none;
}
.category-tags {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    align-items: center;
    margin-top: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-tags::-webkit-scrollbar {
    display: none;
}
.category-tag {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    text-decoration: none;
    color: #666;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.3rem 0.8rem;
    border-radius: 5px;
    background-color: #e6eaec;
    border: 1px solid transparent;
    white-space: nowrap;
}
.category-tag:hover {
    background-color: #e9ecef;
    color: #333;
}
.category-tag.active {
    background-color: #667eea;
    color: #ffffff;
    border-color: #667eea;
    font-weight: 600;
}
.category-tag .count {
    background: rgba(0, 0, 0, 0.08);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 11px;
    margin-left: 4px;
}
.category-tag.active .count {
    background: rgba(255, 255, 255, 0.25);
}
.downloads-list {
    margin-bottom: 2rem;
}
.resources-table-header {
    display: flex;
    background: linear-gradient(135deg, #728bcd 0%, #769edf 100%);
    color: #ffffff !important;
    border-radius: 12px 12px 0 0;
    padding: 1rem 1.5rem;
    font-weight: 700;
    font-size: 0.9375rem;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.4);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}
.resources-table-header .table-col {
    color: #ffffff !important;
}
.resources-table {
    width: 100%;
    background-color: #ffffff;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-top: none;
}
.resource-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #f3f4f6;
    transition: all 0.25s ease;
    background-color: #ffffff;
}
.resource-item:last-child {
    border-bottom: none;
}
.resource-item:hover {
    background-color: #f8fafc;
    transform: translateX(4px);
    text-decoration: none;
    color: inherit;
}
.resource-item:nth-child(even) {
    background-color: #fafbfc;
}
.resource-item:nth-child(even):hover {
    background-color: #f1f5f9;
}
.table-col {
    padding: 0 0.75rem;
    overflow: hidden;
}
.table-col:first-child {
    padding-left: 0;
}
.table-col:last-child {
    padding-right: 0;
}
.col-name {
    width: 20%;
    font-weight: 600;
    color: #1f2937;
}
.col-category {
    width: 20%;
    color: #4b5563;
}
.col-category .category-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    color: #667eea;
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
    background-color: #f8fafc;
}
.col-desc {
    width: 50%;
    color: #6b7280;
}
.col-count {
    width: 10%;
    text-align: center;
    color: #6b7280;
}
.cell-text {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
}

.col-desc {
    position: relative;
}

.col-desc .tooltip {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
    background-color: #f8fafc;
    padding: 0.75rem;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    z-index: 1000;
    max-width: 400px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    color: #4b5563;
    font-size: 0.875rem;
    line-height: 1.4;
    white-space: normal;
}

.col-desc .tooltip::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 12px;
    border-width: 4px;
    border-style: solid;
    border-color: transparent transparent #e2e8f0 transparent;
}

.col-desc:hover .tooltip {
    display: block;
}
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}
.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 1rem;
    background-color: #f8f9fa;
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}
.pagination a:hover {
    background-color: #667eea;
    color: #ffffff;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}
.pagination .active {
    background-color: #667eea;
    color: #ffffff;
    border-color: #667eea;
    cursor: default;
}
.pagination .active:hover {
    transform: none;
    box-shadow: none;
}
.pagination .disabled {
    color: #cbd5e1;
    cursor: not-allowed;
    background: #f8fafc;
}
.empty-state {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 4rem 2rem;
    text-align: center;
}
.empty-state h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}
.empty-state p {
    font-size: 1.125rem;
    color: #666;
}
footer {
    background-color: #3b424f;
    color: #ffffff;
    padding: 2rem 0;
    margin-top: 3rem;
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}
.footer-content p {
    margin: 0;
    font-size: 0.875rem;
}
.footer-content a {
    color: #667eea;
    text-decoration: none;
}
.footer-content a:hover {
    text-decoration: underline;
}
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.5rem 0.75rem;
    }
    .logo img {
        width: 36px;
        height: 36px;
    }
    .logo-text h1 {
        font-size: 1.125rem;
    }
    .logo-text p {
        font-size: 0.75rem;
    }
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.25rem;
    }
    nav ul li {
        margin: 0.25rem;
    }
    nav ul li a {
        padding: 0.375rem 0.75rem;
        font-size: 0.8125rem;
    }
    .main-content {
        padding: 0.5rem;
    }
    .search-filter-section {
        padding: 0.75rem;
        margin-bottom: 1rem;
    }
    .search-box {
        flex-direction: row;
        gap: 0.5rem;
        flex-wrap: nowrap;
    }
    .search-box input {
        flex: 1;
        min-width: 0;
    }
    .search-box button {
        white-space: nowrap;
        padding: 0.5rem;
    }
    .category-tags {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .resources-table-header {
        padding: 0.75rem 1rem;
        font-size: 0.8125rem;
    }
    .resource-item {
        padding: 0.75rem 1rem;
    }
    .table-col {
        padding: 0 0.375rem;
        font-size: 0.8125rem;
    }
    .col-name {
        width: 30%;
    }
    .col-category {
        width: 25%;
    }
    .col-desc {
        width: 35%;
    }
    .col-count {
        width: 10%;
    }
    .pagination {
        gap: 0.25rem;
        margin-top: 1rem;
    }
    .pagination a, .pagination span {
        min-width: 32px;
        height: 32px;
        font-size: 0.75rem;
        padding: 0 0.5rem;
    }
    .empty-state {
        padding: 2rem 1rem;
    }
    .empty-state h3 {
        font-size: 1.125rem;
    }
    .empty-state p {
        font-size: 0.875rem;
    }
}
