﻿/* Your CSS rules here */
/*@media (max-width: 768px) {
    .section {
        flex: 1 0 calc(50% - 10px);
    }
}*/
@media (max-width: 768px) {
    .card-header {
        font-size: 1.25rem;
    }

    .form-group {
        padding-top: 0.25rem;
    }

    .form-control {
        font-size: 0.875rem;
    }

    .sticky {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background-color: #fff;
        box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
    }

        .sticky button {
            width: 100%;
            margin-bottom: 5px;
        }
}


/* Yrityskohtainen mittaristo  */

    .table-custom {
        border-collapse: collapse;
        width: 100%;
    }

    .table-custom th, .table-custom td {
        border: 1px solid #ddd;
        padding: 8px;
    }

    .table-custom tr:nth-child(even) {
        background-color: #f2f2f2;
    }

    .table-custom tr:hover {
        background-color: #ddd;
    }

    .table-custom th {
        padding-top: 12px;
        padding-bottom: 12px;
        text-align: left;
        background-color: #04AA6D;
        color: white;
    }


/*.status-circle {
    height: 15px;
    width: 15px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
}

.green {
    background-color: #4CAF50;
}

.yellow {
    background-color: #FFEB3B;
}

.red {
    background-color: #F44336;
}

.chart-container {
    width: auto;
    height: 200px;
    margin-bottom: 50px;
}

    .chart-container h4 {
        text-align: left;
        margin-bottom: 0px;
    }

    .chart-container canvas {
        width: 100% !important;
        height: 100% !important;
    }*/

    .header-row th:nth-child(1) {
        width: 25%;
    }

    .header-row th:nth-child(2) {
        width: 25%;
    }

    .header-row th:nth-child(3) {
        width: 50%;
    }

    .muutos-teksti {
        white-space: pre-wrap;
    }

    .sticky {
        position: -webkit-sticky;
        position: sticky;
        left: 20px;
        bottom: 10px;
        z-index: 1000;
    }


@keyframes blink {
    0% {
        opacity: 0.2;
        transform: scale(1);
    }

    20% {
        opacity: 1;
        transform: scale(1.3);
    }

    100% {
        opacity: 0.2;
        transform: scale(1);
    }
}

.ai-thinking-animation {
    display: flex;
    gap: 5px;
    align-items: center;
    justify-content: flex-start;
    margin-top: 5px;
    margin-bottom: 5px;
}

.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 3px;
    background-color: #0078D7; /* Tyylikäs sininen */
    border-radius: 50%;
    animation: blink 1.4s infinite;
    opacity: 0.6;
}

    .dot:nth-child(2) {
        animation-delay: 0.2s;
    }

    .dot:nth-child(3) {
        animation-delay: 0.4s;
    }