﻿.tool-category {
    margin: 30px 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #fa8c16;
    color: #333;
    text-align: center;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.tool-category h2 {
    width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.tool-category h3 {
    width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.popular-tools {
    background: #fffbe6;
    border: 1px solid #ffe58f;
    border-radius: 8px;
    padding: 20px;
    margin: 0 auto 30px;
    text-align: center;
    max-width: 1200px;
}

    .popular-tools h3 {
        color: #fa8c16;
        margin-bottom: 15px;
        text-align: center;
    }

.popular-tool {
    display: inline-block;
    background: #fff;
    padding: 8px 15px;
    margin: 5px;
    border-radius: 20px;
    border: 1px solid #e1e1e1;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

    .popular-tool:hover {
        background: #fa8c16;
        color: white;
        border-color: #fa8c16;
    }
/* Tool list styles */
.tool-list-container {
    max-width: 1200px;
    margin: 50px auto 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.tool-list-header {
    text-align: center;
    margin-bottom: 30px;
    margin-left: auto;
    margin-right: auto;
    max-width: 1200px;
    width: 100%;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 0 auto 30px;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
}

.category-card {
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    text-align: center;
    margin: 0 auto;
}

.category-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-icon {
    margin-right: 10px;
    color: #fa8c16;
}

.tool-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    text-align: center;
}

.tool-list-item {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

    .tool-list-item:last-child {
        border-bottom: none;
    }

.tool-link {
    color: #333;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .tool-link:hover {
        color: #fa8c16;
    }

    .tool-link i {
        margin-right: 10px;
        color: #fa8c16;
    }
/* New tool directory styles */
.tool-directory {
    max-width: 1200px;
    margin: 50px auto 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.directory-header {
    text-align: center;
    margin-bottom: 30px;
    margin-left: auto;
    margin-right: auto;
    max-width: 1200px;
    width: 100%;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    margin: 0 auto 30px;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
}

.category-button {
    background: #f8f9fa;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 15px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    margin: 0 auto;
}

    .category-button:hover {
        background: #fa8c16;
        color: white;
        border-color: #fa8c16;
    }

    .category-button.active {
        background: #fa8c16;
        color: white;
        border-color: #fa8c16;
    }

.tools-list {
    max-width: 1200px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    margin: 0 auto;
    justify-content: center;
    width: 100%;
}

.tool-item {
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.2s;
    text-align: center;
    margin: 0 auto;
}

    .tool-item:hover {
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }

    .tool-item h4 {
        margin-top: 0;
        margin-bottom: 10px;
        color: #333;
        text-align: center;
    }

        .tool-item h4 a {
            color: #fa8c16;
            text-decoration: none;
            text-align: center;
        }

            .tool-item h4 a:hover {
                text-decoration: underline;
            }

    .tool-item p {
        color: #666;
        margin: 0;
        font-size: 14px;
        line-height: 1.5;
        text-align: center;
    }

/* Sidebar styles */
.sidebar {
    width: 250px;
    position: fixed;
    top: 100px;
    left: 5px;
    /*height: calc(100% - 105px);*/
    background: #f8f9fa;
    padding: 20px 0;
    box-shadow: 3px 0 15px rgba(0,0,0,0.25);
    overflow-y: auto;
    z-index: 1000;
    border-right: 1px solid #e1e1e1;
    border-radius: 0 8px 8px 0;
}

.sidebar-toggle {
    display: none;
    position: absolute;
    top: 10px;
    right: 10px;
    background: #fa8c16;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    text-align: center;
    line-height: 30px;
    cursor: pointer;
    font-weight: bold;
    z-index: 1001;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .sidebar-menu li {
        padding: 0;
        margin: 0;
    }

    .sidebar-menu a {
        display: block;
        padding: 12px 20px;
        color: #333;
        text-decoration: none;
        border-left: 3px solid transparent;
        transition: all 0.3s ease;
    }

        .sidebar-menu a:hover,
        .sidebar-menu a.active {
            background: #fff;
            border-left: 3px solid #fa8c16;
            color: #fa8c16;
        }

/* Main content adjustment for sidebar */
.main-content {
    margin-left: 250px;
    padding: 20px;
    width: calc(100% - 250px);
    position: relative;
    z-index: 1;
}

/* Responsive design for sidebar */
@media (max-width: 768px) {
    .sidebar {
        width: 200px;
        left: 3px;
        height: calc(100% - 103px);
    }

    .main-content {
        margin-left: 200px;
        width: calc(100% - 200px);
    }
}

@media (max-width: 576px) {
    .sidebar {
        width: 250px;
        height: calc(100% - 105px);
        position: fixed;
        top: 100px;
        left: -250px;
        transition: left 0.3s ease;
    }

    .sidebar-toggle {
        display: block;
    }

    .main-content {
        margin-left: 0;
        width: 100%;
    }
}

