@charset "utf-8";

/* Page-specific styles */
.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-header {
    background: linear-gradient(135deg, #53b6c5, #6aebff);
    color: white;
    padding: 0.5rem 0;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.page-title {
    font-size: 0.4rem;
    font-weight: 700;
    margin: 0;
}

.page-subtitle {
    font-size: 0.26rem;
    opacity: 0.9;
    margin-top: 0.1rem;
}

.page-content {
    flex: 1;
    padding: 0.4rem 0;
}

.page-section {
    background: #fff;
    margin-bottom: 0.3rem;
    border-radius: 0.2rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.page-section-header {
    background: #f8f9fa;
    padding: 0.3rem;
    border-bottom: 1px solid #e9ecef;
    font-weight: 600;
    font-size: 0.3rem;
}

.page-section-body {
    padding: 0.4rem;
}

/* Breadcrumb navigation */
.breadcrumb {
    background: #f8f9fa;
    padding: 0.2rem 0.4rem;
    font-size: 0.24rem;
    border-radius: 0.1rem;
    margin-bottom: 0.3rem;
}

.breadcrumb-item {
    display: inline;
    color: #6c757d;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    margin: 0 0.2rem;
    color: #6c757d;
}

.breadcrumb-item.active {
    color: #495057;
}

.breadcrumb-item a {
    color: #53b6c5;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0.4rem 0;
    gap: 0.1rem;
}

.pagination-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0.8rem;
    height: 0.8rem;
    padding: 0 0.1rem;
    border: 1px solid #dee2e6;
    background: #fff;
    color: #495057;
    text-decoration: none;
    border-radius: 0.1rem;
    font-size: 0.26rem;
    transition: all 0.2s ease;
}

.pagination-item:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.pagination-item.active {
    background: #53b6c5;
    border-color: #53b6c5;
    color: #fff;
}

.pagination-item.disabled {
    color: #6c757d;
    background: #fff;
    border-color: #dee2e6;
    cursor: not-allowed;
}

.pagination-item.disabled:hover {
    background: #fff;
    border-color: #dee2e6;
}

/* Search box */
.search-box {
    position: relative;
    margin-bottom: 0.4rem;
}

.search-input {
    width: 100%;
    padding: 0.25rem 0.4rem 0.25rem 0.8rem;
    border: 1px solid #ced4da;
    border-radius: 0.2rem;
    font-size: 0.28rem;
    transition: border-color 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: #53b6c5;
    box-shadow: 0 0 0 2px rgba(83, 182, 197, 0.25);
}

.search-icon {
    position: absolute;
    left: 0.25rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0.4rem;
    height: 0.4rem;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236c757d'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z' /%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}

/* Filter tabs */
.filter-tabs {
    display: flex;
    background: #f8f9fa;
    border-radius: 0.2rem;
    padding: 0.1rem;
    margin-bottom: 0.4rem;
    overflow-x: auto;
}

.filter-tab {
    flex: 1;
    min-width: max-content;
    padding: 0.2rem 0.3rem;
    text-align: center;
    background: transparent;
    border: none;
    color: #6c757d;
    font-size: 0.26rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 0.1rem;
}

.filter-tab:hover {
    background: #e9ecef;
}

.filter-tab.active {
    background: #53b6c5;
    color: #fff;
}

/* Loading states */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 0.1rem;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.loading-text {
    height: 0.4rem;
    margin-bottom: 0.2rem;
}

.loading-title {
    height: 0.5rem;
    width: 70%;
    margin-bottom: 0.2rem;
}

.loading-image {
    height: 2rem;
    margin-bottom: 0.2rem;
}

/* Empty states */
.empty-state {
    text-align: center;
    padding: 1rem 0.4rem;
    color: #6c757d;
}

.empty-state-icon {
    width: 1.5rem;
    height: 1.5rem;
    margin: 0 auto 0.3rem;
    opacity: 0.5;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236c757d'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z' /%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}

.empty-state-title {
    font-size: 0.32rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.empty-state-text {
    font-size: 0.26rem;
    line-height: 1.5;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-content {
        padding: 0.3rem 0.2rem;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
    
    .filter-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 0.3rem 0;
    }
    
    .page-title {
        font-size: 0.36rem;
    }
    
    .page-subtitle {
        font-size: 0.24rem;
    }
    
    .pagination-item {
        min-width: 0.7rem;
        height: 0.7rem;
        font-size: 0.24rem;
    }
}
