:root {
    --bg-color: #f4f7f6;
    --primary: #0A1128; /* SZAVI Sötétkék */
    --accent: #F4D03F;  /* SZAVI Sárga */
    --text-main: #333;
    --text-light: #666;
    --green: #10B981;
    --yellow: #F59E0B;
    --red: #EF4444;
    --white: #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', system-ui, sans-serif; }

body { background-color: var(--bg-color); color: var(--text-main); padding-bottom: 40px; }

/* Fejléc */
.app-header {
    background-color: var(--primary);
    color: var(--white);
    padding: 25px 20px;
    text-align: center;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.app-header h1 { font-size: 24px; margin-bottom: 5px; color: var(--accent); }
.app-header p { font-size: 14px; opacity: 0.9; }

/* Konténer */
.container { padding: 20px; max-width: 500px; margin: 0 auto; }

/* Belépő (Index) oldal */
.login-box { background: var(--white); padding: 30px 20px; border-radius: 16px; text-align: center; margin-top: 40px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.login-input { width: 100%; padding: 15px; border: 2px solid #ddd; border-radius: 10px; font-size: 18px; text-align: center; margin-bottom: 15px; font-weight: bold; text-transform: uppercase; }
.login-input:focus { border-color: var(--primary); outline: none; }

.cta-button {
    display: block;
    width: 100%;
    background-color: var(--primary);
    color: var(--accent); /* Sárga szöveg a gombban */
    text-align: center;
    padding: 16px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(10, 17, 40, 0.3);
    margin-top: 20px;
    transition: transform 0.2s;
}
.cta-button:active { transform: scale(0.98); }

/* Jármű Info Kártya */
.car-info {
    background: var(--white);
    padding: 15px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: -20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    margin-bottom: 25px;
    position: relative;
    z-index: 10;
}
.plate { font-size: 20px; font-weight: 900; color: var(--primary); letter-spacing: 1px; border: 2px solid var(--accent); padding: 4px 10px; border-radius: 6px; }

/* Felhasználó fejléc (Ceruzával) */
.user-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; padding: 0 10px; }
.user-header h2 { font-size: 18px; color: var(--primary); }
.edit-btn { background: none; border: none; font-size: 20px; cursor: pointer; color: var(--text-light); top:15px;  }
.edit-btn:hover { color: var(--primary); }

/* Gumi Kártya */
.tire-card { background: var(--white); border-radius: 16px; padding: 20px; margin-bottom: 15px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); position: relative; overflow: hidden; }
.tire-header { display: flex; justify-content: space-between; margin-bottom: 15px; border-bottom: 1px solid #eee; padding-bottom: 10px;}
.tire-position { font-weight: 700; font-size: 16px; }
.tire-brand { color: var(--text-light); font-size: 14px; }
.tire-details { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; font-size: 13px; margin-bottom: 15px; }
.detail-label { color: var(--text-light); font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; }
.detail-value { font-weight: 600; font-size: 14px; }
.error-text { color: var(--red); font-weight: bold; font-size: 12px; margin-top: 5px; }

/* Profil Szintjelző */
.profile-bar-container { background: #e0e0e0; height: 10px; border-radius: 10px; overflow: hidden; margin-top: 5px; }
.profile-bar { height: 100%; border-radius: 10px; transition: width 0.5s ease; }
.status-green .profile-bar { background-color: var(--green); }
.status-yellow .profile-bar { background-color: var(--yellow); }
.status-red .profile-bar { background-color: var(--red); }

/* Modal (Felugró ablak) */
.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 100; justify-content: center; align-items: center; }
.modal-box { background: white; width: 90%; max-width: 400px; border-radius: 12px; padding: 25px; box-shadow: 0 5px 20px rgba(0,0,0,0.2); }
.modal-box h3 { color: var(--primary); margin-bottom: 15px; }
.form-group { margin-bottom: 15px; text-align: left; }
.form-group label { display: block; font-size: 12px; color: var(--text-light); margin-bottom: 5px; font-weight: bold; }
.form-group input { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 6px; font-size: 14px; }
.btn-save { background: var(--green); color: white; padding: 12px; border: none; border-radius: 6px; width: 100%; font-weight: bold; cursor: pointer; margin-top: 10px; }
.btn-close { background: #ccc; color: #333; padding: 12px; border: none; border-radius: 6px; width: 100%; font-weight: bold; cursor: pointer; margin-top: 10px; }