* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #000;
    font-family: Arial, Helvetica, sans-serif;
    color: white;
}

.start-screen {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    position: relative;
    background: #000;
}

.background-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.overlay-image {
    position: absolute;
    z-index: 2;

    left: 50%;
    top: 54%;
    transform: translate(-50%, -50%);

    width: min(1080px, 82vw);
    height: auto;

    pointer-events: none;
}

/* LOGIN */

.login-screen {
    position: absolute;
    z-index: 5;
    inset: 0;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.login-logo-wrap {
    position: relative;
    margin-bottom: -60px;
}

.login-logo {
    width: 640px;
    max-width: 80vw;
    height: auto;

    filter:
        drop-shadow(10px 10px 4px rgba(0, 0, 0, 0.90))
        drop-shadow(16px 14px 8px rgba(0, 0, 0, 0.65));
}

.login-box {
    width: 430px;

    background:
        linear-gradient(145deg, rgba(34, 38, 42, 0.94), rgba(12, 14, 16, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-left: 4px solid #d00000;
    border-radius: 12px;

    box-shadow:
        0 28px 55px rgba(0, 0, 0, 0.8),
        0 0 28px rgba(180, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.10);

    padding: 36px 38px 28px 38px;
    text-align: center;
}

.login-title {
    color: #ffffff;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: 3px;
}

.login-subtitle {
    margin-top: 10px;
    color: rgba(210, 210, 210, 0.72);
    font-size: 15px;
    letter-spacing: 1px;
}

.login-input {
    margin-top: 18px;
    width: 100%;
    height: 48px;

    background: rgba(0, 0, 0, 0.48);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 7px;

    color: #ffffff;
    font-size: 18px;
    text-align: center;
    outline: none;
}

.login-input:focus {
    border-color: rgba(220, 0, 0, 0.85);
    box-shadow: 0 0 16px rgba(220, 0, 0, 0.35);
}

.login-error {
    margin-top: 14px;
    height: 20px;

    color: #ff4a4a;
    font-size: 14px;
}

.login-error.empty {
    visibility: hidden;
}

.login-button {
    margin-top: 16px;
    width: 100%;
    height: 46px;

    border: 0;
    border-radius: 7px;

    background: #b80000;
    color: #ffffff;

    font-size: 15px;
    font-weight: 800;
    letter-spacing: 1.5px;

    cursor: pointer;
}

.login-button:hover {
    background: #e00000;
}

/* MENU USER BAR */

.top-user-bar {
    position: absolute;
    z-index: 8;

    top: 18px;
    right: 22px;

    display: flex;
    align-items: center;
    gap: 18px;

    padding: 10px 14px;

    background: rgba(18, 21, 24, 0.82);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;

    color: rgba(220, 220, 220, 0.78);
    font-size: 14px;

    box-shadow: 0 10px 25px rgba(0,0,0,0.45);
}

.top-user-bar span {
    color: white;
    font-weight: 700;
}

.top-user-bar a {
    color: #ff2a2a;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 1px;
}

.top-user-bar a:hover {
    color: #ffffff;
}

/* LOGO MENU */

.logo-area {
    position: absolute;
    z-index: 4;

    top: 10px;
    left: 50%;
    transform: translateX(-50%);

    width: 900px;
    height: 330px;
    text-align: center;
    pointer-events: none;
}

.logo-area::after {
    content: "";
    position: absolute;

    left: 50%;
    top: 160px;
    transform: translateX(-50%);

    width: 620px;
    height: 48px;

    background: rgba(0, 0, 0, 0.55);
    filter: blur(18px);
    border-radius: 50%;

    z-index: 0;
}

.main-logo-wrap {
    position: relative;
    z-index: 2;
    display: inline-block;
    transform: translateY(-95px);
}

.main-logo {
    position: relative;
    z-index: 3;

    width: 720px;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;

    filter:
        drop-shadow(10px 10px 4px rgba(0, 0, 0, 0.90))
        drop-shadow(16px 14px 8px rgba(0, 0, 0, 0.65));
}

.slogan-row {
    position: absolute;
    top: 245px;
    left: 0;

    width: 100%;

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 28px;

    margin-top: 0;
}

.red-line {
    width: 120px;
    height: 2px;
    background: #d00000;
}

.slogan {
    color: #cfcfcf;
    font-size: 14px;
    letter-spacing: 7px;
    white-space: nowrap;
}

/* MENU CARDS */

.cards {
    position: absolute;
    z-index: 5;

    left: 50%;
    top: 54%;
    transform: translate(-50%, -50%);

    width: min(1080px, 82vw);
    aspect-ratio: 850 / 604;

    margin: 0;
    display: block;
}

.menu-card {
    position: absolute;
    text-decoration: none;
    color: white;

    background: rgba(255, 255, 255, 0);
    border: 0;
    border-radius: 10px;

    display: block;
    overflow: hidden;

    transition:
        background 0.15s ease,
        transform 0.15s ease,
        box-shadow 0.15s ease,
        opacity 0.15s ease,
        filter 0.15s ease;
}

.menu-card:hover {
    background: rgba(255, 255, 255, 0.035);
    transform: translateY(-3px);
    box-shadow: 0 0 22px rgba(220, 0, 0, 0.18);
}

.menu-card:active {
    transform: translateY(0);
}

.card-disabled {
    opacity: 0.33;
    filter: grayscale(1);
    cursor: not-allowed;
}

.card-disabled:hover {
    background: rgba(0, 0, 0, 0);
    transform: none;
    box-shadow: none;
}

.card-buero {
    left: 17.5%;
    top: 30.2%;
    width: 29.5%;
    height: 39%;
}

.card-produktion {
    left: 51.4%;
    top: 30.2%;
    width: 30.6%;
    height: 39%;
}

.card-icon-img {
    position: absolute;
    left: 50%;
    top: 16%;
    transform: translateX(-50%);

    width: 78px;
    height: 78px;
    object-fit: contain;
}

.card-title {
    position: absolute;
    left: 0;
    top: 47%;

    width: 100%;
    text-align: center;

    font-size: 32px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #fff;
}

.card-produktion .card-title {
    left: 0;
    width: 100%;
    font-size: 31px;
    transform: translateX(18px);
}

.card-description {
    position: absolute;
    left: 9%;
    top: 66%;

    width: 82%;
    text-align: center;

    color: #d0d0d0;
    font-size: 15px;
    line-height: 1.3;
}

.card-produktion .card-description {
    left: 8%;
    width: 84%;
    transform: translateX(18px);
}

.card-arrow {
    position: absolute;
    right: 12px;
    bottom: 14px;

    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 7px;

    color: #ff1a1a;
    font-size: 38px;
    line-height: 1;
}

/* TV BUTTON */

.monitor-button {
    position: absolute;
    z-index: 7;

    right: 1.5%;
    top: 19%;

    width: 64px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #ffffff;
    text-decoration: none;
    font-size: 17px;
    font-weight: 900;
    letter-spacing: 1px;

    background:
        linear-gradient(145deg, rgba(42, 45, 48, 0.88), rgba(10, 12, 14, 0.92));
    border: 1px solid rgba(255,255,255,0.16);
    border-left: 3px solid #d00000;
    border-radius: 8px;

    box-shadow:
        0 12px 26px rgba(0,0,0,0.55),
        0 0 18px rgba(180,0,0,0.18);

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        background 0.15s ease;
}

.monitor-button:hover {
    transform: translateY(-2px);
    background:
        linear-gradient(145deg, rgba(58, 62, 66, 0.92), rgba(18, 20, 22, 0.96));
    box-shadow:
        0 15px 30px rgba(0,0,0,0.62),
        0 0 22px rgba(220,0,0,0.26);
}

/* FOOTER MENU */

.footer {
    position: absolute;
    z-index: 5;

    left: 22px;
    right: 22px;
    bottom: 22px;
    height: 72px;

    background: rgba(18, 21, 24, 0.88);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 9px;

    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;

    padding: 0 34px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.55);
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 24px;
    color: #cfcfcf;
    font-size: 15px;
    justify-self: start;
}

.separator {
    width: 1px;
    height: 34px;
    background: rgba(255,255,255,0.18);
}

.footer-center {
    justify-self: center;
    color: rgba(150, 150, 150, 0.32);
    font-size: 12px;
    letter-spacing: 0.8px;
}

.footer-center span {
    color: rgba(170, 170, 170, 0.38);
    font-weight: 600;
}

.footer-right {
    justify-self: end;
    color: #d6d6d6;
    font-size: 17px;
    letter-spacing: 0.5px;
}

.footer-right span {
    color: #e00000;
}

/* OFFICE DASHBOARD */

.office-screen {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    position: relative;
    background: #070707;
    color: white;
    padding: 86px 28px 24px 28px;
}

.office-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(circle at top left, rgba(180, 0, 0, 0.26), transparent 34%),
        radial-gradient(circle at bottom right, rgba(120, 0, 0, 0.22), transparent 38%),
        linear-gradient(135deg, #111417, #050505 58%, #130000);
}

.office-header,
.office-stats,
.office-main-grid,
.office-bottom-grid {
    position: relative;
    z-index: 2;
}

.office-header {
    position: absolute;
    top: 18px;
    left: 28px;
    right: 28px;
    height: 54px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 18px;

    background: rgba(18, 21, 24, 0.78);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 9px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.45);
}

.office-title-block {
    display: flex;
    align-items: center;
    gap: 22px;
}

.office-system {
    color: #ffffff;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 1px;
}

.office-page-title {
    color: #d00000;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.office-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.office-user {
    color: rgba(220,220,220,0.72);
    font-size: 14px;
}

.office-user span {
    color: #ffffff;
    font-weight: 700;
}

.office-header-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;

    padding: 8px 12px;
    border-radius: 6px;
    background: rgba(255,255,255,0.08);
}

.office-header-link.logout {
    color: #ff2a2a;
}

.office-stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    height: 118px;
}

.office-stat-card,
.office-panel {
    background:
        linear-gradient(145deg, rgba(38, 42, 46, 0.88), rgba(10, 12, 14, 0.92));
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 10px;
    box-shadow:
        0 16px 34px rgba(0,0,0,0.46),
        inset 0 1px 0 rgba(255,255,255,0.08);
}

.office-stat-card {
    padding: 20px 22px;
    border-left: 4px solid #b80000;
}

.stat-label {
    color: rgba(220,220,220,0.62);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
}

.stat-value {
    margin-top: 12px;
    color: #ffffff;
    font-size: 42px;
    font-weight: 300;
    letter-spacing: 1px;
}

.stat-value.small {
    font-size: 32px;
    margin-top: 17px;
}

.stat-sub {
    margin-top: 4px;
    color: rgba(210,210,210,0.48);
    font-size: 13px;
}

.office-main-grid {
    margin-top: 18px;
    height: calc(100vh - 86px - 118px - 18px - 202px - 18px - 24px);

    display: grid;
    grid-template-columns: 1.25fr 1.05fr 360px;
    gap: 18px;
}

.office-panel {
    padding: 18px;
    overflow: hidden;
}

.panel-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
}

.panel-title {
    color: #ffffff;
    font-size: 17px;
    font-weight: 900;
    letter-spacing: 1.2px;
}

.panel-subtitle {
    margin-top: 5px;
    color: rgba(210,210,210,0.48);
    font-size: 13px;
}

.panel-more {
    border: 0;
    color: #ffffff;
    background: rgba(184,0,0,0.88);
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.monthly-content {
    margin-top: 20px;
}

.monthly-numbers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.monthly-label {
    color: rgba(210,210,210,0.50);
    font-size: 13px;
}

.monthly-plan,
.monthly-current,
.monthly-percent {
    margin-top: 6px;
    font-size: 26px;
    font-weight: 300;
}

.monthly-percent {
    color: #ff3030;
}

.month-chart {
    position: relative;
    margin-top: 24px;
    height: 190px;

    background: rgba(0,0,0,0.24);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 8px;
    padding: 18px 18px 14px 18px;
}

.plan-line {
    position: absolute;
    left: 18px;
    right: 18px;
    top: 42px;
    height: 2px;
    background: rgba(255,40,40,0.86);
    box-shadow: 0 0 12px rgba(255,0,0,0.42);
}

.chart-bars {
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
}

.chart-bars span {
    flex: 1;
    display: block;
    min-width: 14px;
    background:
        linear-gradient(180deg, #ff3030, #8b0000);
    border-radius: 5px 5px 0 0;
    box-shadow: 0 0 12px rgba(200,0,0,0.25);
}

.invoice-list {
    margin-top: 18px;
    display: grid;
    gap: 12px;
}

.invoice-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr 0.8fr;
    align-items: center;
    gap: 12px;

    padding: 13px 14px;
    border-radius: 7px;
    background: rgba(255,255,255,0.055);
    border-left: 4px solid rgba(255,255,255,0.18);
}

.invoice-row strong {
    display: block;
    font-size: 16px;
}

.invoice-row span,
.invoice-row em {
    color: rgba(220,220,220,0.58);
    font-size: 13px;
    font-style: normal;
}

.invoice-row.urgent {
    border-left-color: #d00000;
}

.invoice-row.warning {
    border-left-color: #e0a000;
}

.invoice-row.ready {
    border-left-color: #26b000;
}

.office-right-column {
    display: grid;
    grid-template-rows: 1fr 1.05fr 1.1fr;
    gap: 18px;
}

.messages-panel {
    background:
        linear-gradient(145deg, rgba(120, 0, 0, 0.90), rgba(28, 0, 0, 0.94));
    border-color: rgba(255,60,60,0.22);
}

.message-item {
    margin-top: 14px;
    padding: 11px 12px;
    background: rgba(0,0,0,0.22);
    border-radius: 7px;
}

.message-item strong {
    display: block;
    color: #ffffff;
    font-size: 13px;
    margin-bottom: 5px;
}

.message-item span {
    color: rgba(255,255,255,0.76);
    font-size: 13px;
}

.donut-wrap {
    display: flex;
    justify-content: center;
    margin-top: 16px;
}

.donut {
    --p: calc(var(--percent) * 1%);
    width: 132px;
    height: 132px;
    border-radius: 50%;
    background:
        conic-gradient(#d00000 var(--p), rgba(255,255,255,0.10) 0);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 22px rgba(200,0,0,0.24);
}

.donut-inner {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background: #111417;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.donut-inner strong {
    font-size: 26px;
}

.donut-inner span {
    margin-top: 4px;
    color: rgba(220,220,220,0.62);
    font-size: 13px;
}

.day-text {
    margin-top: 12px;
    color: rgba(220,220,220,0.70);
    font-size: 13px;
    line-height: 1.7;
    text-align: center;
}

.shortcut-grid {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.shortcut-item {
    height: 58px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;

    color: #ffffff;
    text-decoration: none;
    font-size: 19px;

    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
}

.shortcut-item span {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.shortcut-item:hover {
    background: rgba(184,0,0,0.45);
}

.office-bottom-grid {
    margin-top: 18px;
    height: 202px;

    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 18px;
}

.operation-list,
.machine-list {
    margin-top: 14px;
    display: grid;
    gap: 10px;
}

.operation-row {
    display: grid;
    grid-template-columns: 110px 1fr 1fr 120px;
    align-items: center;

    padding: 10px 12px;
    background: rgba(255,255,255,0.055);
    border-radius: 7px;
}

.operation-row span {
    color: rgba(220,220,220,0.58);
}

.operation-row em {
    font-style: normal;
    color: rgba(220,220,220,0.70);
}

.operation-row b {
    color: #35d000;
    font-weight: 800;
}

.operation-row b.pause {
    color: #e0a000;
}

.machine-list {
    grid-template-columns: repeat(2, 1fr);
}

.machine-row {
    display: grid;
    grid-template-columns: 18px 1fr 1fr;
    align-items: center;
    gap: 10px;

    padding: 13px 12px;
    background: rgba(255,255,255,0.055);
    border-radius: 7px;
}

.machine-row em {
    font-style: normal;
    color: rgba(220,220,220,0.70);
}

.machine-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.machine-dot.green {
    background: #35d000;
    box-shadow: 0 0 10px rgba(53,208,0,0.8);
}

.machine-dot.yellow {
    background: #e0a000;
    box-shadow: 0 0 10px rgba(224,160,0,0.8);
}

.machine-dot.gray {
    background: #777;
}
/* =========================================================
   BÜRO - LEPSZE WYKORZYSTANIE WYSOKOŚCI
   Stały układ - bez responsywnego przesuwania elementów
   ========================================================= */

/*
   Główny dashboard:
   pierwszy rząd pozostaje bez zmian,
   środkowy trochę wyższy,
   dolny dużo wyższy.
*/

.office-dashboard {
    grid-template-rows:
        118px
        350px
        300px !important;
}


/* =========================================================
   PRAWA KOLUMNA
   MELDUNGEN / TAGESZIEL / SCHNELLZUGRIFF
   ========================================================= */

.office-right-column {
    /*
       Cała prawa kolumna kończy się dokładnie
       na tej samej wysokości co dolne panele.

       Meldungen: 190 px
       Tagesziel: wykorzystuje pozostałe miejsce
       Schnellzugriff: 190 px
    */

    grid-template-rows:
        190px
        1fr
        190px !important;

    gap: 18px !important;
}


/* =========================================================
   TAGESZIEL
   ========================================================= */

.day-panel {
    overflow: hidden !important;
}

/* koło ma teraz miejsce */

.day-panel .donut-wrap {
    margin-top: 18px !important;
}

/* zachowujemy oryginalną wielkość koła */

.day-panel .donut {
    width: 132px !important;
    height: 132px !important;
}

.day-panel .donut-inner {
    width: 92px !important;
    height: 92px !important;
}

/* napisy pod kołem są widoczne */

.day-panel .day-text {
    margin-top: 12px !important;
    line-height: 1.55 !important;
}


/* =========================================================
   SCHNELLZUGRIFF
   ========================================================= */

.shortcuts-panel {
    /*
       Panel pozostaje na dole prawej kolumny.
       Jego przyciski zachowują dotychczasowy wygląd.
    */

    padding: 16px 18px 14px 18px !important;
}

.shortcuts-panel .panel-title {
    margin-bottom: 10px !important;
}

.shortcut-grid {
    margin-top: 8px !important;
}


/* =========================================================
   DOLNE PANELE
   ========================================================= */

.active-operations-panel,
.machine-status-panel {
    overflow: hidden !important;
}

/*
   Więcej miejsca w dolnych panelach.
   Same rekordy pozostają takie jak były.
*/

.active-operations-panel .operation-list,
.machine-status-panel .operation-list {
    margin-top: 14px !important;
}




