﻿@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

html, body {
    font-family: 'Open Sans' !important;
	font-size: 16px !important;
    letter-spacing: 1.5px;
    background-color: #212529;
}


/* Sidebar layout */
.sidebar {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.sidebar-menu {
    flex: 1 1 auto;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.sidebar-footer {
    padding: 0 1rem 1.5rem;
}

/*Overload bootstrap*/
.d-lg-flex { line-height: 0; }
.d-lg-flex > * { line-height: normal; }

a.active, button.active {
    background-color: #212529 !important;
    color: #ffcc00 !important;
}

.form-control:focus, 
.form-select:focus, 
.input-group-text:focus, 
.form-check-input, 
.form-check-input:focus {
	border-color: #ffcc00 !important;
  	box-shadow: none;
}

.form-check-input:checked {
    background-color: #ffcc00 !important;
}

/* Accordion */
.accordion-button {
    background-color: #ededed;
    color: #212529;
}
/* Stile per l'header attivo */
.accordion-button:not(.collapsed) {
    background-color: #212529;
    color: #ffcc00;
}
/* Regolazione della freccia dell'accordion */
.accordion-button::after {
    filter: invert(0);
}
.accordion-button:not(.collapsed)::after {
    filter: invert(1);
}

.bg-warning {
    background-color: #ffcc00 !important;
}

.text-warning {
    color: #ffcc00 !important;
}

.text-bg-warning {
    background-color: #ffcc00 !important;
    color: #212529 !important;
}

.border-warning {
    border-color: #ffcc00;
}

.btn-warning {
    background-color: #ffcc00 !important;
    color: #212529 !important;
}

.btn-dark {
    color: #ffcc00 !important;
}

.dropdown-item > a {
    color: #212529 !important;
}
.dropdown-item:active,
.dropdown-item:active > a,
.dropdown-item:active > a > small,
.dropdown-item.active {
    background-color: #212529 !important;
    color: #ffcc00 !important;
}

/*Login page*/

.login-container {
    max-width: 450px;
    padding: 2rem;
    background: white;
    border-radius: 10px;
}

.bg-login{ 
    background: #212529;
}

/*Layout principale*/

@media (min-width: 1900px) {
    .sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        width: 250px;
        padding: 1rem;
        overflow-y: auto;
    }
    .content {
        margin-left: 250px;
        width: -webkit-calc(100% - 250px);
        width:    -moz-calc(100% - 250px);
        width:         calc(100% - 250px);
    }

    #openSidebar{
        display: none;
    }
}

@media (max-width: 1899px) {
    .sidebar {
        display: none;
    }

    #openSidebar{
        display: '';
    }
}

/* Card azienda */

.card-azienda {
    transition: transform 0.2s;
}

.card-azienda:hover {
    transform: scale(1.05);
}

/* dashboard azienda */
.mini-tag {
    padding: .35rem .85rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 600;
}
.daily-banner {
    background: rgb(255, 255, 255);
    padding: 1.8rem;
    border: 1px solid rgba(184, 176, 148, 0.18);
    box-shadow: 0 10px 25px rgba(35, 83, 166, 0.08);
}
.banner-top {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    align-items: center;
}
.banner-title {
    font-weight: 700;
}
.banner-subtitle {
    color: #5f6f85;
    margin-bottom: 0;
}
.banner-list {
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
}
.banner-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .85rem 1rem;
    border-radius: 16px;
    background: rgba(255,255,255,0.85);
    border: 1px solid rgba(148,163,184,0.15);
    margin-bottom: .75rem;
}
.banner-list li:last-child { margin-bottom: 0; }
.task-info {
    display: flex;
    align-items: center;
    gap: .85rem;
}
.task-icon {
    padding: 10px;;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}
.task-icon.done { background: #22c55e; }
.task-icon.late { background: #f97316; }
.task-icon.pending { background: #94a3b8; }
.task-status {
    font-weight: 600;
    font-size: .8rem;
}
.task-status.done { color: #15803d; }
.task-status.late { color: #b45309; }
.task-status.pending { color: #475569; }
.touch-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(150px, 1fr));
    gap: 1.2rem;
}
.touch-tile {
    position: relative;
    padding: 1.4rem 1rem;
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #212529;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 9px 18px rgba(15, 46, 119, 0.12);
    border: 1px solid rgba(184, 176, 148, 0.18);
    transition: transform .2s ease, box-shadow .2s ease;
}
.touch-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 40px rgba(15, 46, 119, 0.18);
}
.tile-icon {
    font-size: 1.8rem;
    margin-bottom: .75rem;
}
.tile-title {
    font-size: 1rem;
}
.tile-subtitle {
    font-size: .8rem;
    color: #4b5563;
    font-weight: 400;
    margin-top: .3rem;
}
.tile-training { background: rgb(255, 255, 255); }

@media (max-width: 575px) {
    .banner-top { flex-direction: column; align-items: flex-start; }
    .touch-grid { grid-template-columns: repeat(2, minmax(130px, 1fr)); }
}

@media (min-width: 576px) and (max-width: 1024px) {
    .touch-grid { grid-template-columns: repeat(4, minmax(130px, 1fr)); }
}

/* Varie */

.mini {
    font-size: 14px;;
}
