/* ========================================
   UI缁勪欢鏍峰紡
   ======================================== */

/* 鎸夐挳缁勪欢 */
.btn-outline-primary-custom {
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    background: transparent;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

    .btn-outline-primary-custom::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        border-radius: 50%;
        background: var(--gradient-primary);
        transform: translate(-50%, -50%);
        transition: width 0.4s ease, height 0.4s ease;
        z-index: -1;
    }

.btn-outline-primary-custom:hover::before {
    width: 100%;
    height: 300px;
}

.btn-outline-primary-custom:hover {
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 77, 143, 0.3);
}

/* 寰界珷 */
.badge-custom {
    background: var(--gradient-accent);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: 0 2px 8px rgba(201, 169, 97, 0.3);
    letter-spacing: 0.3px;
}

/* 鍒嗛〉 */
.pagination-custom .page-link {
    color: var(--primary-color);
    border: 1px solid var(--border-color);
    margin: 0 3px;
    border-radius: 8px;
    padding: 8px 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination-custom .page-link:hover {
    background: var(--gradient-primary);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 77, 143, 0.2);
}

.pagination-custom .page-item.active .page-link {
    background: var(--gradient-accent);
    border-color: var(--secondary-color);
    box-shadow: 0 4px 12px rgba(201, 169, 97, 0.3);
}

/* 闈㈠寘灞?*/
.breadcrumb-custom {
    background-color: var(--light-bg);
    padding: 15px 20px;
    border-radius: 5px;
}

.breadcrumb-custom .breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-custom .breadcrumb-item.active {
    color: var(--text-dark);
}

/* 鏍囩椤?*/
.nav-tabs-custom .nav-link {
    border: none;
    color: var(--text-medium);
    padding: 15px 25px;
    font-weight: 600;
    background: transparent;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.nav-tabs-custom .nav-link:hover {
    color: var(--primary-color);
    border-bottom-color: var(--secondary-color);
    background: var(--lighter-bg);
}

.nav-tabs-custom .nav-link.active {
    color: var(--primary-color);
    border-bottom: 3px solid;
    border-image: var(--gradient-accent) 1;
    background: transparent;
}

/* 妯℃€佹 */
.modal-custom .modal-header {
    background: var(--gradient-primary);
    color: white;
    border-bottom: none;
    border-radius: 12px 12px 0 0;
    padding: 20px 25px;
}

.modal-custom .modal-header .btn-close {
    filter: brightness(0) invert(1);
}

/* 鎻愮ず妗?*/
.alert-custom {
    border-radius: 12px;
    border: none;
    padding: 16px 22px;
    font-weight: 500;
    border-left: 4px solid;
}

.alert-custom.alert-info {
    background-color: #e3f2fd;
    color: #0277bd;
    border-left-color: #0277bd;
}

.alert-custom.alert-success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border-left-color: #2e7d32;
}

.alert-custom.alert-warning {
    background-color: #fff8e1;
    color: #f57c00;
    border-left-color: #f57c00;
}

.alert-custom.alert-danger {
    background-color: #ffebee;
    color: #c62828;
    border-left-color: #c62828;
}

/* 鍒楄〃缁?*/
.list-group-custom .list-group-item {
    border: 1px solid var(--border-color);
    border-radius: 5px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.list-group-custom .list-group-item:hover {
    background-color: var(--light-bg);
    border-color: var(--primary-color);
}

/* 杩涘害鏉?*/
.progress-custom {
    height: 28px;
    border-radius: 15px;
    background-color: var(--light-bg);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.progress-custom .progress-bar {
    background: var(--gradient-accent);
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(201, 169, 97, 0.4);
    position: relative;
    overflow: hidden;
}

.progress-custom .progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: progress-shine 2s infinite;
}

@keyframes progress-shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* 涓嬫媺鑿滃崟 */
.dropdown-custom .dropdown-menu {
    border: none;
    box-shadow: var(--shadow-md);
    border-radius: 12px;
    padding: 12px;
    border: 1px solid var(--border-light);
}

.dropdown-custom .dropdown-item {
    border-radius: 8px;
    padding: 12px 18px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.dropdown-custom .dropdown-item:hover {
    background: linear-gradient(90deg, var(--lighter-bg) 0%, var(--light-bg) 100%);
    color: var(--primary-color);
    padding-left: 22px;
}

/* 杈撳叆缁?*/
.input-group-custom .input-group-text {
    background: linear-gradient(135deg, var(--light-bg) 0%, var(--lighter-bg) 100%);
    border: 2px solid var(--border-color);
    color: var(--text-medium);
    font-weight: 500;
    border-radius: 8px 0 0 8px;
}

.input-group-custom .form-control {
    border: 2px solid var(--border-color);
    border-radius: 0 8px 8px 0;
    padding: 12px 18px;
    transition: all 0.3s ease;
}

.input-group-custom .form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 4px rgba(201, 169, 97, 0.1);
}

/* 鎵嬮鐞?*/
.accordion-custom .accordion-item {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.accordion-custom .accordion-button {
    background: linear-gradient(135deg, var(--light-bg) 0%, var(--lighter-bg) 100%);
    color: var(--text-dark);
    font-weight: 600;
    padding: 18px 24px;
    border: none;
    transition: all 0.3s ease;
}

.accordion-custom .accordion-button:not(.collapsed) {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(26, 77, 143, 0.2);
}

.accordion-custom .accordion-button:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

/* 杞挱鎸囩ず鍣?*/
.carousel-custom .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.carousel-custom .carousel-indicators button.active {
    background: var(--gradient-accent);
    width: 40px;
    border-radius: 6px;
    border-color: var(--secondary-color);
}

.carousel-custom .carousel-control-prev-icon,
.carousel-custom .carousel-control-next-icon {
    filter: invert(1);
}

/* 缁熻鏁板瓧 */
.stat-box {
    text-align: center;
    padding: 35px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.stat-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.stat-box .stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.stat-box .stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* 鏃堕棿杞?*/
.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
    padding-left: 30px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -34px;
    top: 5px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--gradient-accent);
    border: 3px solid white;
    box-shadow: 0 0 0 3px var(--secondary-color), 0 2px 8px rgba(201, 169, 97, 0.4);
}

.timeline-item .timeline-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}
