/*
  Local font setup (manual step required):
  - Download Open Sans WOFF2 files and put them into `public/fonts/` with these names:
      OpenSans-Regular.woff2
      OpenSans-SemiBold.woff2
      OpenSans-Bold.woff2
  - If you only have TTF files, convert them to WOFF2 (tools: fonttools, online converters).
  - Automated download is disabled in this environment. Place the files manually and the @font-face rules below will use them.
*/
@font-face {
    font-family: "Open Sans";
    src: url("/fonts/OpenSans-Regular.woff2") format("woff2"),
        url("/fonts/OpenSans-Regular.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Open Sans";
    src: url("/fonts/OpenSans-SemiBold.woff2") format("woff2"),
        url("/fonts/OpenSans-SemiBold.woff") format("woff");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Open Sans";
    src: url("/fonts/OpenSans-Bold.woff2") format("woff2"),
        url("/fonts/OpenSans-Bold.woff") format("woff");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
/* Basic styles for the Serviceportal pages */
:root {
    --accent: #ec4d19;
    --muted: #666;
    --bg: #f7f9fc;
}
* {
    box-sizing: border-box;
}
html,
body {
    height: 100%;
}
body {
    font-family: "Open Sans", Arial;
    margin: 0;
    background: var(--bg);
    color: #111;
}
.container {
    max-width: 900px;
    width: calc(100% - 16px);
    margin: 48px auto;
    padding: 24px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(12, 20, 40, 0.06);
}
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}
.brand img, .logo-line img {
    height: 64px;
    width: 64px;
}
.brand h1 {
    font-size: 1.125rem;
    margin: 0;
}
.logout {
    color: var(--muted);
    text-decoration: none;
    font-weight: 600;
    margin-left:16px;
}
.row {
    display: flex;
    gap: 16px;
}
.card {
    flex: 1;
    padding: 18px;
    border-radius: 8px;
    border: 1px solid #eef2f8;
    margin: 0 auto;
}
form {
    display: grid;
    gap: 12px;
}
label {
    font-size: 0.875rem;
    color: var(--muted);
}
input[type="text"],
input[type="file"],
select,
textarea {
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #dfe8f5;
    font-size: 1rem;
    width: 100%;
}
button {
    background: var(--accent);
    color: white;
    padding: 10px 14px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
}
.links {
    display: flex;
    gap: 12px;
}
.links a {
    display: inline-block;
    padding: 10px 12px;
    border-radius: 8px;
    background: #f1f7ff;
    color: var(--accent);
    text-decoration: none;
}
.center {
    text-align: center;
}
.logo-line {
    display: flex;
    align-items: center;
    gap: 12px;
}
.small-muted {
    color: var(--muted);
    font-size: 0.95rem;
}
.submissions {
    margin-top: 18px;
}
.submission {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    border-radius: 6px;
    background: #fbfdff;
    border: 1px solid #eef6ff;
    margin-bottom: 8px;
}
.submission {
    position: relative;
}
.submission .cancel {
    display: none;
    position: absolute;
    right: 8px;
    top: 8px;
    background: #fff;
    border: 1px solid #ffd7d7;
    color: #b91c1c;
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
}
.submission:hover .cancel {
    display: block;
}
.status-cancelled {
    color: #9b9b9b;
    font-weight: 700;
}
.status-working {
    color: #16a34a;
    font-weight: 700;
}
.blink {
    font-weight: 700;
    color: var(--accent);
    animation: blink 1.4s ease-in-out infinite;
}
@keyframes blink {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.35;
    }
    100% {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    /*.blink{animation:none;opacity:1}*/
}
.message {
    font-size: 1.05rem;
}
.logo {
    height: 40px;
}
.title {
    font-size: 1.5rem;
    margin: 6px 0;
}
.countdown {
    color: var(--muted);
    font-size: 0.95rem;
}
.file-note {
    font-size: 0.85rem;
    color: var(--muted);
}

.dcenter {
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.disclaimer {
    font-size: 0.85rem;
    color: var(--muted);
    text-align: center;
    margin-top: 18px;
}

/* Mobile: stack cards vertically with spacing */
@media (max-width: 640px) {
    .row {
        display: flex;
        flex-direction: column;
    }
    .card {
        width: 100%;
    }
    .card + .card {
        margin-top: 14px;
    }
}
