@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0,255,0,0.4); }
    70% { box-shadow: 0 0 12px 12px rgba(0,255,0,0); }
    100% { box-shadow: 0 0 0 0 rgba(0,255,0,0); }
}

.charging-pulse {
    animation: pulse 2s infinite;
}

*{ box-sizing : border-box; }

body { 
    font-family: 'Segoe UI', Arial, sans-serif; 
    margin:0; padding:0; 
    display:flex; flex-direction:column; 
    align-items:center; justify-content:flex-start; 
    min-height:100vh; background:#f4f6f8; text-align:center;
}

#logout {
    position: fixed;
    height:40px;
    width:40px;
    top: 20px;
    right: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

#welcome-message{
    width:70%;
}

nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    background: #0272F3;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 5px;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.2);
    z-index: 100;
}
nav a {
    flex-grow: 1;
    display: flex;
    justify-content: space-around;
    align-items: center;
    text-align: center;
    width: 100%;
    height: 60%;
    color: white;
    font-weight: bold;
    font-size: 15px;
    padding: 10px 5px;
    border-radius: 8px;
    background: #0272F3;
    margin: 0 5px;
    box-sizing: border-box;
    text-decoration: none;
    transition: background 0.3s;
}
nav a:hover { background: #0261CE; }

main{
    width:100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.page {width:95%; max-width:400px; margin-bottom:70px;}
form {
    display: flex;
    align-items: start;
    flex-direction: column;
    width:100%;
    max-width:400px;
    gap:5px;
}
input, select, button, #vehicle-change-btn {margin:0px;margin-bottom:7px;box-sizing:border-box;padding:10px; font-size:16px; width:100%; border:1px solid #ccc; border-radius:8px;}
input, select {max-width:400px;}
input.error {border-color:red;} 
input.success {border-color:green;}
.error-message {color:red; font-size:14px; margin-top:-10px;}
.success-message {color:green; font-size:14px;}
video {border-radius:8px; border:1px solid #ccc; max-width:100%; }
canvas {display:none;}
#qr-result {margin-top:20px; font-size:18px; font-weight:bold;}
.card {
    width:100%;
    background:white; 
    padding:20px; 
    margin:10px 0; 
    border-radius:12px; 
    box-shadow:0 2px 8px rgba(0,0,0,0.1); 
    text-align:left;
    transition: transform 0.2s;
}
#charges-content{
    width:100%;
}
.card:hover { transform: translateY(-3px); }
.card h3 { margin-top:0; color:#0272F3; }
.card p { margin:5px 0; font-size:15px; color:#333; }
#vehicle-change-btn{ display: block; text-decoration: none; text-align: center;margin-top: 10px; margin-bottom: 0px;}
#submit-charge, button, #vehicle-change-btn { background:#0272F3; color:white; border:none; cursor:pointer; transition:0.3s;}
#submit-charge:disabled, button:disabled { background:#ccc; cursor:not-allowed; }
#submit-charge:hover:not(:disabled), button:hover:not(:disabled) { background:#0261CE; }
#summary-container p { font-size:16px; margin:5px 0; }
.progress-bar {
    background:#ddd;
    border-radius:10px;
    height:20px;
    width:100%;
    margin-top:5px;
}
.progress-bar-fill {
    height:100%;
    border-radius:10px;
    background:#28a745;
    width:0%;
    transition: width 0.5s;
}

#scanner-container{
    margin-top: 50px;
    margin-bottom: 150px;
}


* { box-sizing: border-box; }

.custom-filter{
  display:flex;
  flex-direction: row;
  align-items: center;
  vertical-align: middle;
  text-align: center;
  justify-content: center;
  width: 100%;
  height: 40px;
  border-radius: 12px;
  margin: 20px 0;
  padding:0 2px;
  background-color: #0272F3;
}

.status-switch{
  width: 90%;
  height: 90%;
  background-color: #0272F3;
  color: white;
  transition: all 0.5s ease;
  cursor: pointer;
  padding: 3px;
  border-radius: 10px;
  position: relative;
}

.status-switch p{
    font-weight: bold;
    font-size: 1em;
    margin: 0;
    position: absolute;
    width: 100%;
    top: 50%;
    left: 50%;
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

.selected{
  background-color: white;
  color: #0272F3;
}

.chart-container {
    position: relative;
    height: 200px;
    width: 100%;
}