/* =====================================================
   MCM Work Calendar
   style.css
   Parte 1
===================================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    -webkit-tap-highlight-color:transparent;
}

html{

    touch-action:manipulation;

    -webkit-text-size-adjust:100%;

}

body{

    font-family:Arial,Helvetica,sans-serif;

    background:#eef2f7;

    color:#222;

    padding:15px;

}

.container{

    max-width:1200px;

    margin:auto;

}

/* ==========================================
   HEADER
========================================== */

header{

    margin-bottom:15px;

}

header h1{

    font-size:18px;

    text-align:center;

    color:#2b2b2b;

}

/* ==========================================
   CARD
========================================== */

.card{

    background:#ffffff;

    border-radius:14px;

    padding:18px;

    margin-top:15px;

    box-shadow:0 2px 8px rgba(0,0,0,.08);

}

.card h3{

    margin-bottom:12px;

    color:#333;

}

/* ==========================================
   BARRA MESE
========================================== */

.monthBar{

    display:flex;

    align-items:center;

    justify-content:space-between;

    gap:10px;

    margin-bottom:10px;

}

#monthTitle{

    flex:1;

    text-align:center;

    font-size:24px;

    font-weight:bold;

}

.monthBtn{

    width:48px;

    height:48px;

    border:none;

    border-radius:12px;

    background:#3b82f6;

    color:white;

    cursor:pointer;

    font-size:22px;

    transition:.2s;

}

.monthBtn:hover{

    background:#2563eb;

}

.todayBar{

    display:flex;

    justify-content:center;

    margin-bottom:18px;

}

.todayBtn{

    border:none;

    background:#10b981;

    color:white;

    padding:10px 18px;

    border-radius:12px;

    cursor:pointer;

    font-size:16px;

    font-weight:bold;

    transition:.2s;

}

.todayBtn:hover{

    background:#059669;

}

/* ==========================================
   PULSANTI
========================================== */

.quickActions{

display:grid;

grid-template-columns:repeat(2,1fr);

gap:10px;

}

.quickActions button{

    border:none;

    border-radius:10px;

    padding:14px;

    cursor:pointer;

    font-size:15px;

    font-weight:bold;

    transition:.2s;

    color:white;

}

.quickActions button:hover{

    transform:translateY(-2px);

}

/* Colori */

.lavoro{

    background:#34C759;

}

.trasferta{

    background:#0A84FF;

}

.permesso{

    background:#FFD60A;

    color:#333 !important;

}

.malattia{

    background:#FF9500;

}

.festivita{

    background:#FF3B30;

}

.cig{

    background:#AF52DE;

}

/* ==========================================
   CALENDARIO
========================================== */

.calendar{

    display:grid;

    grid-template-columns:repeat(7,1fr);

    gap:8px;

    margin-top:15px;

}

.weekDay{

    background:#f4f4f5;

    border:1px solid #d4d4d8;

    border-radius:10px;

    text-align:center;

    padding:10px 0;

    font-weight:700;

    color:#555;

    box-shadow:0 1px 3px rgba(0,0,0,.05);

}

.emptyDay{

    min-height:75px;

}

.day{

    position:relative;

    background:#fff;

    border:1px solid #e5e7eb;

    border-radius:12px;

    min-height:58px;

    padding:8px 6px;

    cursor:pointer;

    transition:.18s;

    box-shadow:0 2px 5px rgba(0,0,0,.05);

    display:flex;

    flex-direction:column;

    align-items:center;

    justify-content:flex-start;

}

.day:hover{

    transform:translateY(-2px);

    box-shadow:0 6px 14px rgba(0,0,0,.12);

}

.day strong{

    font-size:15px;

    margin-top:2px;

}

.day small{

    margin-top:auto;

    margin-bottom:4px;

    font-size:10px;

    color:#666;

}

/* ==========================================
   GIORNO SELEZIONATO
========================================== */

.day.selected{

    border:3px solid #2563eb;

    box-shadow:0 0 0 3px rgba(37,99,235,.15);

}

/* ==========================================
   GIORNO DI OGGI
========================================== */

.day.today{

    outline:3px solid #ff9500;

}

/* ==========================================
   BORDO COLORATO
========================================== */

.day.lavoro{

    border-left:6px solid #34C759;

}

.day.trasferta{

    border-left:6px solid #0A84FF;

}

.day.permesso{

    border-left:6px solid #FFD60A;

}

.day.malattia{

    border-left:6px solid #FF9500;

}

.day.festivita{

    border-left:6px solid #FF3B30;

}

.day.cig{

    border-left:6px solid #AF52DE;

}

/* ==========================================
   PALLINO
========================================== */

.dot{

    position:absolute;

    width:10px;

    height:10px;

    border-radius:50%;

    top:7px;

    right:7px;

}

/* ==========================================
   RIEPILOGHI
========================================== */

#detail{

    line-height:1.8;

    font-size:15px;

}

#summary{

    line-height:1.8;

    font-size:15px;

}

/* ==========================================
   MOBILE
========================================== */

@media(max-width:700px){

.calendar{

    gap:4px;

}

.day{

    min-height:60px;

    padding:4px;

}

.day strong{

    font-size:16px;

}

.day small{

    font-size:10px;

}

.monthBtn{

    width:42px;

    height:42px;

}

#monthTitle{

    font-size:20px;

}

}