/*
grey: #1b1b1b
green: #9bc43f
*/

html {
    position: relative;
    min-height: 100%;
    font-family: 'DM Sans', sans-serif;
}

body{ 
    padding-top: 70px;
    color: #334e5e;
}




/* HEADINGS */

h1, h2, h3, h4, h5, h6 {
    /*text-transform: uppercase;*/
    color: #499bb9;
    font-style: normal; 
    font-variant: normal;
    font-weight: 500;
}

h4, h5, h6 {
    /*text-transform: uppercase;*/
    color: #5aa001;
}




/* BREADCRUMB */

.breadcrumb {
    padding: 1px 0px;
    background-color: #fff;
    list-style: none;
    font-style: italic;
    /* border-bottom: 1px solid #C8E18C; */
    font-size: smaller;
    border-radius: 0;
    margin-bottom: 50px;
}
.breadcrumb>li+li:before {
    color: #ccc;
    content: ">" !important;
    padding: 0 2px;
}
.breadcrumb >.active {
    color: #86A836;
 }




 /* CAROUSEL */

.carousel-item {
    position: relative;
}

.carousel-item img {
    height: 30vh;  /* Limits height to 30% of viewport height */
    width: 100%;   /* Ensures full width */
    object-fit: cover; /* Prevents distortion and maintains aspect ratio */
}

.carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
}

.carousel-caption strong {
    font-size: clamp(1.5rem, 5vw, 4rem);
    color: white;
    text-shadow: 2px 2px #5aa001;
}






/* sticky FOOTER */

html, body {
    height: 100%;
}
body {
    display: flex;
    flex-direction: column;
}
.content {
    flex: 1 0 auto;
}
.footer {
    flex-shrink: 0;
}



/* BUTTONS */

.btn:focus, a:focus {
    outline: none !important;
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
}


/* ICONS */

.fa-info-circle {
    color: #E32119;
}



/* FORM */

.form-group {
    margin-bottom: 1rem;
}




/* BROWSERS */

/* remove input number scroller in Firefox */
input[type=number] { 
    -moz-appearance: textfield;
    appearance: textfield;
    margin: 0; 
  }

input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { 
    -webkit-appearance: none;
    -moz-appearance: none;
    margin: 0; 
}

/* hide reveal (eye, show) pass in Edge and Chrome */
input::-ms-reveal,
input::-ms-clear {
    display: none;
}




/* TREEVIEW CURSOR POINTERS */
.nav-level-1, .nav-level-2, .nav-level-3 {
    cursor: pointer !important;
}
.nav-level-1 i, .nav-level-2 i {
    cursor: default !important;
}



/* 
ADVANCED SEARCH (ITEMS, USERS, ...) - FIRST TABLE ROW SPECIAL FORMAT 
Because we sort in MySQL in a way, to output last updated record first and than all the rest of records
*/
.table-last-updated-top tr:first-child td {
    background-color: rgba(155, 196, 63, 0.15); /* Choose your own color here */
}




/* COLLAPSE */

[data-bs-toggle="collapse"].collapsed .if-not-collapsed {
    display: none;
}
[data-bs-toggle="collapse"]:not(.collapsed) .if-collapsed {
    display: none;
}




/* CHAT ICON */
.chat-icon {
  position: fixed;         /* Fix position to the viewport */
  bottom: 20px;            /* Distance from the bottom */
  right: 20px;             /* Distance from the right */
  width: 60px;             /* Icon width */
  height: 60px;            /* Icon height */
  background-color: #5aa001; /* Blue background */
  color: white;            /* White icon color */
  border-radius: 50%;      /* Make it circular */
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* Optional shadow */
  display: flex;           /* Center the icon */
  align-items: center;     /* Center icon vertically */
  justify-content: center; /* Center icon horizontally */
  cursor: pointer;         /* Show pointer on hover */
  z-index: 9999;           /* Ensure it appears above other elements */
}
.chat-icon:hover {
  background-color: #5aa001; /* Darker blue on hover */
}




/* POSTOPEK HOME PAGE */ 

.timeline::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #5aa001, #6abd01);
    transform: translateX(-50%);
}

/* CARD */
.step-card {
    position: relative;
    padding: 30px;
    border: none;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

/* HOVER EFFECT */
.step-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

/* STEP NUMBER CIRCLE */
.step-circle {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5aa001, #6abd01);
    color: #fff;
    font-size: 2.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* LEFT SIDE */
.step-card.left {
    margin-right: 60px;
}

.step-card.left .step-circle {
    right: -40px;
}

/* RIGHT SIDE */
.step-card.right {
    margin-left: 60px;
}

.step-card.right .step-circle {
    left: -40px;
}

/* ANIMATION */
.step {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.6s ease;
}

.step.show {
    opacity: 1;
    transform: translateY(0);
}

/* MOBILE */
@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }

    .step-card {
        margin-left: 60px !important;
        margin-right: 60px !important;
        margin-right: 0 !important;
    }

    .step-circle {
        left: -40px !important;
        right: auto !important;
    }
}