*{
box-sizing:border-box;
margin:0;
padding:0;
}

body{
font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
background:linear-gradient(180deg,#3d93d4 0%, #4ba6bd 100%);
min-height:100vh;
color:#1b1f23;
}

/* App container */

.container{
max-width:520px;
margin:auto;
min-height:100vh;
display:flex;
flex-direction:column;
}

/* HEADER */

.header{
background:linear-gradient(135deg,#1a73e8,#2c6b94);
backdrop-filter:blur(12px);
color:white;
padding:18px;
display:flex;
align-items:center;
gap:12px;
border-bottom:1px solid rgba(255,255,255,0.2);
}

.header img{
width:42px;
height:42px;
border-radius:14px;
background:white;
padding:1px;
}

.header h1{
font-size:1.3rem;
font-weight:700;
flex:1;
letter-spacing:.5px;
}

.header button{
background:rgba(255,255,255,0.2);
border:none;
color:white;
padding:7px 14px;
border-radius:20px;
font-weight:600;
cursor:pointer;
}

/* CONTENT */

.content{
padding:20px;
}

/* PREMIUM CARDS */

.card{
background:white;
border-radius:20px;
padding:20px;
margin-bottom:20px;
box-shadow:
0 8px 20px rgba(0,0,0,0.08),
0 20px 40px rgba(0,0,0,0.06);
transition:transform .15s ease;
}

.card:hover{
transform:translateY(-2px);
}

/* ROWS */

.row{
display:flex;
justify-content:space-between;
align-items:center;
margin-bottom:12px;
}

.label{
font-size:.85rem;
color:#6b7280;
}

.value{
font-weight:700;
font-size:1.25rem;
color:#1a73e8;
}

/* NAVIGATION */

.nav{
display:flex;
gap:1px;
margin-bottom:20px;
background:rgba(255,255,255,0.2);
padding:5px;
border-radius:10px;
backdrop-filter:blur(6px);
}

.nav-item{
flex:1;
text-align:center;
padding:10px;
font-size:.9rem;
font-weight:600;
border-radius:15px;
cursor:pointer;
color:white;
transition:0.2s;
}

.nav-item.active{
background:white;
color:#1a73e8;
box-shadow:0 4px 10px rgba(0,0,0,0.15);
}

/* BUTTONS */

.btn{
width:100%;
padding:15px;
border-radius:14px;
font-weight:700;
border:none;
cursor:pointer;
font-size:.95rem;
transition:.2s;
}

.button-group{
display:flex;
gap:12px;
margin-top:15px;
}

.btn-primary{
background:linear-gradient(135deg,#1a73e8,#2c6b94);
color:white;
box-shadow:0 8px 20px rgba(26,115,232,.35);
}

.btn-primary:hover{
transform:translateY(-1px);
}

.btn-secondary {
  background: #34A853;
  color: white;
  box-shadow:
    inset 0 0 0 2px white,    /* Inner white frame */
    0 8px 20px rgba(52,168,83,.35);
  border-radius: 6px;
}

.btn-outline{
background:white;
border:2px solid #e5e7eb;
color:#333;
}

/* INPUTS */

.form-group{
margin-bottom:18px;
}

label{
font-weight:600;
font-size:.8rem;
color:#555;
margin-bottom:6px;
display:block;
}

input,select{
width:100%;
padding:14px;
border-radius:12px;
border:1px solid #e5e7eb;
font-size:.95rem;
background:white;
transition:.2s;
}

input:focus,select:focus{
outline:none;
border-color:#1a73e8;
box-shadow:0 0 0 3px rgba(26,115,232,0.15);
}

/* TIME SLOTS */

.time-slots{
display:grid;
grid-template-columns:1fr 1fr;
gap:10px;
margin-top:8px;
}

.time-slot{
background:#f4f6fb;
padding:10px;
border-radius:10px;
display:flex;
align-items:center;
gap:6px;
font-size:.9rem;
}

/* ORDER SUMMARY */

.order-summary{
background:#f2f7ff;
border-radius:14px;
padding:15px;
margin-top:12px;
}

/* SUCCESS BANNER */

.order-success{
background:linear-gradient(90deg,#34A853,#3bb273);
color:white;
padding:16px;
border-radius:14px;
font-weight:600;
text-align:center;
margin-bottom:18px;
box-shadow:0 10px 25px rgba(52,168,83,.35);
animation:slideDown .35s ease;
}

@keyframes slideDown{
from{transform:translateY(-10px);opacity:0;}
to{transform:translateY(0);opacity:1;}
}

/* CHIPS */

.chip-grid{
display:grid;
grid-template-columns:repeat(4,1fr);
gap:8px;
margin-top:10px;
}

.chip input{
display:none;
}

.chip span{
display:flex;
align-items:center;
justify-content:center;
height:45px;
border-radius:12px;
background:#f4f6fa;
font-size:13px;
cursor:pointer;
transition:.2s;
}

.chip input:checked + span{
background:#1a73e8;
color:white;
box-shadow:0 5px 12px rgba(26,115,232,.35);
}

.chip-special{
grid-column:span 2;
}

/* FOOTER */

.app-footer{
margin-top:auto;
padding:22px;
text-align:center;
font-size:12px;
color:white;
opacity:.9;
}

.app-footer a{
color:white;
text-decoration:none;
}

/* LOADING */

.loading-overlay{
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(255,255,255,.9);
display:flex;
flex-direction:column;
align-items:center;
justify-content:center;
z-index:9999;
}

.spinner{
width:50px;
height:50px;
border-radius:50%;
border:5px solid #ddd;
border-top:5px solid #1a73e8;
animation:spin 1s linear infinite;
}

@keyframes spin{
to{transform:rotate(360deg);}
}

.hidden{
display:none;
}

/* Fix New Order tab readability */

#ordersTab{
background:white;
padding:20px;
border-radius:20px;
box-shadow:
0 10px 25px rgba(0,0,0,0.08),
0 20px 40px rgba(0,0,0,0.06);
margin-bottom:20px;
}

/* Improve form labels contrast */

#ordersTab label{
color:#333;
font-weight:600;
}

/* Payment note readability */

#paymentNote{
color:#555;
font-size:0.9rem;
}

#historyTab{
background:transparent;
}

/* Transaction Cards */

.transaction{
background:white;
border-radius:16px;
padding:16px;
margin-bottom:12px;

box-shadow:
0 8px 18px rgba(0,0,0,0.07),
0 15px 30px rgba(0,0,0,0.05);

transition:transform .15s ease;
}

.transaction:hover{
transform:translateY(-2px);
}

.transaction-date{
font-size:0.8rem;
color:#6b7280;
margin-bottom:4px;
}

.transaction-type{
font-weight:700;
font-size:0.95rem;
margin-bottom:4px;
}

.transaction-amount{
font-size:1rem;
font-weight:700;
color:#1a73e8;
}

.transaction-notes{
font-size:0.8rem;
color:#666;
margin-top:4px;
}

.content{
overflow-y:auto;
-webkit-overflow-scrolling:touch;
}

button:active{
transform:scale(.97);
}

.transaction-type{
font-weight:700;
font-size:1rem;
color:#1a73e8;
}

/* Transaction animation */

.transaction{
animation:transactionSlide .35s ease;
}

@keyframes transactionSlide{

from{
opacity:0;
transform:translateY(10px);
}

to{
opacity:1;
transform:translateY(0);
}

}

/* Transaction animation */
.transaction{
animation:transactionSlide .35s ease;
}
@keyframes transactionSlide{
from{
opacity:0;
transform:translateY(10px);
}
to{
opacity:1;
transform:translateY(0);
}
}

/* History title */
#historyTab h2{
color:white;
font-weight:700;
margin-bottom:15px;
}

/* Dashboard welcome text */
#dashboardTab h2{
color:white;
font-weight:700;
margin-bottom:18px;

background:rgba(255,255,255,0.15);
padding:12px 12px;
border-radius:10px;
backdrop-filter:blur(8px);

display:flex;
align-items:center;
gap:6px;
}

.material-icons{
vertical-align:middle;
}

/* Login & Registration text visibility */

#loginView label,
#registerView label{
color:white;
font-weight:600;
}

#loginView a,
#registerView a{
color:white;
font-weight:600;
text-decoration:underline;
}

#loginView input,
#registerView input,
#registerView select{
color:#202124;
background:white;
}

#loginView h2,
#registerView h2{
color:white;
margin-bottom:15px;
}

/* Login logo */

.login-logo{
width:100px;
padding:1px;
background:white;
border-radius:50px;

box-shadow:
0 8px 20px rgba(0,0,0,0.12),
0 18px 35px rgba(0,0,0,0.08);

margin-bottom:10px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: #d4d5d6;
  border-radius: 12px;
  transition: transform 0.2s ease;
}

.contact-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.contact-details {
  flex: 1;
  text-align: left;
}

.contact-details h3 {
  margin: 0 0 5px 0;
  font-size: 1.1rem;
  color: #202124;
}

.contact-details a {
  color: #1a73e8;
  font-weight: 500;
}

.contact-details p {
  color: #5f6368;
  margin: 0;
}