/* ACE Home Delivery - Mobile Web App Theme */

:root {
  --ace-red: #d90000;
  --ace-red-dark: #a80000;
  --ace-red-light: #fff1f1;
  --ace-text: #222222;
  --ace-muted: #666666;
  --ace-border: #e5e5e5;
  --ace-bg: #f7f7f7;
  --ace-white: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--ace-bg);
  color: var(--ace-text);
}

/* App container */
.app {
  max-width: 480px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--ace-white);
}

/* Header */
.app-header {
  padding: 22px 18px;
  text-align: center;
  border-bottom: 1px solid var(--ace-border);
}

.app-logo {
  max-width: 220px;
  width: 80%;
  height: auto;
}

.app-title {
  margin: 12px 0 0;
  font-size: 22px;
  font-weight: bold;
  color: var(--ace-red);
}

/* Main content */
.app-content {
  padding: 20px;
}

.card {
  background: var(--ace-white);
  border: 1px solid var(--ace-border);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.card-title {
  margin: 0 0 12px;
  font-size: 20px;
  color: var(--ace-red);
}

/* Forms */
label {
  display: block;
  margin-bottom: 6px;
  font-weight: bold;
  font-size: 15px;
}

input,
select,
textarea {
  width: 100%;
  padding: 14px;
  margin-bottom: 16px;
  font-size: 16px;
  border: 1px solid var(--ace-border);
  border-radius: 12px;
  background: #fff;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--ace-red);
  box-shadow: 0 0 0 3px rgba(217,0,0,0.12);
}

/* Buttons */
.btn {
  display: block;
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 14px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--ace-red);
  color: var(--ace-white);
}

.btn-primary:active {
  background: var(--ace-red-dark);
}

.btn-secondary {
  background: var(--ace-red-light);
  color: var(--ace-red);
  border: 1px solid var(--ace-red);
}

.btn + .btn {
  margin-top: 12px;
}

/* Driver portal menu */
.menu-button {
  display: block;
  padding: 18px;
  margin-bottom: 14px;
  background: var(--ace-red);
  color: var(--ace-white);
  border-radius: 16px;
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
}

/* Loading screen */
.splash {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: var(--ace-white);
  text-align: center;
  padding: 30px;
}

.splash-logo {
  max-width: 260px;
  width: 85%;
  margin-bottom: 28px;
}

.loading-text {
  color: var(--ace-muted);
  font-size: 16px;
}

.loading-bar {
  width: 180px;
  height: 6px;
  margin-top: 18px;
  background: var(--ace-red-light);
  border-radius: 10px;
  overflow: hidden;
}

.loading-bar span {
  display: block;
  width: 45%;
  height: 100%;
  background: var(--ace-red);
  border-radius: 10px;
  animation: loading 1.2s infinite ease-in-out;
}

@keyframes loading {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(250%); }
}

/* Footer */
.app-footer {
  padding: 20px;
  text-align: center;
  color: var(--ace-muted);
  font-size: 13px;
}