.top-bar {
    background: linear-gradient(
        135deg,
        rgba(243, 194, 17, 0.377) 0%,     
        rgba(240, 193, 25, 0.295) 50%,   
        rgba(243, 196, 24, 0.377) 100%    
    );
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: clamp(12px, 3vw, 16px) clamp(16px, 4vw, 24px);
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05);
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

/* Контейнер для бликов в хедере */
.top-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        transparent 0%,
        rgba(255, 255, 255, 0.3) 30%, /* Более яркие белые блики */
        transparent 70%
    );
    border-radius: 50px;
    opacity: 0.6;
    pointer-events: none;
}

/* Эффект градиентной рамки для хедера */
.top-bar::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.3),
        rgba(245, 216, 110, 0.2),
        rgba(255, 255, 255, 0.3),
        rgba(245, 216, 110, 0.2)
    );
    border-radius: 52px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}



/* Адаптивность для планшетов */
@media (min-width: 768px) {
    .top-bar {
        width: calc(100%);
        max-width: min(1000px, 85vw);
        padding: clamp(12px, 3vw, 16px) clamp(20px, 4vw, 28px);
    }
}

/* Адаптивность для десктопов */
@media (min-width: 924px) {
    .top-bar {
        width: calc(100%);
        max-width: min(1000px, 80vw);
        padding: 14px clamp(24px, 4vw, 32px);
    }
}

/* Адаптивность для очень маленьких экранов */
@media (max-width: 480px) {
    .top-bar {
        max-width: min(1000px, 95vw);
        padding: clamp(10px, 3vw, 14px) clamp(14px, 4vw, 18px);
        margin-bottom: 15px;
    }

}

@media (max-width: 360px) {
    .top-bar {
        width: calc(100% - 20px);
        padding: 8px 12px;
        margin-bottom: 12px;
    }
    
    .logo {
        height: 40px;
        width: 200px;
    }
}

.page-test-list .container {
    flex-direction: column;
    min-height: 100vh;
    gap: 16px;
}

.page-test-list main {
    display: flex;
    flex-direction: column;
    padding-bottom: 32px;
}

.tests-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tests-card__header {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.test-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.test-item {
    position: relative;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.35) 0%,
        rgba(0, 0, 0, 0.25) 55%,
        rgba(0, 0, 0, 0.4) 100%
    );
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.test-item:hover {
    transform: translateY(-2px);
    border-color: rgba(245, 216, 110, 0.35);
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.36);
}

.test-item__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.test-title {
    font-size: 18px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    word-break: break-word;
}

.test-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
}

.test-meta .test-updated {
    white-space: nowrap;
}

.test-meta .test-score {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(245, 216, 110, 0.18);
    color: rgba(245, 216, 110, 0.95);
    font-weight: 600;
}

.test-description {
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.7);
}

.test-result {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    align-items: baseline;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
}

.test-result__label {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
}

.test-result__score {
    font-weight: 700;
    color: rgba(245, 216, 110, 0.95);
}

.test-result__details {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.test-result--empty {
    color: rgba(255, 255, 255, 0.5);
}

.test-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.test-actions .action-btn {
    flex: 1 1 160px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 16px;
    border: none;
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);

}

.test-actions .action-btn.launch {
    background: linear-gradient(
        135deg,
        rgba(243, 194, 17, 0.377) 0%,
        rgba(240, 193, 25, 0.295) 50%,
        rgba(243, 196, 24, 0.377) 100%
    );
    color: #ffffff;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 
        0 8px 32px rgba(245, 216, 110, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(179, 152, 46, 0.2);
}

.test-actions .action-btn.launch:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 36px rgba(245, 216, 110, 0.45);
    background: linear-gradient(
        135deg,
        rgba(245, 213, 99, 0.35) 0%,
        rgba(248, 213, 87, 0.22) 50%,
        rgba(245, 212, 92, 0.35) 100%
    );
    box-shadow: 
        0 12px 40px rgba(245, 216, 110, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(179, 152, 46, 0.25);
}

.test-actions .action-btn.rename {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.test-actions .action-btn.rename:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
}

.test-actions .action-btn.delete {
    background: linear-gradient(
        135deg,
        rgba(255, 100, 118, 0.15) 0%,
        rgba(255, 99, 118, 0.08) 50%,
        rgba(255, 100, 118, 0.15) 100%
    );
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: #ffffff;
    border: 1px solid rgba(255, 99, 118, 0.3);
    padding: 12px 20px;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 8px 32px rgba(255, 99, 118, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(139, 54, 64, 0.1);
}

/* Эффект градиентной рамки */
.test-actions .action-btn.delete::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(
        45deg,
        rgba(255, 99, 118, 0.3),
        rgba(255, 150, 165, 0.2),
        rgba(255, 99, 118, 0.3),
        rgba(255, 150, 165, 0.2)
    );
    border-radius: 14px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.test-actions .action-btn.delete:hover::after {
    opacity: 1;
}

.test-actions .action-btn.delete:hover {
    transform: translateY(-2px);
    background: linear-gradient(
        135deg,
        rgba(255, 100, 118, 0.2) 0%,
        rgba(255, 99, 118, 0.12) 50%,
        rgba(255, 100, 118, 0.2) 100%
    );
    border: 1px solid rgba(255, 99, 118, 0.4);
    box-shadow: 
        0 12px 40px rgba(255, 99, 118, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        inset 0 -1px 0 rgba(139, 54, 64, 0.15);
}

/* Анимированные блики при наведении */
.test-actions .action-btn.delete .liquid-reflections {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 12px;
}

.test-actions .action-btn.delete:hover .liquid-reflections {
    opacity: 1;
}

.rename-form {
    display: none;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeIn 0.2s ease;
}

.rename-form.visible {
    display: flex;
}

.rename-form label {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

.rename-form input {
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    font-size: 15px;
}

.rename-form input:focus {
    outline: none;
    border-color: rgba(245, 216, 110, 0.8);
    box-shadow: 0 0 0 3px rgba(245, 216, 110, 0.2);
}

.rename-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.rename-actions button {
    flex: 1 1 120px;
    border-radius: 14px;
    border: none;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.rename-actions .save-btn {
    background: rgba(245, 216, 110, 0.85);
    color: #1f1f1f;
    box-shadow: 0 10px 24px rgba(245, 216, 110, 0.3);
}

.rename-actions .save-btn:hover {
    box-shadow: 0 14px 30px rgba(245, 216, 110, 0.38);
}

.rename-actions .cancel-btn {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.rename-actions .cancel-btn:hover {
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);
}

.loading-state,
.empty-state {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    padding: 18px 10px;
}

.accent-btn.full-width {
    width: 100%;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .test-item {
        padding: 16px;
    }

    .test-actions .action-btn {
        flex: 1 1 100%;
    }
}
