/* ==========================================
   CalBase – Industrial Control Console Theme
========================================== */

/* ===============================
   Base Layout
============================== */
body {
    font-family: "Segoe UI", Arial, sans-serif;
    margin: 0;
    background-color: #1f2327;
    color: #e0e3e7;
}

.container {
    padding: 20px;
    padding-bottom: 100px;
    width: 100%;
    box-sizing: border-box;
}

/* ===============================
   Page Header
============================== */
.page-header{
    background: #1f2327;
    border-bottom: 1px solid #444;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

/* ===============================
   Headings
============================== */
h2 {
    margin-bottom: 6px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #ffffff;
}

h3{
    margin-top: 30px;
    margin-bottom: 10px;
    font-size:16px;
    color:#9fb3c8;
    letter-spacing:1px;
}

/* ===============================
   Breadcrumb Navigation
============================== */
.breadcrumbs {
    margin: 6px 0 12px 0;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.4px;
    color: #c5ccd4;
}

.breadcrumbs a {
    color: #e0e3e7;
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: #ffaa00;
}

.breadcrumbs span {
    margin: 0 8px;
    color: #666;
}

/* ===============================
   Buttons
============================== */
.header-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.btn {
    padding: 8px 18px;
    background: linear-gradient(to bottom, #c9721b, #a85f14);
    color: #ffffff;
    text-decoration: none;
    border-radius: 2px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.8px;
    border: 1px solid #6e3f0b;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.15),
        0 2px 3px rgba(0,0,0,0.6);
    transition: background 0.2s ease;
}

.btn:hover {
    background: linear-gradient(to bottom, #de8a2a, #b86817);
}

.btn-primary {
    background: linear-gradient(to bottom, #34c759, #1f8f3a);
    border: 1px solid #146628;
}

.btn-primary:hover {
    background: linear-gradient(to bottom, #3ee56a, #1faa34);
}

.btn-danger {
    background: linear-gradient(to bottom, #e14c4c, #a82828);
    border: 1px solid #6e1a1a;
}

.btn.disabled{
    background: #555;
    border: 1px solid #444;
    color: #aaa;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-active{
background:#3a7bd5;
color:#fff;
}

/* For service request page */
.filter-bar{
display:flex;
justify-content:space-between;
align-items:center;
margin-top:12px;
margin-bottom:12px;
}

.plant-filter{
display:flex;
align-items:center;
gap:8px;
}

.filter-row{
display:flex;
align-items:center;
justify-content:space-between;
}

.status-filters{
display:flex;
align-items:center;
gap:10px;
}

.left-group{
display:flex;
gap:8px;
}

.right-group{
    margin-left:auto;
    display:flex;
    gap:8px;
    margin-left:20px;
}
/* ===============================
   Table
============================== */
.table-wrap {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    min-width: 1200px;
    border-collapse: collapse;
    background-color: #2b2f34;
    border: 1px solid #1a1d20;
}

thead th {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: #111417;
    color: #f2f2f2;
    font-weight: 600;
    padding: 10px;
    text-align: left;
    font-size: 13px;
    letter-spacing: 0.6px;
    border-bottom: 2px solid #3c4248;
}

td {
    padding: 10px;
    border-bottom: 1px solid #3c4248;
    font-size: 13px;
    color: #d6d9dd;
}

th:last-child,
td:last-child {
    width: 1%;
    white-space: nowrap;
}

td:last-child {
    text-align: right;
}

/* Calibration details table layout */
.details-table tr{
    display:grid;
    grid-template-columns: 240px 1fr;
}

.details-table th,
.details-table td{
    text-align:left !important;
    padding:6px 8px;
}

.details-table th{
    width:auto;
}

.details-table td{
    width:auto;
}

.details-table input,
.details-table textarea,
.details-table select{
    margin-top:0;
    padding:3px 6px;
}

/* Points table (editable calibration points) */
.points-table input,
.points-table select{
    padding:2px 4px;
    height:20px;
    font-size:12px;
    margin-top:0;
}

.points-table td{
    padding:3px 6px;
}

.points-table td:last-child button {
    display:inline-block;
    font-size:11px;
    padding:2px 6px;
}

/* Dashboard Plant Area Table Links*/
.area-table a {
    color: #ffb347;
    text-decoration: none;
    font-weight: 500;
}

.area-table a:hover {
    color: #ffd27a;
    text-decoration: underline;
}

/* Dasboard stuff...*/
.dashboard-section{
background:#2b2f34;
border:1px solid #1a1d20;
padding:20px;
margin-bottom:25px;
border-radius:4px;
}

.dashboard-section h3{
margin-top:0;
color:#9fb3c8;
}

.dashboard-widgets{
display:flex;
gap:15px;
flex-wrap:wrap;
}

.dashboard-widget{
flex:1;
min-width:200px;
background:#36383a;
padding:20px;
border-radius:4px;
text-align:center;
}

.dashboard-widget h4{
margin:0;
font-size:14px;
}

.dashboard-widget .number{
font-size:26px;
margin-top:6px;
font-weight:600;
}

.dashboard-widget a{
display:block;
margin-top:10px;
color:#34c759;
text-decoration:none;
}

.dashboard-widget a:hover{
text-decoration:underline;
}

.area-table{
width:100%;
border-collapse:collapse;
}

.area-table th,
.area-table td{
padding:8px 10px;
border-bottom:1px solid #3c4248;
text-align:left;
}

.area-table th{
color:#9fb3c8;
}

.action-buttons a{
display:inline-block;
margin-right:12px;
margin-top:10px;
}

.widget-alert{
border:1px solid #c0392b;
box-shadow:0 0 8px rgba(192,57,43,0.5);
background:#3b1f1f;
}


/* ===============================
   Row Styling
============================== */
tr:nth-child(even) {
    background-color: #262a2f;
}

/* ===============================
   Hover effect for non-editable tables only
============================== */
table:not(.points-table):not(.details-table) tr:hover td {
    background-color: #3f3b25;      /* subtle amber glow */
    border-right-color: #ffaa00;     /* vertical highlight */
    box-shadow: inset 0 0 6px #ffaa00; /* subtle glow */
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

/* ===============================
   Calibration Status
============================== */
.status-overdue td {
    background-color: #5a1f1f;
}

.status-soon td {
    background-color: #4a3a12;
}

/* ===============================
   Indicators
============================== */
.superuser-indicator {
    color: #28c76f;
    font-weight: 600;
    margin-bottom: 10px;
}

/* ===============================
   Result Colours
============================== */
.result-pass {
    color:#35d07f;
    font-weight:600;
}

.result-fail {
    color:#ff5c5c;
    font-weight:600;
}

.result-null {
    font-weight: bold;
    color: #888;
}

/* ===============================
   Footer
============================== */
.footer-bar {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    background-color: #111417;
    color: #9aa2ab;
    font-size: 12px;
    padding: 10px 0;
    border-top: 2px solid #2e343a;
}

.footer-bar .left {
    float: left;
    padding-left: 20px;
    font-weight: 600;
}

.footer-bar .right {
    float: right;
    padding-right: 20px;
    font-weight: 600;
}

/* ===============================
   Form Elements
============================== */
label {
    display: block;
    margin-top: 14px;
    font-weight: 600;
}

input,
textarea,
select {
    background-color: #36383a;
    color: #e0e3e7;
    border: none;
    padding: 6px 8px;
    margin-top: 4px;
    box-shadow: inset 0 0 3px rgba(0,0,0,0.6);
    box-sizing: border-box;
}

input[type="text"],
input[type="email"],
input[type="date"] {
    width: 100%;
}

select:hover {
    background-color: #23282e;
}

.widget-alert{
border:1px solid #c0392b;
box-shadow:0 0 8px rgba(192,57,43,0.5);
background:#3b1f1f;
}

/* ===============================
   Login Elements
============================== */

.login-body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f4f4f4;
    overflow: hidden;
}

.login-background-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-rows: 1fr 1fr 1fr;
    z-index: 0;
}

.login-background-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.login-container {
    background-color: rgba(255, 255, 255, 0.75);
    color: #222;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    width: 450px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.login-container h2 {
    color: #222;
}

.login-logo {
    width: 100%;
    margin-bottom: 30px;
    max-width: 450px;
}

.login-form-group {
    margin-bottom: 20px;
}

.login-form-group label {
    display: block;
    margin-bottom: 5px;
}

.login-form-group input {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
}

.login-button {
    padding: 12px 20px;
    background-color: #337ab7;
    color: #fff;
    border: none;
    cursor: pointer;
}

.login-button:hover {
    background-color: #286090;
}

.login-error {
    color: red;
    margin-top: 15px;
}

/* ===============================
   Login Animation (images moving)
============================== */


.login-background-container {
    overflow: hidden;
}


.login-background-container img {
    animation: loginSlowPanZoom 16s ease-in-out infinite alternate;
    transform: scale(1.12);
    will-change: transform;
}

.login-background-container img:nth-child(2) {
    animation-direction: alternate-reverse;
    animation-duration: 18s;
}

.login-background-container img:nth-child(3) {
    animation-duration: 20s;
}

@keyframes loginSlowPanZoom {
    0% {
        transform: scale(1.15) translateX(-3%);
    }
    100% {
        transform: scale(1.25) translateX(3%);
    }
}



}