/* ==========================================================
   HOMEOS V1.4
   ========================================================== */

/* ==========================================================
   RESET
   ========================================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

/* ==========================================================
   VARIABLES
   ========================================================== */

:root{

    --background:#06111d;

    --surface:#0f192e;

    --text:#ffffff;

    --text-secondary:#94a3b8;

    --success:#8DC63F;

    --energy-color:#FFD43B;

    --house-color:#4DA3FF;

    --mobility-color:#8DC63F;

    --notification-color:#F48A32;
}

/* ==========================================================
   PAGE
   ========================================================== */

html{
    height:100%;
}

body{

    min-height:100%;

    background:var(--background);

    color:var(--text);

    font-family:Arial,Helvetica,sans-serif;

    padding:12px 12px 85px;
}

/* ==========================================================
   HERO
   ========================================================== */

.hero-card{

    height:190px;

    border-radius:18px;

    overflow:hidden;

    margin-bottom:12px;

    background:
    linear-gradient(
        180deg,
        rgba(8,15,30,.15) 0%,
        rgba(8,15,30,.70) 100%
    ),
    url('/HOMEOS/assets/images/maison_test.jpg');

    background-size:cover;

    background-position:center;
}

.hero-overlay{

    height:100%;

    padding:16px;

    display:flex;

    flex-direction:column;

    justify-content:space-between;

    background:rgba(0,0,0,.20);
}

.hero-top{

    display:flex;

    justify-content:space-between;

    align-items:flex-start;
}

.logo{

    font-size:2rem;

    font-weight:300;
}

.logo-home{
    color:#ffffff;
}

.logo-os{
    color:#F48A32;
}

.site-info{

    text-align:right;
}

.site-name{

    font-size:.95rem;

    font-weight:600;
}

.site-date{

    font-size:.70rem;

    color:#dbe4ee;

    margin-top:2px;
}

.welcome{

    font-size:1.45rem;

    font-weight:700;

    margin-bottom:10px;
}

.status{

    display:flex;

    gap:10px;

    align-items:flex-start;
}

.status-badge{

    width:34px;

    height:34px;

    border-radius:50%;

    background:var(--success);

    color:#081018;

    display:flex;

    align-items:center;

    justify-content:center;

    font-weight:700;
}

.status-text{

    color:var(--success);

    font-size:.95rem;

    font-weight:600;
}

.last-update{

    font-size:.70rem;

    color:#dbe4ee;

    margin-top:3px;
}

/* ==========================================================
   SUMMARY
   ========================================================== */

.summary-bar{

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:8px;

    margin-bottom:12px;
}

.summary-item{

    background:var(--surface);

    border-radius:12px;

    padding:10px 6px;

    text-align:center;
}

.summary-label{

    font-size:.55rem;

    color:var(--text-secondary);

    margin-bottom:3px;
}

.summary-value{

    font-size:.90rem;

    font-weight:700;
}

/* ==========================================================
   GRID
   ========================================================== */

.dashboard-grid{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:10px;
}

/* ==========================================================
   CARDS
   ========================================================== */

.home-card{

    border-radius:16px;

    padding:12px;

    min-height:92px;

    border:1px solid rgba(255,255,255,.04);
}

.card-header{

    display:flex;

    align-items:center;

    gap:10px;

    margin-bottom:10px;
}

.icon-circle{

    width:42px;

    height:42px;

    border-radius:50%;

    display:flex;

    align-items:center;

    justify-content:center;

    flex-shrink:0;
}

.material-symbols-rounded{

    font-size:24px;
}

.card-title{

    font-size:.92rem;

    font-weight:600;
}

.card-status{

    font-size:.75rem;

    color:var(--text-secondary);
}

/* ==========================================================
   ENERGY
   ========================================================== */

.energy-card{

    background:
    linear-gradient(
    145deg,
    rgba(255,212,59,.12) 0%,
    rgba(15,25,46,1) 75%
    );

    box-shadow:
    inset 0 0 30px rgba(255,212,59,.08);
}

.energy-title{
    color:var(--energy-color);
}

.energy-circle{
    background:rgba(255,212,59,.14);
    color:var(--energy-color);
}

/* ==========================================================
   HOUSE
   ========================================================== */

.house-card{

    background:
    linear-gradient(
    145deg,
    rgba(77,163,255,.12) 0%,
    rgba(15,25,46,1) 75%
    );

    box-shadow:
    inset 0 0 30px rgba(77,163,255,.08);
}

.house-title{
    color:var(--house-color);
}

.house-circle{
    background:rgba(77,163,255,.14);
    color:var(--house-color);
}

/* ==========================================================
   MOBILITY
   ========================================================== */

.mobility-card{

    background:
    linear-gradient(
    145deg,
    rgba(141,198,63,.12) 0%,
    rgba(15,25,46,1) 75%
    );

    box-shadow:
    inset 0 0 30px rgba(141,198,63,.08);
}

.mobility-title{
    color:var(--mobility-color);
}

.mobility-circle{
    background:rgba(141,198,63,.14);
    color:var(--mobility-color);
}

/* ==========================================================
   NOTIFICATIONS
   ========================================================== */

.notification-card{

    background:
    linear-gradient(
    145deg,
    rgba(244,138,50,.12) 0%,
    rgba(15,25,46,1) 75%
    );

    box-shadow:
    inset 0 0 30px rgba(244,138,50,.08);
}

.notification-title{
    color:var(--notification-color);
}

.notification-circle{
    background:rgba(244,138,50,.14);
    color:var(--notification-color);
}

/* ==========================================================
   OTHER
   ========================================================== */

.other-equipment{

    margin-top:12px;

    background:var(--surface);

    border-radius:16px;

    padding:14px;
}

.other-title{

    font-size:.95rem;

    font-weight:600;

    margin-bottom:4px;
}

.other-text{

    font-size:.75rem;

    color:var(--text-secondary);

    margin-bottom:6px;
}

.other-count{

    font-size:.75rem;

    color:var(--success);
}

/* ==========================================================
   NAVIGATION
   ========================================================== */

.bottom-nav{

    position:fixed;

    left:0;

    bottom:0;

    width:100%;

    height:70px;

    background:#0b1325;

    border-top:1px solid rgba(255,255,255,.05);

    display:flex;

    justify-content:space-around;

    align-items:center;
}

.nav-item{

    display:flex;

    flex-direction:column;

    align-items:center;

    gap:3px;

    color:#64748b;

    text-decoration:none;

    font-size:.65rem;
}

.nav-item.active{

    color:var(--success);
}

.nav-item .material-symbols-rounded{

    font-size:20px;
}