* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f0f2f5;
    padding: 20px;
}

/* Header styling */
header {
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 10px;
    background-color: #cecece;
    padding: 20px;
    border-radius: 8px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

header h1 {
    margin: 0;
    text-align: center;
    width: 100%;
    font-size: 24px;
}

.img_logoCifrix {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    max-width: 160px;
    height: auto;
}

/* Dashboard sections */
main {
    max-width: 1200px;
    margin: 0 auto;
}

.dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.statbox {
    background-color: #fff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.statbox h2 {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.stat {
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
    margin-block-end: 0px;
}

.stat h2 {
    color: #666;
    font-size: 14px;
    margin-bottom: 8px;
}

.stat p {
    font-size: 24px;
    font-weight: bold;
    color: #1a1a1a;
    margin: 0;
}

/* Sekce s grafy */
.charts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
    gap: 5px;
}

.chart-section {
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-top: 0;
    box-sizing: border-box;
}

.chart-section h2 {
    text-align: center;
    font-size: 16px;
    margin-bottom: 5px;
}

.chart-section canvas {
    width: 100%;
    max-height: 250px;
}

/* Responsive design */
@media (max-width: 840px) {
    header {
        flex-direction: column;
        padding: 15px;
        gap: 10px;
    }

    .img_logoCifrix {
        position: static;
        transform: none;
        width: 160px;
    }
}

@media (max-width: 500px) {
    header h1 {
        font-size: 1.4em;
    }

    .img_logoCifrix {
        width: 130px;
    }
}

@media (max-width: 500px) {

    .dashboard {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 5px;
        margin-bottom: 12px;
    }

    .stat {
        padding: 10px;
        border-radius: 8px;
        margin-top: 10px;
        margin-block-end: 0px;
    }

    .stat h2 {
        font-size: 11px;
        margin-bottom: 8px;
    }

    .stat p {
        font-size: 13px;

    }

}