

body {
    width: 100%;
    font-family: Arial, sans-serif;
    background: linear-gradient(90deg, #ffffff, #ffffff);
 /*     background-color: #f0f4f8;*/
    color: #333;
    margin: 0;
    padding: 0;
    background-size: cover;
}

html, body {
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 800px;   /* ili 900px ako želiš šire */
    margin: auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: none;
}

.container.active {
    display: block;
}

h2 {
    color: #0056b3;
}

label, p {
    font-size: 16px;
    margin-bottom: 10px;
}

input[type="text"], input[type="password"], select {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

input[type="submit"], button {
    background-color: #0056b3;
    color: #fff;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

input[type="submit"]:hover, button:hover {
    background-color: #004494;
}

.buttonRED {
    background-color: #c3022c;
    color: #fff;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.buttonDISABLED  {
    background-color: #333;
    color: #fff;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.buttonDISABLED:hover  {
    background-color: #333;
    color: #fff;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.buttonRED:hover {
    background-color: #a80000;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

th, td {
    padding: 10px;
    text-align: left;
    border: 1px solid #ddd;
}

.grid {
    display: grid;
    grid-template-columns: repeat(16, 20px);
    gap: 2px;
    justify-content: center;
    margin-bottom: 20px;
}

.cell {
    width: 20px;
    height: 20px;
    border: 1px solid #ccc;
    text-align: center;
    line-height: 20px;
    cursor: pointer;
    background-color: #e9ecef;
    border-radius: 5px;
}

.cell:hover {
    background-color: #d0d7de;
}

ul {
    list-style-type: none;
    padding: 0;
}

li {
    margin-bottom: 10px;
}

li button {
    margin-left: 10px;
}

#fundingDetails {
    margin-top: 20px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #e9f2ff;
}

#labourMarketDetails {
    margin-top: 20px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #e9f2ff;
}

#segmentDetails {
    margin-top: 20px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #e9f2ff;
}
#equipmentList {
    margin-top: 20px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #e9f2ff;
}

#supplierSelect {
    margin-top: 20px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #e9f2ff;
}

.equipment-detail {
    margin: 5px 0;
}



/* The sidebar menu */
.sidebar {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    /*background-color: #2b6cb0;  Plava pozadina */
    background: linear-gradient(135deg, #00b4d8, #90e0ef);
    overflow-x: hidden;
    transition: 0.5s;
    padding-top: 60px;
}

.sidebar a {
    padding: 10px 15px;
    text-decoration: none;
    font-size: 18px; /* Manji font */
    color: #f1f1f1; /* Svijetla boja teksta */
    display: block;
    transition: 0.3s;
}

.sidebar a:hover {
    color: #ffffff; /* Bijela boja teksta pri hoveru */
    background-color: #1a436b; /* Tamnija plava pozadina pri hoveru */
}

.sidebar .closebtn {
    position: absolute;
    top: 0;
    right: 20px;
    font-size: 30px; /* Manji font za zatvaranje dugmeta */
    margin-left: 50px;
    color: #f1f1f1; /* Svijetla boja ikone za zatvaranje */
}

.openbtn {
    font-size: 18px; /* Manji font za otvoreno dugme */
    cursor: pointer;
    background-color: #2b6cb0; /* Plava pozadina */
    color: white;
    padding: 10px 15px;
    border: none;
}

.openbtn:hover {
    background-color: #1a436b; /* Tamnija plava pozadina pri hoveru */
}

#main {
    transition: margin-left .5s;
    padding: 16px;


}


/* Tabela istorije */
#historyTable {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

#historyTable th, #historyTable td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
}

#historyTable th {
    background-color: #f2f2f2;
    color: black;
}

/* Inoviranje atributa */
button {
    margin-left: 10px;
    margin-bottom: 10px;
        margin-top: 10px;

}


.icon-table {
    width: 100%;
    border-collapse: collapse;
}
.icon-table td {
    border: 1px solid #ddd;
    text-align: center;
    padding: 8px;
    width: 33.33%;
}
.icon-table .icon {
    font-size: 24px;
}

.highlightDC {
    background-color: red;
}

.highlightMyLocation {
    background-color: blue;
}


.correct {
    background-color: #d4edda; /* Zeleno */
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 5px;
    margin: 5px 0;
}

.incorrect {
    background-color: #f8d7da; /* Crveno */
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 5px;
    margin: 5px 0;
}

.question {
    font-weight: bold;
}


#chatBox {
    margin-bottom: 20px;
}

.message {
    margin-bottom: 10px;
}

.user-message {
    text-align: right;
}

.bot-message {
    text-align: left;
    font-weight: bold;
}

.option {
    margin: 5px 0;
}

.option button {
    padding: 10px 15px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.option button:hover {
    background-color: #0056b3;
}


.balance-sheet {
    display: flex;
    justify-content: space-between;
}

.column {
    width: 45%;
}

.column h3 {
    text-align: center;
}

.column ul {
    list-style-type: none;
    padding: 0;
}

.column ul li {
    background-color: #f9f9f9;
    margin: 5px 0;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}


#newsSection {
    margin-top: 20px;
}

#newsSection h2 {
    text-align: center;
}

#newsList {
    list-style-type: none;
    padding: 0;
}

#newsList li {
    background-color: #f9f9f9;
    margin: 5px 0;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.custom-path-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 15px;
        }
        .custom-path-link {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            text-decoration: none;
            font-size: 1.0em;
            font-weight: bold;
            color: white;
            background: linear-gradient(135deg, #6c5ce7, #74b9ff);
            border-radius: 50%;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }
        .custom-path-link:hover {
            transform: scale(1.1);
            box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
        }
        .custom-path-line {
            width: 4px;
            height: 30px;
            background: #74b9ff;
        }
        .custom-path-container a:nth-child(odd) {
            background: linear-gradient(135deg, #48D1CC, #4891d1);

        }
        .custom-path-link::before {
            content: attr(data-icon);
            font-size: 2em;
            margin-right: 5px;
        }

 
 /* CSS za slike kao dugmad */
 .image-button {
            border: none; /* Bez okvira */
            padding: 0; /* Bez dodatnog prostora */
            margin: 5px; /* Razmak između dugmadi */
            background: none; /* Bez pozadine */
            cursor: pointer; /* Promjena kursora na ruku */
        }

        .image-button:hover {
            border: none; /* Bez okvira */
            padding: 0; /* Bez dodatnog prostora */
            margin: 5px; /* Razmak između dugmadi */
            background: none; /* Bez pozadine */
            cursor: pointer; /* Promjena kursora na ruku */
        }

        /* CSS za roditeljski element da sve dugmadi budu u redu */
        .button-container {
            display: flex;
            justify-content: center; /* Centriraj dugmad, opcionalno */
        }

        .image-button img {
            width: 50px; /* Širina slike */
            height: auto; /* Automatska visina za očuvanje proporcija */
        }       

        #reportContent p {
            font-size: 16px;
            margin: 10px 0;
            padding: 8px 10px;
            border-bottom: 1px solid #ddd; /* Linija između stavki */
        }

        #reportContent p:last-child {
            border-bottom: none; /* Uklanja liniju kod zadnje stavke */
        }


/*
        .modal {
            display: none;
            position: fixed;
            z-index: 1;
            padding-top: 60px;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto;
            background-color: rgb(0,0,0);
            background-color: rgba(0,0,0,0.4);
        }
        
        .modal-content {
            background-color: #fefefe;
            margin: 5% auto;
            padding: 20px;
            border: 1px solid #888;
            width: 80%;
        }
        
        .close {
            color: #aaa;
            float: right;
            font-size: 28px;
            font-weight: bold;
        }
        
        .close:hover,
        .close:focus {
            color: black;
            text-decoration: none;
            cursor: pointer;
        }


*/





        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto;
            background-color: rgba(0, 0, 0, 0.5); /* Poluprozirna pozadina */
        }

        .modal-content {
            background-color: #fff;
            margin: 10% auto;
            padding: 20px;
            border-radius: 8px;
            width: 60%;
            max-width: 600px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        }

        .close {
            color: #aaa;
            float: right;
            font-size: 28px;
            font-weight: bold;
            cursor: pointer;
        }

        .close:hover,
        .close:focus {
            color: #000;
            text-decoration: none;
            cursor: pointer;
        }

        #locationGrid.disabled {
            pointer-events: none; /* onemogućava sve interakcije */
            opacity: 0.6;        /* malo zatamni element da se vidi da je “disable-ovan” */
          }



          @media (max-width: 600px) {

    body {
        padding: 0;
    }

    .container {
        border: none;
        border-radius: 0;
        box-shadow: none;
        max-width: 100%;
        padding: 10px;
    }

    h2 {
        font-size: 20px;
    }

    input, select, button {
        font-size: 16px;
    }

    .sidebar a {
        font-size: 16px;
        padding: 12px;
    }

    .modal-content {
        width: 90%;
        margin-top: 25%;
    }

    .image-button img {
        width: 40px;
    }
}

img {
    max-width: 100%;
    height: auto;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* smooth scroll na iPhoneu */
}

#historyTable th,
#historyTable td {
    white-space: nowrap; /* sprječava lomljenje teksta */
}

/* Dodatno za mobitele */
@media (max-width: 600px) {
    #historyTable th,
    #historyTable td {
        padding: 6px;
        font-size: 13px;
    }
}
.dashboard-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 15px;
}

/* Elegantna card kutija */
.card {
    background: #ffffff;
    border-radius: 18px;
    padding: 18px 22px;

    display: flex;
    gap: 18px;
    align-items: flex-start;

    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 6px 24px rgba(0,0,0,0.06);

    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.10);
    transform: translateY(-2px);
}

/* Ikona u "badge" mjehuriću */
.card .icon {
    min-width: 46px;
    height: 46px;

    border-radius: 50%;
    background: linear-gradient(145deg, #f3f6ff, #e2e9ff);

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 24px;
    color: #3557ff;

    box-shadow: 
        inset 0 2px 4px rgba(255,255,255,0.7),
        inset 0 -3px 6px rgba(0,0,0,0.06);
}

/* Tekstualni dio */
.label-value {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.label-value span {
    font-size: 15.8px;
    color: #444;
}

.label-value strong {
    font-size: 17px;
    color: #111;
    font-weight: 600;
}

/* Za UL liste unutar kartice */
.label-value ul {
    margin: 0;
    padding-left: 18px;
    list-style-type: disc;
    color: #222;
    font-size: 15px;
}

.label-value li {
    margin-bottom: 4px;
}

/* Responsive za veće ekrane */
@media (min-width: 800px) {
    .dashboard-cards {
        max-width: 900px;
        margin: 0 auto;
    }
}