* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.5;
    color: #212529;
}

.app-container {
    display: flex;
    min-height: 100vh;
}

.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 0;
    min-height: 100vh;
    background: #fff;
    transition: margin-left 0.3s ease-in-out;
}

/* Mobile responsive layout */
@media (max-width: 768px) {
    .main-content {
        margin-left: 0;
    }

    .sidebar-toggle {
        display: block;
    }
}

/* Utility classes */
.fade-enter {
    opacity: 0;
    transform: translateY(10px);
}

.fade-enter-active {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.fade-exit {
    opacity: 1;
    transform: translateY(0);
}

.fade-exit-active {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

/* Search Styles */
.search-container {
    position: relative;
}

#searchInput {
    padding-right: 30px;
    transition: border-color 0.3s ease;
}

#searchInput.searching {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' d='M0 0h24v24H0z'/%3E%3Cpath d='M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm0 18a8 8 0 1 1 8-8 8 8 0 0 1-8 8z'/%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 20px;
    animation: rotate 1s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.search-results-section {
    margin-bottom: 2rem;
    animation: fadeIn 0.3s ease-in-out;
}

.search-folder-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.search-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    padding: 0 1rem;
}

.no-results {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

.no-results-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Pagination Styles */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pagination-button {
    min-width: 40px;
    height: 40px;
    border: 1px solid #dee2e6;
    background: #fff;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.pagination-button:hover:not(:disabled) {
    background: #e9ecef;
    border-color: #adb5bd;
}

.pagination-button.active {
    background: #007bff;
    border-color: #007bff;
    color: #fff;
}

.pagination-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-ellipsis {
    padding: 0 0.5rem;
    color: #6c757d;
}

.pagination-info {
    width: 100%;
    text-align: center;
    margin-top: 1rem;
    color: #6c757d;
    font-size: 0.9rem;
}

/* Animation keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .pagination {
        padding: 1rem;
    }
    
    .pagination-button {
        min-width: 35px;
        height: 35px;
    }
}

.up {
    height: 45px;
    width: 45px;
    border-radius: 10px;
    position: fixed;
    display: flex;
    right: 35px;
    bottom: 35px;
    justify-content: center;
    background-color: #2196f3;
    align-items: center;
    cursor: pointer;
    color: white;
    z-index: 100;
    font-size: 30px;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.up::after {
    content: "";
    position: absolute;
    background-color: #2b7df0;
    width: 100%;
    height: 0;
    transition: 0.4s;
    z-index: -1;
    transform: scaleX(0);
    border-radius: 10px;
}

.up:hover::after {
    height: 100%;
    transform: scaleX(1);
}