* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #f6f9fc;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: #172033;
}

.header {
    background: #ffffff;
    border-bottom: 1px solid #e6edf5;
/*    padding: 12px 32px; */
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    box-shadow: 0 2px 12px rgba(23, 32, 51, 0.06);
    position: relative;
    z-index: 10;
    min-height: 50px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: transparent;
    box-shadow: 0 8px 24px rgba(0, 199, 215, 0.30);
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.header h1 {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.3px;
    color: #172033;
    margin: 0;
}

.header h1 span {
    font-weight: 400;
    color: #6a7488;
    font-size: 14px;
}

.header .badge {
    background: rgba(0, 199, 215, 0.12);
    color: #006f78;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid rgba(0, 199, 215, 0.25);
}

.header .count {
    font-size: 14px;
    color: #6a7488;
}

.header-right img {
    height: 36px;
    width: auto;
    object-fit: contain;
}


.main {
    flex: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 32px 60px;
    width: 100%;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.6px;
    margin-bottom: 8px;
}

.section-desc {
    color: #6a7488;
    font-size: 16px;
    margin-bottom: 32px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.card {
    background: #FFFFFF;
    border: 1px solid #D3D5E5;
    border-radius: 8px;
    padding: 20px 20px 16px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(75, 77, 89, 0.05);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(75, 77, 89, 0.08);
    border-color: #30C1CF;              /* Cyan 500 при наведении */
}

.card:active {
    transform: translateY(0px);
    box-shadow: 0 2px 4px rgba(75, 77, 89, 0.05);
    border-color: #77D6DF;
}

.card .icon {
    font-size: 32px;
    margin-bottom: 12px;
    display: inline-block;
    color: #27282E;
}

.card .name {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.2px;
    margin-bottom: 8px;
    color: #27282E;
}

.card .category {
    font-size: 12px;
    color: #4B4D59;
    background: #F6F6FA;
    padding: 4px 10px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 8px;
    align-self: flex-start;
    font-weight: 500;
}

.card .path {
    font-size: 12px;
    color: #4B4D59;
    font-family: 'Monaco', 'Menlo', monospace;
    background: #F6F6FA;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-top: 4px;
    word-break: break-all;
    border: 1px solid #F0F1F7;
}

/* Мета-блок (низ карточки) */
.card .meta {
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #E0F6F8;
    padding-top: 14px;
    font-size: 13px;
    color: #6A7488;
}

.card .meta .arrow {
    color: #30C1CF;
    font-weight: 600;
    font-size: 18px;
    transition: transform 0.2s;
}

.card:hover .meta .arrow {
    transform: translateX(4px);
}

.card .status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00B027;
    margin-right: 6px;
}

.card .status-dot.warning {
    background: #FF9B04;
}


.empty {
    text-align: center;
    padding: 60px 20px;
    color: #6a7488;
}

.empty .big-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.empty h3 {
    font-size: 22px;
    color: #172033;
    margin-bottom: 8px;
}

.empty code {
    background: #f2f6fa;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 13px;
}

.loading {
    text-align: center;
    padding: 60px 20px;
    color: #6a7488;
}

.loading .spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #e6edf5;
    border-top-color: #00c7d7;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


.footer {
    text-align: center;
    padding: 24px 20px;
    color: #8895aa;
    font-size: 13px;
    border-top: 1px solid #e6edf5;
    background: rgba(255, 255, 255, 0.5);
    margin-top: auto;
}


@media (max-width: 768px) {
    .header {
        padding: 16px 20px;
    }
    .header h1 {
        font-size: 18px;
    }
    .header h1 span {
        font-size: 14px;
    }
    .header-right img {
        height: 28px;
    }
    .main {
        padding: 24px 16px 40px;
    }
    .section-title {
        font-size: 22px;
    }
    .grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .header .badge {
        display: none;
    }
    .card {
        padding: 18px;
    }
    .header {
        padding: 12px 16px;
    }
    .header h1 {
        font-size: 16px;
    }
    .header-right img {
        height: 24px;
    }
}