/* =====================================
   VAULT07 - INDUSTRIAL SYSTEMS TERMINAL
   ===================================== */

/* Main background */
html,
body,
#__next,
main {
    background: #050505 !important;
}

/* Main dashboard spacing */
main {
    padding-top: 1.5rem !important;
}

/* =====================================
   HEADER / VAULT07 BRANDING
   ===================================== */

header {
    background: #050505 !important;
    border-bottom: 1px solid #252525 !important;
    padding-bottom: 1rem !important;
}

header h1 {
    font-family: "IBM Plex Mono", monospace !important;
    font-size: 2.4rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.22em !important;
    color: #e4e0d2 !important;
    text-transform: uppercase;
}

header p {
    font-family: "IBM Plex Mono", monospace !important;
    font-size: 0.7rem !important;
    letter-spacing: 0.2em !important;
    color: #777366 !important;
    text-transform: uppercase;
}

/* VAULT07 title (greeting widget) */
h1,
.text-4xl {
    font-family: "IBM Plex Mono", monospace !important;
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.22em !important;
    color: #e4e0d2 !important;
    text-transform: uppercase;
}

/* =====================================
   SERVICE CARDS
   ===================================== */

.service-card {
    background: #101010 !important;
    border: 1px solid #292929 !important;
    border-radius: 5px !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.service-card:hover {
    border-color: #8a7950 !important;
    background: #151515 !important;
}

.service-card .service-title {
    color: #e0dfd5 !important;
    letter-spacing: 0.06em !important;
    font-family: "IBM Plex Mono", monospace !important;
}

.service-card .service-description {
    color: #858585 !important;
}

/* =====================================
   SECTION HEADINGS
   ===================================== */

.services-group h2 {
    color: #b8b5a5 !important;
    letter-spacing: 0.16em !important;
    text-transform: uppercase !important;
    font-family: "IBM Plex Mono", monospace !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
}

/* =====================================
   WIDGETS
   ===================================== */

.widget {
    background: #101010 !important;
    border: 1px solid #292929 !important;
    border-radius: 5px !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.widget h2,
.widget h3 {
    color: #c7c1ae !important;
    font-family: "IBM Plex Mono", monospace !important;
    letter-spacing: 0.08em !important;
}

/* =====================================
   RESPONSE TIME
   ===================================== */

.service-card .response-time {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    font-size: 1.6rem !important;
    font-weight: 600 !important;
    width: 100%;
    min-height: 65px;
    color: #d6d2bd !important;
}

/* =====================================
   FOOTER / SOCIAL LINKS (hidden)
   If something else disappears from the page, comment out
   the ".w-full.p-8" line first.
   ===================================== */

footer,
#footer,
.w-full.p-8 {
    display: none !important;
}

/* =====================================
   VAULT07 HEADER LAYOUT
   Title (left) | Clock (centered) | Stats (right)
   Homepage puts the datetime widgets in
   #information-widgets-right, so the clock is
   positioned separately from the title and stats.
   widgets.yaml order for datetime: time first, date second.
   ===================================== */

/* Title left, stats right (position: relative lets the clock center on this row) */
#information-widgets #widgets-wrap {
    position: relative !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    justify-content: stretch !important;
    align-items: center !important;
    width: 100% !important;
    min-height: 60px !important;
    flex-wrap: nowrap !important;
}

#information-widgets #widgets-wrap > .information-widget-greeting {
    grid-column: 1 !important;
    justify-self: start !important;
    margin: 0 !important;
}

#information-widgets #widgets-wrap > .information-widget-glances {
    grid-column: 2 !important;
    justify-self: end !important;
    margin: 0 !important;
}

/* Clock: centered at the top, time above date */
#information-widgets-right {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    margin: 0 !important;
    gap: 0 !important;
    pointer-events: none;
    z-index: 5;
}

#information-widgets-right > div {
    margin: 0 !important;
    justify-content: center !important;
    text-align: center !important;
}

/* Time */
#information-widgets-right > div:nth-child(1) {
    font-family: "IBM Plex Mono", monospace !important;
    font-weight: 600 !important;
    letter-spacing: 0.1em !important;
    color: #e4e0d2 !important;
}

/* Date */
#information-widgets-right > div:nth-child(2) {
    font-family: "IBM Plex Mono", monospace !important;
    letter-spacing: 0.15em !important;
    text-transform: uppercase;
    color: #777366 !important;
}

/* =====================================
   NARROW SCREENS / MOBILE (keep this LAST in the file)
   Stacks everything in one centered column:
   title, then time + date, then stats.
   ===================================== */

@media (max-width: 1100px) {
    #information-widgets #widgets-wrap {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.75rem !important;
        text-align: center !important;
    }

    #information-widgets #widgets-wrap > * {
        margin: 0 auto !important;
        width: auto !important;
        max-width: 100% !important;
    }

    /* Clock sits in the flow, centered, instead of floating */
    #information-widgets-right {
        position: static !important;
        transform: none !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 auto !important;
    }

    #information-widgets-right > div,
    #information-widgets-right > div > div {
        justify-content: center !important;
        text-align: center !important;
    }

    /* Slightly smaller so the date fits a phone screen */
    #information-widgets-right > div:nth-child(1) span {
        font-size: 2.2rem !important;
        letter-spacing: 0.08em !important;
    }

    #information-widgets-right > div:nth-child(2) span {
        font-size: 0.8rem !important;
        letter-spacing: 0.08em !important;
    }
}
