/* Шрифты */
@import url('https://fonts.googleapis.com/css2?family=Golos+Text:wght@300..900&display=swap');


:root {
    --border-radius-bg: 30px;
    --border-radius-nav: 16px;
    --white-color: #fff;
    --gray50-color-bg: #F8FAFC;
    --gray100-color-lines: #F1F5F9;
    --gray400-color: #90A1B9;
    --gray500-color: #323b49;
    --black-color: #1D1D1F;
    --blue-color: #2B7FFF;
    --green-color: #05DF72;    
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Golos Text", sans-serif;
}

body {
    background-color: #f5f7fb;
    color: var(--dark-color);
    line-height: 1.5;
}

.container {
    padding: 30px;
} 

/* Иконки */

.icon-dash {
    position: relative;
    display: inline-block;
    width: 18px;
    height: 18px;
    background-image: url('/assets/svg/icons/dash-s.svg');
    background-size: 100%;
    background-repeat: no-repeat;
    background-position: center;
    margin-right: 10px;
    transition: background-image 0.3s ease;
}

.icon-team {
    position: relative;
    display: inline-block;
    width: 18px;
    height: 18px;
    background-image: url('C:/Users/Designer/Desktop/Dashboard/assets/svg/icons/team.svg');
    background-size: 100%;
    background-repeat: no-repeat;
    background-position: center;
    margin-right: 10px;
    transition: background-image 0.3s ease;
}

.icon-cat {
    position: relative;
    display: inline-block;
    width: 18px;
    height: 18px;
    background-image: url('C:/Users/Designer/Desktop/Dashboard/assets/svg/icons/cat.svg');
    background-size: 100%;
    background-repeat: no-repeat;
    background-position: center;
    margin-right: 10px;
    transition: background-image 0.3s ease;
}

.icon-sheet {
    position: relative;
    display: inline-block;
    width: 18px;
    height: 18px;
    background-image: url('C:/Users/Designer/Desktop/Dashboard/assets/svg/icons/sheet.svg');
    background-size: 100%;
    background-repeat: no-repeat;
    background-position: center;
    margin-right: 10px;
    transition: background-image 0.3s ease;
}

.icon-url {
    position: relative;
    display: inline-block;
    width: 18px;
    height: 18px;
    background-image: url('C:/Users/Designer/Desktop/Dashboard/assets/svg/icons/url.svg');
    background-size: 100%;
    background-repeat: no-repeat;
    background-position: center;
    margin-right: 10px;
    transition: background-image 0.3s ease;
}

.social-insta {
    position: relative;
    display: inline-block;
    width: 32px;
    height: 32px;
    background-image: url('C:/Users/Designer/Desktop/Dashboard/assets/svg/social/insta.svg');
    background-size: 100%;
    background-repeat: no-repeat;
    background-position: center;
    margin-right: 10px;
    transition: background-image 0.3s ease;
}

.social-insta:hover {
    background-image: url('C:/Users/Designer/Desktop/Dashboard/assets/svg/social/insta-s.svg');
}

.social-youtube {
    position: relative;
    display: inline-block;
    width: 32px;
    height: 32px;
    background-image: url('C:/Users/Designer/Desktop/Dashboard/assets/svg/social/youtube.svg');
    background-size: 100%;
    background-repeat: no-repeat;
    background-position: center;
    margin-right: 10px;
    transition: background-image 0.3s ease;
}

.social-youtube:hover {
    background-image: url('C:/Users/Designer/Desktop/Dashboard/assets/svg/social/youtube-s.svg');
}

.social-telegram {
    position: relative;
    display: inline-block;
    width: 32px;
    height: 32px;
    background-image: url('C:/Users/Designer/Desktop/Dashboard/assets/svg/social/telegram.svg');
    background-size: 100%;
    background-repeat: no-repeat;
    background-position: center;
    margin-right: 10px;
    transition: background-image 0.3s ease;
}

.social-telegram:hover {
    background-image: url('C:/Users/Designer/Desktop/Dashboard/assets/svg/social/telegram-s.svg');
}

.social-vk {
    position: relative;
    display: inline-block;
    width: 32px;
    height: 32px;
    background-image: url('C:/Users/Designer/Desktop/Dashboard/assets/svg/social/vk.svg');
    background-size: 100%;
    background-repeat: no-repeat;
    background-position: center;
    margin-right: 10px;
    transition: background-image 0.3s ease;
}

.social-vk:hover {
    background-image: url('C:/Users/Designer/Desktop/Dashboard/assets/svg/social/vk-s.svg');
}

.icon-server {
    position: relative;
    display: inline-block;
    width: 24px;
    height: 24px;
    background-image: url('C:/Users/Designer/Desktop/Dashboard/assets/svg/icons/server.svg');
    background-size: 100%;
    background-repeat: no-repeat;
    background-position: center;
    margin-right: 10px;
    transition: background-image 0.3s ease;
}

.icon-refresh {
    position: relative;
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url('C:/Users/Designer/Desktop/Dashboard/assets/svg/icons/refresh.svg');
    background-size: 100%;
    background-repeat: no-repeat;
    background-position: center;
    margin-right: 10px;
    transition: background-image 0.3s ease;
}

.icon-box {
    width: 56px;
    height: 56px;
    border-radius: 20px;
    border: 1px solid var(--gray100-color-lines);
    background: var(--gray50-color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url(C:/Users/Designer/Desktop/Dashboard/assets/svg/icons/box.svg);
    background-repeat: no-repeat;
    background-position: center;
}

.icon-time {
    width: 56px;
    height: 56px;
    border-radius: 20px;
    border: 1px solid var(--gray100-color-lines);
    background: var(--gray50-color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url(C:/Users/Designer/Desktop/Dashboard/assets/svg/icons/time.svg);
    background-repeat: no-repeat;
    background-position: center;
}

.icon-done {
    width: 56px;
    height: 56px;
    border-radius: 20px;
    border: 1px solid var(--gray100-color-lines);
    background: var(--gray50-color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url(C:/Users/Designer/Desktop/Dashboard/assets/svg/icons/done.svg);
    background-repeat: no-repeat;
    background-position: center;
}

.icon-folder {
    width: 56px;
    height: 56px;
    border-radius: 20px;
    border: 1px solid var(--gray100-color-lines);
    background: var(--gray50-color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url(C:/Users/Designer/Desktop/Dashboard/assets/svg/icons/folder.svg);
    background-repeat: no-repeat;
    background-position: center;
}

.icon-arrows {
    width: 56px;
    height: 56px;
    border-radius: 20px;
    border: 1px solid var(--gray100-color-lines);
    background: var(--gray50-color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url(C:/Users/Designer/Desktop/Dashboard/assets/svg/icons/arrows.svg);
    background-repeat: no-repeat;
    background-position: center;
}

.icon-bag {
    width: 56px;
    height: 56px;
    border-radius: 20px;
    border: 1px solid var(--gray100-color-lines);
    background: var(--gray50-color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url(C:/Users/Designer/Desktop/Dashboard/assets/svg/icons/bag.svg);
    background-repeat: no-repeat;
    background-position: center;
}

.icon-wallet {
    width: 56px;
    height: 56px;
    border-radius: 20px;
    border: 1px solid var(--gray100-color-lines);
    background: var(--gray50-color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url(C:/Users/Designer/Desktop/Dashboard/assets/svg/icons/wallet.svg);
    background-repeat: no-repeat;
    background-position: center;
}

.icon-wallet {
    width: 56px;
    height: 56px;
    border-radius: 20px;
    border: 1px solid var(--gray100-color-lines);
    background: var(--gray50-color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url(C:/Users/Designer/Desktop/Dashboard/assets/img/ava.svg);
    background-repeat: no-repeat;
    background-position: center;
}

.avatar-container {
    position: relative;
    display: inline-block;
}

.profile {
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--gray100-color-lines);
}

.icon-head {
    position: absolute;
    width: 25%;
    top: 70%; /* Насколько выше аватара */
    left: 70%;
    z-index: 2; 
}

/* Сайдбар */

.sidebar {
    background-color: white;
    padding: 20px;
    border-radius: var(--border-radius-bg);
    border: 1px solid var(--gray100-color-lines);
    display: flex;
    flex-direction: column;
    height: calc(100vh - 60px); 
    position: fixed;
    width: 280px;
    overflow: hidden; 
}

.nav-caption {
    color: var(--gray400-color);
    font-size: 12px;
    font-weight: 300;
    text-transform: uppercase;
    margin-bottom: 10px;
    padding-left: 10px;
}

.menu ul {
    list-style: none;
}

.menu a {
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 9px 20px;
    font-size: 15px;
    color: var(--gray500-color);
    font-weight: 500;
    border-radius: var(--border-radius-nav);
}

.menu a.active {
    background-color: var(--gray50-color-bg);
    color: var(--blue-color);
}

.menu a:hover {
    background-color: var(--gray50-color-bg);
}

.logo {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    margin-bottom: 30px;
}

.line {
    width: 80%;
    margin-right: auto;
    margin-left: auto;
    border-top: 1px solid var(--gray100-color-lines);
    margin: 8% 0;
}

.footer {
    margin-top: auto; 
}

.social {
    display: flex;
    justify-content: center;
}

.copyright {
    font-size: 12px;
    text-align: center;
    color: var(--gray500-color);
    margin-top: 20px;
    margin-bottom: 10px;
}

/* Основной контент */
.main-content {
    overflow-y: clip;
    margin-left: 310px; /* ширина сайдбара + отступы */
    min-height: 100vh;
}

/* Шапка контента */
.content-header {
    display: flex;
    justify-content: space-between;
    border: 1px solid var(--gray100-color-lines);
    font-size: 14px;
    color: var(--gray400-color);
    align-items: center;
    background-color: var(--white-color);
    padding: 19.5px 30px;
    border-radius: var(--border-radius-bg);
}

.info-header {
    display: flex;
    align-items: center;
}

.update-header {
    display: flex;
}

.btn {
    padding: 10px 20px;
    border-radius: var(--border-radius-nav);
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.btn-primary {
    background-color: var(--blue-color);
    color: white;
}

.btn-primary:hover {
    background-color: #1a6de8;
}

/* Карточки с метриками */

.grids {
    margin: 30px 0;
}

.grid-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--gray500-color);
    text-transform: uppercase;
    margin-bottom: 1rem;
    margin-left: 1rem;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 3 колонки + широкая */
    grid-template-rows: repeat(2, 1fr); /* 2 строки */
    gap: 10px;
}

/* Первая строка (первые 3 карточки) */
.metric-card:nth-child(1) { grid-column: 1; grid-row: 1; }
.metric-card:nth-child(2) { grid-column: 2; grid-row: 1; }
.metric-card:nth-child(3) { grid-column: 3; grid-row: 1; }

/* Вторая строка (следующие 3 карточки) */
.metric-card:nth-child(4) { grid-column: 1; grid-row: 2; }
.metric-card:nth-child(5) { grid-column: 2; grid-row: 2; }
.metric-card:nth-child(6) { grid-column: 3; grid-row: 2; }

/* Большая карточка справа (последняя) */
.metric-card:last-child {
    grid-column: 4; /* 4-я колонка */
    grid-row: 1 / span 2; /* Занимает строки 1 и 2 */
}

.metric-card {
    background: var(--white-color);
    padding: 30px;
    border-radius: var(--border-radius-bg);
    border: 1px solid var(--gray100-color-lines);
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    justify-content: space-between; /* Распределяет пространство между элементами */
}

.metric-card:hover {
    transform: translateY(-5px);
} 

.green-bg {
    background: #DCFCE7 !important;
    border: 1px solid var(--green-color) !important;
    justify-content: center;
}


.metric-info p {
    color: var(--gray400-color);
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.metric-info h3 {
    font-size: 64px;
    color: var(--black-color);
    margin-bottom: 5px;
    margin-block-start: 0;
    margin-block-end: 0;
    line-height: 1;
    font-weight: 600;
}

.metric-info h4 {
    font-size: 40px;
    color: var(--black-color);
    margin-bottom: 5px;
    margin-block-start: 0;
    margin-block-end: 0;
    line-height: 1;
    font-weight: 600;
    margin-bottom: 10px;
}

.metric-info-large p {
    color: var(--gray500-color);
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    margin-bottom: 10px;
    text-align: center;
}

.metric-caption p {
    color: var(--gray500-color);
    font-size: 12px !important;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 10px;
}

.sum-caption {
    color: var(--gray400-color);
    font-size: 14px !important;
    line-height: 1 !important;
    font-weight: 100 !important;
    margin-bottom: 0 !important;
}

.metric-info-large h2 {
    font-size: 128px !important;
    color: var(--green-color);
    margin-bottom: 5px;
    margin-block-start: 0;
    margin-block-end: 0;
    line-height: 1;
    font-weight: 600;
    text-align: center;
}

.metrics2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 10px;
}

.metric-card2 {
    background: var(--white-color);
    padding: 30px;
    border-radius: var(--border-radius-bg);
    border: 1px solid var(--gray100-color-lines);
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    justify-content: space-between !important; /* Распределяет пространство между элементами */
}

.metric-card2:hover {
    transform: translateY(-5px);
} 

/* Секция с графиком и активностью */
.content-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

@media (max-width: 1200px) {
    .content-section {
        grid-template-columns: 1fr;
    }
}

.chart-container, .recent-activity {
    background: white;
    padding: 24px;
    border-radius: var(--border-radius-bg);
    border: 1px solid var(--gray100-color-lines);
}

.chart-container h3, .recent-activity h3 {
    font-size: 18px;
    color: var(--gray500-color);
    margin-bottom: 20px;
    font-weight: 600;
}

.chart-placeholder {
    height: 300px;
    width: 100%;
}

/* Список активности */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border-radius: var(--border-radius-nav);
    transition: background-color 0.3s ease;
}

.activity-item:hover {
    background-color: var(--gray50-color-bg);
}

.activity-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.activity-icon.success {
    background: rgba(5, 223, 114, 0.1);
    color: var(--green-color);
}

.activity-icon.warning {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

.activity-icon.info {
    background: rgba(43, 127, 255, 0.1);
    color: var(--blue-color);
}

.activity-details p {
    color: var(--gray500-color);
    font-weight: 500;
    margin-bottom: 4px;
}

.activity-details small {
    color: var(--gray400-color);
    font-size: 12px;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .container {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
        margin: 0;
        border-radius: 0;
        border-left: none;
        border-right: none;
        border-top: none;
    }
    
    .main-content {
        margin-left: 0;
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .content-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .header-actions {
        width: 100%;
        justify-content: space-between;
    }
}

