/* Tool: animations */
:where(body[data-tool="animations"]) .container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
:where(body[data-tool="animations"]) .content {
    width: 100%;
}
:where(body[data-tool="animations"]) .sections {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px;
    margin: 0px 25px;
}
:where(body[data-tool="animations"]) h1 {
    font-size: 1.5rem;
    font-weight: 300;
    color: white;
}
:where(body[data-tool="animations"]) .description {
    font-size: 0.875rem;
    color: var(--text-tertiary);
}
:where(body[data-tool="animations"]) .header-controls {
    display: flex;
    gap: 12px;
}
:where(body[data-tool="animations"]) .fullscreen-toggle {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    border: 2px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}
:where(body[data-tool="animations"]) .fullscreen-toggle:hover {
    background: var(--bg-tertiary);
    color: var(--primary-light);
    border-color: var(--primary-light);
}
:where(body[data-tool="animations"]) .main-content {
    display: flex;
    flex: 1;
    overflow: hidden;
}
:where(body[data-tool="animations"]) .animations-list {
    width: 500px;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: var(--transition-slow);
    padding-bottom: 100px;
}
:where(body[data-tool="animations"]) .preview-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 24px;
    gap: 24px;
    overflow: hidden;
    min-height: 300px;
    height: auto;
}
:where(body[data-tool="animations"]) .preview-box {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    min-height: 250px;
}
:where(body[data-tool="animations"]) .animated-element {
    width: 150px;
    height: 150px;
    background: var(--primary);
    border-radius: var(--radius-lg);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: 300;
    font-size: 1.1rem;
    box-shadow: var(--shadow-lg);
    z-index: 1;
    transition: var(--transition);
}
:where(body[data-tool="animations"]) .code-output {
    height: 280px;
    color: var(--text-primary);
    padding: 20px;
    border-radius: var(--radius-lg);
    overflow: auto;
    font-family: 'Fira Code', 'Courier New', monospace;
    box-shadow: 0px 0px 0px 1px #2f2f2f;
}
:where(body[data-tool="animations"]) #css-code {
    white-space: pre-wrap;
    font-size: 0.875rem;
    line-height: 1.5;
    font-family: 'Courier New', monospace;
}
:where(body[data-tool="animations"]) .section-control {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}
:where(body[data-tool="animations"]) .control-group {
    background: var(--bg-secondary);
    padding: 15px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    width: 100%;
}
:where(body[data-tool="animations"]) .control-group h3 {
    margin-bottom: 16px;
    color: white;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 300;
}
:where(body[data-tool="animations"]) .control-group h3 i {
    font-size: 1.2rem;
    color: var(--primary-light);
}
:where(body[data-tool="animations"]) .action-animation {
    display: flex;
    gap: 15px;
}
:where(body[data-tool="animations"]) button#apply-btn {
    background: #2d2d2d;
}
:where(body[data-tool="animations"]) button#reset-btn {
    background: var(--bg-tertiary);
    border-color: var(--border-color);
}
:where(body[data-tool="animations"]) button.copy-btn {
    background: var(--success);
    width: auto;
}
:where(body[data-tool="animations"]) button.copy-btn:hover {
    background: #218838;
}
:where(body[data-tool="animations"]) button#test-btn {
    width: auto;
}
:where(body[data-tool="animations"]) .animation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
    margin-top: 12px;
}
:where(body[data-tool="animations"]) .animation-option {
    padding: 10px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.75rem;
    font-weight: 300;
    color: var(--text-secondary);
}
:where(body[data-tool="animations"]) .animation-option:hover {
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    color: var(--primary-light);
}
:where(body[data-tool="animations"]) .animation-option.active {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}
:where(body[data-tool="animations"]) .code-controls {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}
:where(body[data-tool="animations"]) .category-tabs {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
    text-align: center;
    grid-template-columns: 1fr 1fr;
}
:where(body[data-tool="animations"]) .category-tab {
    padding: 8px 16px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.8rem;
    font-weight: 300;
    color: var(--text-secondary);
}
:where(body[data-tool="animations"]) .category-tab:hover {
    border-color: var(--primary-light);
    color: var(--primary-light);
}
:where(body[data-tool="animations"]) .category-tab.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary-light);
}
:where(body[data-tool="animations"]) .category-content {
    display: none;
    margin-bottom: 15px;
}
:where(body[data-tool="animations"]) .category-content.active {
    display: block;
}
:where(body[data-tool="animations"]) .search-box input {
    width: 100%;
    padding: 10px 16px;
    border: 0px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: 0.875rem;
    font-family: YekanBakh;
    font-weight: 300;
    transition: var(--transition);
}
:where(body[data-tool="animations"]) .search-box input:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(72, 73, 232, 0.2);
}
:where(body[data-tool="animations"]) .search-box input::placeholder {
    color: var(--text-tertiary);
}
@media (max-width: 1200px) {:where(body[data-tool="animations"]) .sections {
        grid-template-columns: 1fr;
        margin: 0 15px;
    }
:where(body[data-tool="animations"]) .section-control {
        flex-direction: column;
        gap: 15px;
    }

}
@media (max-width: 992px) {:where(body[data-tool="animations"]) .main-content {
        flex-direction: column;
    }
:where(body[data-tool="animations"]) .animations-list {
        width: 100%;
        border-left: none;
        border-bottom: 2px solid var(--border-color);
        height: auto;
        max-height: 400px;
        overflow-y: auto;
        padding-bottom: 24px;
    }
:where(body[data-tool="animations"]) .preview-section {
        flex: 1;
    }
:where(body[data-tool="animations"]) h1 {
        font-size: 1.25rem;
    }
body:where([data-tool="animations"]) {
        --sidebar-width: 100%;
    }

}
@media (max-width: 768px) {:where(body[data-tool="animations"]) .preview-section,
:where(body[data-tool="animations"]) .animations-list {
        padding: 16px;
    }
:where(body[data-tool="animations"]) .animation-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
:where(body[data-tool="animations"]) .code-controls {
        flex-direction: column;
    }
:where(body[data-tool="animations"]) .animated-element {
        width: 120px;
        height: 120px;
        font-size: 1rem;
    }
:where(body[data-tool="animations"]) .sections {
        gap: 15px;
        margin: 0 10px;
    }
:where(body[data-tool="animations"]) .control-group {
        padding: 15px;
    }
:where(body[data-tool="animations"]) .code-output {
        height: 250px;
        padding: 15px;
    }

}
@media (max-width: 576px) {:where(body[data-tool="animations"]) .animation-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
:where(body[data-tool="animations"]) .animation-option {
        padding: 8px 5px;
        font-size: 0.7rem;
    }
:where(body[data-tool="animations"]) .preview-box {
        min-height: 200px;
    }
:where(body[data-tool="animations"]) .animated-element {
        width: 100px;
        height: 100px;
        font-size: 0.9rem;
    }

}
@media (max-width: 400px) {:where(body[data-tool="animations"]) .animation-grid {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    }
:where(body[data-tool="animations"]) .animation-option {
        font-size: 0.65rem;
        padding: 6px 3px;
    }
:where(body[data-tool="animations"]) .preview-box {
        min-height: 180px;
    }
:where(body[data-tool="animations"]) .animated-element {
        width: 80px;
        height: 80px;
        font-size: 0.8rem;
    }

}
